Skip to content

Commit cd2a984

Browse files
author
awstools
committed
feat(client-emr-serverless): This release adds support for retrieval of the optional executionIamPolicy field in the GetJobRun API response.
1 parent eb8c772 commit cd2a984

File tree

4 files changed

+40
-20
lines changed

4 files changed

+40
-20
lines changed

clients/client-emr-serverless/src/commands/GetJobRunCommand.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ export interface GetJobRunCommandOutput extends GetJobRunResponse, __MetadataBea
5252
* // createdAt: new Date("TIMESTAMP"), // required
5353
* // updatedAt: new Date("TIMESTAMP"), // required
5454
* // executionRole: "STRING_VALUE", // required
55+
* // executionIamPolicy: { // JobRunExecutionIamPolicy
56+
* // policy: "STRING_VALUE",
57+
* // policyArns: [ // PolicyArnList
58+
* // "STRING_VALUE",
59+
* // ],
60+
* // },
5561
* // state: "STRING_VALUE", // required
5662
* // stateDetails: "STRING_VALUE", // required
5763
* // releaseLabel: "STRING_VALUE", // required

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

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ export interface CancelJobRunRequest {
665665
jobRunId: string | undefined;
666666

667667
/**
668-
* The duration (in seconds) to wait before forcefully terminating the job after cancellation is requested.
668+
* <p>The duration in seconds to wait before forcefully terminating the job after cancellation is requested.</p>
669669
* @public
670670
*/
671671
shutdownGracePeriodInSeconds?: number | undefined;
@@ -775,6 +775,24 @@ export interface ResourceUtilization {
775775
storageGBHour?: number | undefined;
776776
}
777777

778+
/**
779+
* <p>Optional IAM policy. The resulting job IAM role permissions will be an intersection of the policies passed and the policy associated with your job execution role.</p>
780+
* @public
781+
*/
782+
export interface JobRunExecutionIamPolicy {
783+
/**
784+
* <p>An IAM inline policy to use as an execution IAM policy.</p>
785+
* @public
786+
*/
787+
policy?: string | undefined;
788+
789+
/**
790+
* <p>A list of Amazon Resource Names (ARNs) to use as an execution IAM policy.</p>
791+
* @public
792+
*/
793+
policyArns?: string[] | undefined;
794+
}
795+
778796
/**
779797
* <p>The configurations for the Hive job driver.</p>
780798
* @public
@@ -1260,24 +1278,6 @@ export interface ListJobRunsResponse {
12601278
nextToken?: string | undefined;
12611279
}
12621280

1263-
/**
1264-
* <p>Optional IAM policy. The resulting job IAM role permissions will be an intersection of the policies passed and the policy associated with your job execution role.</p>
1265-
* @public
1266-
*/
1267-
export interface JobRunExecutionIamPolicy {
1268-
/**
1269-
* <p>An IAM inline policy to use as an execution IAM policy.</p>
1270-
* @public
1271-
*/
1272-
policy?: string | undefined;
1273-
1274-
/**
1275-
* <p>A list of Amazon Resource Names (ARNs) to use as an execution IAM policy.</p>
1276-
* @public
1277-
*/
1278-
policyArns?: string[] | undefined;
1279-
}
1280-
12811281
/**
12821282
* @public
12831283
*/
@@ -1813,6 +1813,12 @@ export interface JobRun {
18131813
*/
18141814
executionRole: string | undefined;
18151815

1816+
/**
1817+
* <p>Optional IAM policy. The resulting job IAM role permissions will be an intersection of the policies passed and the policy associated with your job execution role.</p>
1818+
* @public
1819+
*/
1820+
executionIamPolicy?: JobRunExecutionIamPolicy | undefined;
1821+
18161822
/**
18171823
* <p>The state of the job run.</p>
18181824
* @public

clients/client-emr-serverless/src/protocols/Aws_restJson1.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,6 +1121,7 @@ const de_JobRun = (output: any, context: __SerdeContext): JobRun => {
11211121
createdAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
11221122
createdBy: __expectString,
11231123
endedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1124+
executionIamPolicy: _json,
11241125
executionRole: __expectString,
11251126
executionTimeoutMinutes: __expectLong,
11261127
jobDriver: (_: any) => _json(__expectUnion(_)),
@@ -1176,6 +1177,8 @@ const de_JobRunAttemptSummary = (output: any, context: __SerdeContext): JobRunAt
11761177
}) as any;
11771178
};
11781179

1180+
// de_JobRunExecutionIamPolicy omitted.
1181+
11791182
/**
11801183
* deserializeAws_restJson1JobRuns
11811184
*/
@@ -1224,6 +1227,8 @@ const de_JobRunSummary = (output: any, context: __SerdeContext): JobRunSummary =
12241227

12251228
// de_NetworkConfiguration omitted.
12261229

1230+
// de_PolicyArnList omitted.
1231+
12271232
// de_PrometheusMonitoringConfiguration omitted.
12281233

12291234
/**

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,7 @@
11991199
"target": "com.amazonaws.emrserverless#ShutdownGracePeriodInSeconds",
12001200
"traits": {
12011201
"smithy.api#default": null,
1202-
"smithy.api#documentation": "The duration (in seconds) to wait before forcefully terminating the job after cancellation is requested.",
1202+
"smithy.api#documentation": "<p>The duration in seconds to wait before forcefully terminating the job after cancellation is requested.</p>",
12031203
"smithy.api#httpQuery": "shutdownGracePeriodInSeconds"
12041204
}
12051205
}
@@ -2152,6 +2152,9 @@
21522152
"smithy.api#required": {}
21532153
}
21542154
},
2155+
"executionIamPolicy": {
2156+
"target": "com.amazonaws.emrserverless#JobRunExecutionIamPolicy"
2157+
},
21552158
"state": {
21562159
"target": "com.amazonaws.emrserverless#JobRunState",
21572160
"traits": {

0 commit comments

Comments
 (0)