Skip to content

Commit

Permalink
feat(client-iot): AWS IoT Jobs now allows you to create up to 100,000…
Browse files Browse the repository at this point in the history
… active continuous and snapshot jobs by using concurrency control.
  • Loading branch information
awstools committed May 5, 2022
1 parent dfc58ea commit 6506e14
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clients/client-iot/src/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2185,6 +2185,8 @@ export interface Job {
* to specify the inputs during runtime when creating a job.</p>
*/
documentParameters?: { [key: string]: string };

isConcurrent?: boolean;
}

export namespace Job {
Expand Down Expand Up @@ -6701,6 +6703,8 @@ export interface JobSummary {
* <p>The time, in seconds since the epoch, when the job completed.</p>
*/
completedAt?: Date;

isConcurrent?: boolean;
}

export namespace JobSummary {
Expand Down
5 changes: 5 additions & 0 deletions clients/client-iot/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9291,6 +9291,9 @@ const deserializeAws_restJson1CancelJobCommandError = async (
case "InvalidRequestException":
case "com.amazonaws.iot#InvalidRequestException":
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
case "LimitExceededException":
case "com.amazonaws.iot#LimitExceededException":
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
case "ResourceNotFoundException":
case "com.amazonaws.iot#ResourceNotFoundException":
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
Expand Down Expand Up @@ -27082,6 +27085,7 @@ const deserializeAws_restJson1Job = (output: any, context: __SerdeContext): Job
? deserializeAws_restJson1ParameterMap(output.documentParameters, context)
: undefined,
forceCanceled: __expectBoolean(output.forceCanceled),
isConcurrent: __expectBoolean(output.isConcurrent),
jobArn: __expectString(output.jobArn),
jobExecutionsRetryConfig:
output.jobExecutionsRetryConfig !== undefined && output.jobExecutionsRetryConfig !== null
Expand Down Expand Up @@ -27288,6 +27292,7 @@ const deserializeAws_restJson1JobSummary = (output: any, context: __SerdeContext
output.createdAt !== undefined && output.createdAt !== null
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
: undefined,
isConcurrent: __expectBoolean(output.isConcurrent),
jobArn: __expectString(output.jobArn),
jobId: __expectString(output.jobId),
lastUpdatedAt:
Expand Down
15 changes: 15 additions & 0 deletions codegen/sdk-codegen/aws-models/iot.json
Original file line number Diff line number Diff line change
Expand Up @@ -3447,6 +3447,12 @@
"smithy.api#box": {}
}
},
"com.amazonaws.iot#BooleanWrapperObject": {
"type": "boolean",
"traits": {
"smithy.api#box": {}
}
},
"com.amazonaws.iot#Bucket": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -3840,6 +3846,9 @@
{
"target": "com.amazonaws.iot#InvalidRequestException"
},
{
"target": "com.amazonaws.iot#LimitExceededException"
},
{
"target": "com.amazonaws.iot#ResourceNotFoundException"
},
Expand Down Expand Up @@ -15914,6 +15923,9 @@
"traits": {
"smithy.api#documentation": "<p>A key-value map that pairs the patterns that need to be replaced in a managed \n template job document schema. You can use the description of each key as a guidance \n to specify the inputs during runtime when creating a job.</p>"
}
},
"isConcurrent": {
"target": "com.amazonaws.iot#BooleanWrapperObject"
}
},
"traits": {
Expand Down Expand Up @@ -16377,6 +16389,9 @@
"traits": {
"smithy.api#documentation": "<p>The time, in seconds since the epoch, when the job completed.</p>"
}
},
"isConcurrent": {
"target": "com.amazonaws.iot#BooleanWrapperObject"
}
},
"traits": {
Expand Down

0 comments on commit 6506e14

Please sign in to comment.