"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.EmrSetClusterTerminationProtection=void 0;const jsiiDeprecationWarnings=require("../../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),iam=require("../../../aws-iam"),sfn=require("../../../aws-stepfunctions"),core_1=require("../../../core"),task_utils_1=require("../private/task-utils");class EmrSetClusterTerminationProtection extends sfn.TaskStateBase{constructor(scope,id,props){super(scope,id,props),this.props=props;try{jsiiDeprecationWarnings.aws_cdk_lib_aws_stepfunctions_tasks_EmrSetClusterTerminationProtectionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,EmrSetClusterTerminationProtection),error}this.taskPolicies=[new iam.PolicyStatement({actions:["elasticmapreduce:SetTerminationProtection"],resources:[core_1.Stack.of(this).formatArn({service:"elasticmapreduce",resource:"cluster",resourceName:"*"})]})]}_renderTask(){return{Resource:(0,task_utils_1.integrationResourceArn)("elasticmapreduce","setClusterTerminationProtection",sfn.IntegrationPattern.REQUEST_RESPONSE),Parameters:sfn.FieldUtils.renderObject({ClusterId:this.props.clusterId,TerminationProtected:this.props.terminationProtected})}}}exports.EmrSetClusterTerminationProtection=EmrSetClusterTerminationProtection,_a=JSII_RTTI_SYMBOL_1,EmrSetClusterTerminationProtection[_a]={fqn:"aws-cdk-lib.aws_stepfunctions_tasks.EmrSetClusterTerminationProtection",version:"2.96.1"};
