diff --git a/clients/client-sagemaker-a2i-runtime/src/protocols/Aws_restJson1.ts b/clients/client-sagemaker-a2i-runtime/src/protocols/Aws_restJson1.ts index c48ecf489b40..c3d817eec35b 100644 --- a/clients/client-sagemaker-a2i-runtime/src/protocols/Aws_restJson1.ts +++ b/clients/client-sagemaker-a2i-runtime/src/protocols/Aws_restJson1.ts @@ -3,12 +3,11 @@ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@a import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, - expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, map as __map, - parseEpochTimestamp as __parseEpochTimestamp, + parseRfc3339DateTime as __parseRfc3339DateTime, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client"; @@ -242,7 +241,7 @@ export const deserializeAws_restJson1DescribeHumanLoopCommand = async ( }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); if (data.CreationTime != null) { - contents.CreationTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreationTime))); + contents.CreationTime = __expectNonNull(__parseRfc3339DateTime(data.CreationTime)); } if (data.FailureCode != null) { contents.FailureCode = __expectString(data.FailureCode); @@ -600,9 +599,7 @@ const deserializeAws_restJson1HumanLoopSummaries = (output: any, context: __Serd const deserializeAws_restJson1HumanLoopSummary = (output: any, context: __SerdeContext): HumanLoopSummary => { return { CreationTime: - output.CreationTime != null - ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime))) - : undefined, + output.CreationTime != null ? __expectNonNull(__parseRfc3339DateTime(output.CreationTime)) : undefined, FailureReason: __expectString(output.FailureReason), FlowDefinitionArn: __expectString(output.FlowDefinitionArn), HumanLoopName: __expectString(output.HumanLoopName), diff --git a/codegen/sdk-codegen/aws-models/sagemaker-a2i-runtime.json b/codegen/sdk-codegen/aws-models/sagemaker-a2i-runtime.json index db1cd9832e26..d3c9547553cd 100644 --- a/codegen/sdk-codegen/aws-models/sagemaker-a2i-runtime.json +++ b/codegen/sdk-codegen/aws-models/sagemaker-a2i-runtime.json @@ -31,6 +31,21 @@ "shapes": { "com.amazonaws.sagemakera2iruntime#AmazonSageMakerA2IRuntime": { "type": "service", + "traits": { + "aws.api#service": { + "sdkId": "SageMaker A2I Runtime", + "arnNamespace": "sagemaker", + "cloudFormationName": "SageMakerA2IRuntime", + "cloudTrailEventSource": "sagemakera2iruntime.amazonaws.com", + "endpointPrefix": "a2i-runtime.sagemaker" + }, + "aws.auth#sigv4": { + "name": "sagemaker" + }, + "aws.protocols#restJson1": {}, + "smithy.api#documentation": "

Amazon Augmented AI (Amazon A2I) adds the benefit of human judgment to any machine learning\n application. When an AI application can't evaluate data with a high degree of confidence,\n human reviewers can take over. This human review is called a human review workflow. To create\n and start a human review workflow, you need three resources: a worker task\n template, a flow definition, and a human\n loop.

\n

For information about these resources and prerequisites for using Amazon A2I, see Get Started with\n Amazon Augmented AI in the Amazon SageMaker Developer Guide.

\n

This API reference includes information about API actions and data types that you can use\n to interact with Amazon A2I programmatically. Use this guide to:

\n \n

Amazon A2I integrates APIs from various AWS services to create and start human review\n workflows for those services. To learn how Amazon A2I uses these APIs, see Use APIs in\n Amazon A2I in the Amazon SageMaker Developer Guide.

", + "smithy.api#title": "Amazon Augmented AI Runtime" + }, "version": "2019-11-07", "operations": [ { @@ -48,22 +63,7 @@ { "target": "com.amazonaws.sagemakera2iruntime#StopHumanLoop" } - ], - "traits": { - "aws.api#service": { - "sdkId": "SageMaker A2I Runtime", - "arnNamespace": "sagemaker", - "cloudFormationName": "SageMakerA2IRuntime", - "cloudTrailEventSource": "sagemakera2iruntime.amazonaws.com", - "endpointPrefix": "a2i-runtime.sagemaker" - }, - "aws.auth#sigv4": { - "name": "sagemaker" - }, - "aws.protocols#restJson1": {}, - "smithy.api#documentation": "

Amazon Augmented AI (Amazon A2I) adds the benefit of human judgment to any machine learning\n application. When an AI application can't evaluate data with a high degree of confidence,\n human reviewers can take over. This human review is called a human review workflow. To create\n and start a human review workflow, you need three resources: a worker task\n template, a flow definition, and a human\n loop.

\n

For information about these resources and prerequisites for using Amazon A2I, see Get Started with\n Amazon Augmented AI in the Amazon SageMaker Developer Guide.

\n

This API reference includes information about API actions and data types that you can use\n to interact with Amazon A2I programmatically. Use this guide to:

\n \n

Amazon A2I integrates APIs from various AWS services to create and start human review\n workflows for those services. To learn how Amazon A2I uses these APIs, see Use APIs in\n Amazon A2I in the Amazon SageMaker Developer Guide.

", - "smithy.api#title": "Amazon Augmented AI Runtime" - } + ] }, "com.amazonaws.sagemakera2iruntime#ConflictException": { "type": "structure", @@ -271,7 +271,7 @@ "min": 0, "max": 1024 }, - "smithy.api#pattern": "arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:flow-definition/.*" + "smithy.api#pattern": "^arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:flow-definition/" } }, "com.amazonaws.sagemakera2iruntime#HumanLoopArn": { @@ -281,7 +281,7 @@ "min": 0, "max": 1024 }, - "smithy.api#pattern": "arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:human-loop/.*" + "smithy.api#pattern": "^arn:aws[a-z\\-]*:sagemaker:[a-z0-9\\-]*:[0-9]{12}:human-loop/" } }, "com.amazonaws.sagemakera2iruntime#HumanLoopDataAttributes": { @@ -464,6 +464,7 @@ "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", + "items": "HumanLoopSummaries", "pageSize": "MaxResults" } } @@ -736,7 +737,10 @@ } }, "com.amazonaws.sagemakera2iruntime#Timestamp": { - "type": "timestamp" + "type": "timestamp", + "traits": { + "smithy.api#timestampFormat": "date-time" + } }, "com.amazonaws.sagemakera2iruntime#ValidationException": { "type": "structure",