"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.GlueStartCrawlerRun=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var iam=()=>{var tmp=require("../../../aws-iam");return iam=()=>tmp,tmp},sfn=()=>{var tmp=require("../../../aws-stepfunctions");return sfn=()=>tmp,tmp},core_1=()=>{var tmp=require("../../../core");return core_1=()=>tmp,tmp},task_utils_1=()=>{var tmp=require("../private/task-utils");return task_utils_1=()=>tmp,tmp};class GlueStartCrawlerRun extends sfn().TaskStateBase{constructor(scope,id,props){super(scope,id,props),this.props=props;try{jsiiDeprecationWarnings().aws_cdk_lib_aws_stepfunctions_tasks_GlueStartCrawlerRunProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,GlueStartCrawlerRun),error}this.integrationPattern=props.integrationPattern??sfn().IntegrationPattern.REQUEST_RESPONSE,this.taskPolicies=[new(iam()).PolicyStatement({resources:[core_1().Stack.of(this).formatArn({service:"glue",resource:"crawler",resourceName:this.props.crawlerName})],actions:["glue:StartCrawler","glue:GetCrawler"]})]}_renderTask(){return{Resource:(0,task_utils_1().integrationResourceArn)("aws-sdk:glue","startCrawler",this.integrationPattern),Parameters:{Name:this.props.crawlerName}}}}exports.GlueStartCrawlerRun=GlueStartCrawlerRun,_a=JSII_RTTI_SYMBOL_1,GlueStartCrawlerRun[_a]={fqn:"aws-cdk-lib.aws_stepfunctions_tasks.GlueStartCrawlerRun",version:"2.148.1"};
