Skip to content

Commit 61df0f9

Browse files
authored
feat(emr-containers): set timestampeFormat for Date (#3758)
1 parent 84e9f7c commit 61df0f9

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@a
33
import {
44
decorateServiceException as __decorateServiceException,
55
expectNonNull as __expectNonNull,
6-
expectNumber as __expectNumber,
76
expectObject as __expectObject,
87
expectString as __expectString,
98
expectUnion as __expectUnion,
109
extendedEncodeURIComponent as __extendedEncodeURIComponent,
11-
parseEpochTimestamp as __parseEpochTimestamp,
10+
parseRfc3339DateTime as __parseRfc3339DateTime,
1211
} from "@aws-sdk/smithy-client";
1312
import {
1413
Endpoint as __Endpoint,
@@ -1726,7 +1725,7 @@ const deserializeAws_restJson1Endpoint = (output: any, context: __SerdeContext):
17261725
: undefined,
17271726
createdAt:
17281727
output.createdAt !== undefined && output.createdAt !== null
1729-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
1728+
? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
17301729
: undefined,
17311730
executionRoleArn: __expectString(output.executionRoleArn),
17321731
failureReason: __expectString(output.failureReason),
@@ -1793,14 +1792,14 @@ const deserializeAws_restJson1JobRun = (output: any, context: __SerdeContext): J
17931792
: undefined,
17941793
createdAt:
17951794
output.createdAt !== undefined && output.createdAt !== null
1796-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
1795+
? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
17971796
: undefined,
17981797
createdBy: __expectString(output.createdBy),
17991798
executionRoleArn: __expectString(output.executionRoleArn),
18001799
failureReason: __expectString(output.failureReason),
18011800
finishedAt:
18021801
output.finishedAt !== undefined && output.finishedAt !== null
1803-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.finishedAt)))
1802+
? __expectNonNull(__parseRfc3339DateTime(output.finishedAt))
18041803
: undefined,
18051804
id: __expectString(output.id),
18061805
jobDriver:
@@ -1916,7 +1915,7 @@ const deserializeAws_restJson1VirtualCluster = (output: any, context: __SerdeCon
19161915
: undefined,
19171916
createdAt:
19181917
output.createdAt !== undefined && output.createdAt !== null
1919-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
1918+
? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
19201919
: undefined,
19211920
id: __expectString(output.id),
19221921
name: __expectString(output.name),

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,10 @@
563563
}
564564
},
565565
"com.amazonaws.emrcontainers#Date": {
566-
"type": "timestamp"
566+
"type": "timestamp",
567+
"traits": {
568+
"smithy.api#timestampFormat": "date-time"
569+
}
567570
},
568571
"com.amazonaws.emrcontainers#DeleteManagedEndpoint": {
569572
"type": "operation",

0 commit comments

Comments
 (0)