Skip to content

Commit

Permalink
feat(client-emr-serverless): This release adds support for accessing …
Browse files Browse the repository at this point in the history
…system profile logs in Lake Formation-enabled jobs.
  • Loading branch information
awstools committed Dec 11, 2024
1 parent 0f2b65b commit 056dae2
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export interface GetDashboardForJobRunCommandOutput extends GetDashboardForJobRu
* applicationId: "STRING_VALUE", // required
* jobRunId: "STRING_VALUE", // required
* attempt: Number("int"),
* accessSystemProfileLogs: true || false,
* };
* const command = new GetDashboardForJobRunCommand(input);
* const response = await client.send(command);
Expand Down
6 changes: 6 additions & 0 deletions clients/client-emr-serverless/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,12 @@ export interface GetDashboardForJobRunRequest {
* @public
*/
attempt?: number | undefined;

/**
* <p>Allows access to system profile logs for Lake Formation-enabled jobs. Default is false.</p>
* @public
*/
accessSystemProfileLogs?: boolean | undefined;
}

/**
Expand Down
2 changes: 2 additions & 0 deletions clients/client-emr-serverless/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ export const se_GetDashboardForJobRunCommand = async (
b.p("jobRunId", () => input.jobRunId!, "{jobRunId}", false);
const query: any = map({
[_a]: [() => input.attempt !== void 0, () => input[_a]!.toString()],
[_aSPL]: [() => input.accessSystemProfileLogs !== void 0, () => input[_aSPL]!.toString()],
});
let body: any;
b.m("GET").h(headers).q(query).b(body);
Expand Down Expand Up @@ -1273,6 +1274,7 @@ const collectBodyString = (streamBody: any, context: __SerdeContext): Promise<st
collectBody(streamBody, context).then((body) => context.utf8Encoder(body));

const _a = "attempt";
const _aSPL = "accessSystemProfileLogs";
const _cAA = "createdAtAfter";
const _cAB = "createdAtBefore";
const _m = "mode";
Expand Down
9 changes: 8 additions & 1 deletion codegen/sdk-codegen/aws-models/emr-serverless.json
Original file line number Diff line number Diff line change
Expand Up @@ -1761,6 +1761,13 @@
"smithy.api#documentation": "<p>An optimal parameter that indicates the amount of attempts for the job. If not specified,\n this value defaults to the attempt of the latest job.</p>",
"smithy.api#httpQuery": "attempt"
}
},
"accessSystemProfileLogs": {
"target": "smithy.api#Boolean",
"traits": {
"smithy.api#documentation": "<p>Allows access to system profile logs for Lake Formation-enabled jobs. Default is false.</p>",
"smithy.api#httpQuery": "accessSystemProfileLogs"
}
}
}
},
Expand Down Expand Up @@ -1944,7 +1951,7 @@
"min": 1,
"max": 1024
},
"smithy.api#pattern": "^([a-z0-9]+[a-z0-9-.]*)\\/((?:[a-z0-9]+(?:[._-][a-z0-9]+)*\\/)*[a-z0-9]+(?:[._-][a-z0-9]+)*)(?:\\:([a-zA-Z0-9_][a-zA-Z0-9-._]{0,299})|@(sha256:[0-9a-f]{64}))$"
"smithy.api#pattern": "^([0-9]{12})\\.dkr\\.ecr\\.([a-z0-9-]+).([a-z0-9._-]+)\\/((?:[a-z0-9]+(?:[-._][a-z0-9]+)*/)*[a-z0-9]+(?:[-._][a-z0-9]+)*)(?::([a-zA-Z0-9_]+[a-zA-Z0-9-._]*)|@(sha256:[0-9a-f]{64}))$"
}
},
"com.amazonaws.emrserverless#InitScriptPath": {
Expand Down

0 comments on commit 056dae2

Please sign in to comment.