"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.EmrModifyInstanceGroupByName=void 0;const jsiiDeprecationWarnings=require("../../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),cluster_utils_1=require("./private/cluster-utils"),iam=require("../../../aws-iam"),sfn=require("../../../aws-stepfunctions"),core_1=require("../../../core"),task_utils_1=require("../private/task-utils");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.96.1"};
