"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.EmrModifyInstanceGroupByName=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var cluster_utils_1=()=>{var tmp=require("./private/cluster-utils");return cluster_utils_1=()=>tmp,tmp},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 EmrModifyInstanceGroupByName extends sfn().TaskStateBase{constructor(scope,id,props){super(scope,id,props),this.props=props;try{jsiiDeprecationWarnings().aws_cdk_lib_aws_stepfunctions_tasks_EmrModifyInstanceGroupByNameProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,EmrModifyInstanceGroupByName),error}this.taskPolicies=[new(iam()).PolicyStatement({actions:["elasticmapreduce:ModifyInstanceGroups","elasticmapreduce:ListInstanceGroups"],resources:[core_1().Stack.of(this).formatArn({service:"elasticmapreduce",resource:"cluster",resourceName:"*"})]})]}_renderTask(){return{Resource:(0,task_utils_1().integrationResourceArn)("elasticmapreduce","modifyInstanceGroupByName",sfn().IntegrationPattern.REQUEST_RESPONSE),Parameters:sfn().FieldUtils.renderObject({ClusterId:this.props.clusterId,InstanceGroupName:this.props.instanceGroupName,InstanceGroup:(0,cluster_utils_1().InstanceGroupModifyConfigPropertyToJson)(this.props.instanceGroup)})}}}exports.EmrModifyInstanceGroupByName=EmrModifyInstanceGroupByName,_a=JSII_RTTI_SYMBOL_1,EmrModifyInstanceGroupByName[_a]={fqn:"aws-cdk-lib.aws_stepfunctions_tasks.EmrModifyInstanceGroupByName",version:"2.107.0"};
