Skip to content

Commit 5232298

Browse files
author
awstools
committed
feat(client-emr): This release adds support for the ExecutionRoleArn parameter in the AddJobFlowSteps and DescribeStep APIs. Customers can use ExecutionRoleArn to specify the IAM role used for each job they submit using the AddJobFlowSteps API.
1 parent 64d9e9f commit 5232298

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

clients/client-emr/src/models/models_0.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -932,6 +932,16 @@ export interface AddJobFlowStepsInput {
932932
* <p> A list of <a>StepConfig</a> to be executed by the job flow. </p>
933933
*/
934934
Steps: StepConfig[] | undefined;
935+
936+
/**
937+
* <p>The Amazon Resource Name (ARN) of the runtime role for a step on the cluster. The
938+
* runtime role can be a cross-account IAM role. The runtime role ARN is a combination of
939+
* account ID, role name, and role type using the following format:
940+
* <code>arn:partition:service:region:account:resource</code>. </p>
941+
* <p>For example, <code>arn:aws:iam::1234567890:role/ReadOnly</code> is a correctly formatted
942+
* runtime role ARN.</p>
943+
*/
944+
ExecutionRoleArn?: string;
935945
}
936946

937947
export namespace AddJobFlowStepsInput {
@@ -3294,6 +3304,16 @@ export interface Step {
32943304
* <p>The current execution status details of the cluster step.</p>
32953305
*/
32963306
Status?: StepStatus;
3307+
3308+
/**
3309+
* <p>The Amazon Resource Name (ARN) of the runtime role for a step on the cluster. The
3310+
* runtime role can be a cross-account IAM role. The runtime role ARN is a combination of
3311+
* account ID, role name, and role type using the following format:
3312+
* <code>arn:partition:service:region:account:resource</code>. </p>
3313+
* <p>For example, <code>arn:aws:iam::1234567890:role/ReadOnly</code> is a correctly formatted
3314+
* runtime role ARN.</p>
3315+
*/
3316+
ExecutionRoleArn?: string;
32973317
}
32983318

32993319
export namespace Step {

clients/client-emr/src/protocols/Aws_json1_1.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3431,6 +3431,8 @@ const serializeAws_json1_1AddInstanceGroupsInput = (input: AddInstanceGroupsInpu
34313431

34323432
const serializeAws_json1_1AddJobFlowStepsInput = (input: AddJobFlowStepsInput, context: __SerdeContext): any => {
34333433
return {
3434+
...(input.ExecutionRoleArn !== undefined &&
3435+
input.ExecutionRoleArn !== null && { ExecutionRoleArn: input.ExecutionRoleArn }),
34343436
...(input.JobFlowId !== undefined && input.JobFlowId !== null && { JobFlowId: input.JobFlowId }),
34353437
...(input.Steps !== undefined &&
34363438
input.Steps !== null && { Steps: serializeAws_json1_1StepConfigList(input.Steps, context) }),
@@ -6812,6 +6814,7 @@ const deserializeAws_json1_1Step = (output: any, context: __SerdeContext): Step
68126814
output.Config !== undefined && output.Config !== null
68136815
? deserializeAws_json1_1HadoopStepConfig(output.Config, context)
68146816
: undefined,
6817+
ExecutionRoleArn: __expectString(output.ExecutionRoleArn),
68156818
Id: __expectString(output.Id),
68166819
Name: __expectString(output.Name),
68176820
Status:

codegen/sdk-codegen/aws-models/emr.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,12 @@
212212
"smithy.api#documentation": "<p> A list of <a>StepConfig</a> to be executed by the job flow. </p>",
213213
"smithy.api#required": {}
214214
}
215+
},
216+
"ExecutionRoleArn": {
217+
"target": "com.amazonaws.emr#ArnType",
218+
"traits": {
219+
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the runtime role for a step on the cluster. The\n runtime role can be a cross-account IAM role. The runtime role ARN is a combination of\n account ID, role name, and role type using the following format:\n <code>arn:partition:service:region:account:resource</code>. </p>\n <p>For example, <code>arn:aws:iam::1234567890:role/ReadOnly</code> is a correctly formatted\n runtime role ARN.</p>"
220+
}
215221
}
216222
},
217223
"traits": {
@@ -7289,6 +7295,12 @@
72897295
"traits": {
72907296
"smithy.api#documentation": "<p>The current execution status details of the cluster step.</p>"
72917297
}
7298+
},
7299+
"ExecutionRoleArn": {
7300+
"target": "com.amazonaws.emr#OptionalArnType",
7301+
"traits": {
7302+
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the runtime role for a step on the cluster. The\n runtime role can be a cross-account IAM role. The runtime role ARN is a combination of\n account ID, role name, and role type using the following format:\n <code>arn:partition:service:region:account:resource</code>. </p>\n <p>For example, <code>arn:aws:iam::1234567890:role/ReadOnly</code> is a correctly formatted\n runtime role ARN.</p>"
7303+
}
72927304
}
72937305
},
72947306
"traits": {

0 commit comments

Comments
 (0)