Skip to content

Commit

Permalink
chore: codegen for awsExpectUnion (#5376)
Browse files Browse the repository at this point in the history
* chore: codegen override for unions

* chore: codegen for awsExpectUnion

* chore: update smithy hash

* chore: codegen update

* chore: java formatting

* test: enable __type protocol tests

* chore: add sdk core dependency

* chore: core dep added

* chore: spotbugs

* chore: spotbugs

* chore: fix package name in readme file
  • Loading branch information
kuhe committed Oct 18, 2023
1 parent 54bc478 commit ba28b4f
Show file tree
Hide file tree
Showing 117 changed files with 210 additions and 105 deletions.
1 change: 1 addition & 0 deletions clients/client-amplifyuibuilder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@aws-crypto/sha256-browser": "3.0.0",
"@aws-crypto/sha256-js": "3.0.0",
"@aws-sdk/client-sts": "*",
"@aws-sdk/core": "*",
"@aws-sdk/credential-provider-node": "*",
"@aws-sdk/middleware-host-header": "*",
"@aws-sdk/middleware-logger": "*",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// smithy-typescript generated code
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
import {
_json,
Expand All @@ -9,7 +10,6 @@ import {
expectNonNull as __expectNonNull,
expectObject as __expectObject,
expectString as __expectString,
expectUnion as __expectUnion,
extendedEncodeURIComponent as __extendedEncodeURIComponent,
limitedParseFloat32 as __limitedParseFloat32,
map,
Expand Down
1 change: 1 addition & 0 deletions clients/client-appconfig/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@aws-crypto/sha256-browser": "3.0.0",
"@aws-crypto/sha256-js": "3.0.0",
"@aws-sdk/client-sts": "*",
"@aws-sdk/core": "*",
"@aws-sdk/credential-provider-node": "*",
"@aws-sdk/middleware-host-header": "*",
"@aws-sdk/middleware-logger": "*",
Expand Down
2 changes: 1 addition & 1 deletion clients/client-appconfig/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// smithy-typescript generated code
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
import {
_json,
Expand All @@ -8,7 +9,6 @@ import {
expectNonNull as __expectNonNull,
expectObject as __expectObject,
expectString as __expectString,
expectUnion as __expectUnion,
extendedEncodeURIComponent as __extendedEncodeURIComponent,
limitedParseFloat32 as __limitedParseFloat32,
map,
Expand Down
1 change: 1 addition & 0 deletions clients/client-appconfigdata/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@aws-crypto/sha256-browser": "3.0.0",
"@aws-crypto/sha256-js": "3.0.0",
"@aws-sdk/client-sts": "*",
"@aws-sdk/core": "*",
"@aws-sdk/credential-provider-node": "*",
"@aws-sdk/middleware-host-header": "*",
"@aws-sdk/middleware-logger": "*",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// smithy-typescript generated code
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
import {
_json,
Expand All @@ -7,7 +8,6 @@ import {
expectNonNull as __expectNonNull,
expectObject as __expectObject,
expectString as __expectString,
expectUnion as __expectUnion,
extendedEncodeURIComponent as __extendedEncodeURIComponent,
map,
strictParseInt32 as __strictParseInt32,
Expand Down
1 change: 1 addition & 0 deletions clients/client-appfabric/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@aws-crypto/sha256-browser": "3.0.0",
"@aws-crypto/sha256-js": "3.0.0",
"@aws-sdk/client-sts": "*",
"@aws-sdk/core": "*",
"@aws-sdk/credential-provider-node": "*",
"@aws-sdk/middleware-host-header": "*",
"@aws-sdk/middleware-logger": "*",
Expand Down
2 changes: 1 addition & 1 deletion clients/client-appfabric/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// smithy-typescript generated code
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
import {
_json,
Expand All @@ -7,7 +8,6 @@ import {
expectNonNull as __expectNonNull,
expectObject as __expectObject,
expectString as __expectString,
expectUnion as __expectUnion,
extendedEncodeURIComponent as __extendedEncodeURIComponent,
map,
parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset,
Expand Down
1 change: 1 addition & 0 deletions clients/client-cleanrooms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@aws-crypto/sha256-browser": "3.0.0",
"@aws-crypto/sha256-js": "3.0.0",
"@aws-sdk/client-sts": "*",
"@aws-sdk/core": "*",
"@aws-sdk/credential-provider-node": "*",
"@aws-sdk/middleware-host-header": "*",
"@aws-sdk/middleware-logger": "*",
Expand Down
2 changes: 1 addition & 1 deletion clients/client-cleanrooms/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// smithy-typescript generated code
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
import {
_json,
Expand All @@ -8,7 +9,6 @@ import {
expectNumber as __expectNumber,
expectObject as __expectObject,
expectString as __expectString,
expectUnion as __expectUnion,
extendedEncodeURIComponent as __extendedEncodeURIComponent,
limitedParseDouble as __limitedParseDouble,
map,
Expand Down
1 change: 1 addition & 0 deletions clients/client-clouddirectory/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@aws-crypto/sha256-browser": "3.0.0",
"@aws-crypto/sha256-js": "3.0.0",
"@aws-sdk/client-sts": "*",
"@aws-sdk/core": "*",
"@aws-sdk/credential-provider-node": "*",
"@aws-sdk/middleware-host-header": "*",
"@aws-sdk/middleware-logger": "*",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// smithy-typescript generated code
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
import {
_json,
Expand All @@ -10,7 +11,6 @@ import {
expectNumber as __expectNumber,
expectObject as __expectObject,
expectString as __expectString,
expectUnion as __expectUnion,
map,
parseEpochTimestamp as __parseEpochTimestamp,
take,
Expand Down
1 change: 1 addition & 0 deletions clients/client-codeguru-security/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@aws-crypto/sha256-browser": "3.0.0",
"@aws-crypto/sha256-js": "3.0.0",
"@aws-sdk/client-sts": "*",
"@aws-sdk/core": "*",
"@aws-sdk/credential-provider-node": "*",
"@aws-sdk/middleware-host-header": "*",
"@aws-sdk/middleware-logger": "*",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// smithy-typescript generated code
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
import {
_json,
Expand All @@ -9,7 +10,6 @@ import {
expectNumber as __expectNumber,
expectObject as __expectObject,
expectString as __expectString,
expectUnion as __expectUnion,
extendedEncodeURIComponent as __extendedEncodeURIComponent,
limitedParseDouble as __limitedParseDouble,
map,
Expand Down
1 change: 1 addition & 0 deletions clients/client-connect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@aws-crypto/sha256-browser": "3.0.0",
"@aws-crypto/sha256-js": "3.0.0",
"@aws-sdk/client-sts": "*",
"@aws-sdk/core": "*",
"@aws-sdk/credential-provider-node": "*",
"@aws-sdk/middleware-host-header": "*",
"@aws-sdk/middleware-logger": "*",
Expand Down
2 changes: 1 addition & 1 deletion clients/client-connect/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// smithy-typescript generated code
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
import {
_json,
Expand All @@ -11,7 +12,6 @@ import {
expectNumber as __expectNumber,
expectObject as __expectObject,
expectString as __expectString,
expectUnion as __expectUnion,
extendedEncodeURIComponent as __extendedEncodeURIComponent,
limitedParseDouble as __limitedParseDouble,
map,
Expand Down
1 change: 1 addition & 0 deletions clients/client-connectcampaigns/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@aws-crypto/sha256-browser": "3.0.0",
"@aws-crypto/sha256-js": "3.0.0",
"@aws-sdk/client-sts": "*",
"@aws-sdk/core": "*",
"@aws-sdk/credential-provider-node": "*",
"@aws-sdk/middleware-host-header": "*",
"@aws-sdk/middleware-logger": "*",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// smithy-typescript generated code
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
import {
_json,
Expand All @@ -7,7 +8,6 @@ import {
expectNonNull as __expectNonNull,
expectObject as __expectObject,
expectString as __expectString,
expectUnion as __expectUnion,
extendedEncodeURIComponent as __extendedEncodeURIComponent,
limitedParseDouble as __limitedParseDouble,
map,
Expand Down
1 change: 1 addition & 0 deletions clients/client-connectcases/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@aws-crypto/sha256-browser": "3.0.0",
"@aws-crypto/sha256-js": "3.0.0",
"@aws-sdk/client-sts": "*",
"@aws-sdk/core": "*",
"@aws-sdk/credential-provider-node": "*",
"@aws-sdk/middleware-host-header": "*",
"@aws-sdk/middleware-logger": "*",
Expand Down
2 changes: 1 addition & 1 deletion clients/client-connectcases/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// smithy-typescript generated code
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
import {
_json,
Expand All @@ -8,7 +9,6 @@ import {
expectNonNull as __expectNonNull,
expectObject as __expectObject,
expectString as __expectString,
expectUnion as __expectUnion,
extendedEncodeURIComponent as __extendedEncodeURIComponent,
limitedParseDouble as __limitedParseDouble,
map,
Expand Down
1 change: 1 addition & 0 deletions clients/client-database-migration-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@aws-crypto/sha256-browser": "3.0.0",
"@aws-crypto/sha256-js": "3.0.0",
"@aws-sdk/client-sts": "*",
"@aws-sdk/core": "*",
"@aws-sdk/credential-provider-node": "*",
"@aws-sdk/middleware-host-header": "*",
"@aws-sdk/middleware-logger": "*",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// smithy-typescript generated code
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
import {
_json,
Expand All @@ -10,7 +11,6 @@ import {
expectNonNull as __expectNonNull,
expectNumber as __expectNumber,
expectString as __expectString,
expectUnion as __expectUnion,
limitedParseDouble as __limitedParseDouble,
parseEpochTimestamp as __parseEpochTimestamp,
parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset,
Expand Down
1 change: 1 addition & 0 deletions clients/client-datazone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@aws-crypto/sha256-browser": "3.0.0",
"@aws-crypto/sha256-js": "3.0.0",
"@aws-sdk/client-sts": "*",
"@aws-sdk/core": "*",
"@aws-sdk/credential-provider-node": "*",
"@aws-sdk/middleware-host-header": "*",
"@aws-sdk/middleware-logger": "*",
Expand Down
2 changes: 1 addition & 1 deletion clients/client-datazone/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// smithy-typescript generated code
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
import {
_json,
Expand All @@ -10,7 +11,6 @@ import {
expectNumber as __expectNumber,
expectObject as __expectObject,
expectString as __expectString,
expectUnion as __expectUnion,
extendedEncodeURIComponent as __extendedEncodeURIComponent,
map,
parseEpochTimestamp as __parseEpochTimestamp,
Expand Down
1 change: 1 addition & 0 deletions clients/client-dynamodb-streams/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@aws-crypto/sha256-browser": "3.0.0",
"@aws-crypto/sha256-js": "3.0.0",
"@aws-sdk/client-sts": "*",
"@aws-sdk/core": "*",
"@aws-sdk/credential-provider-node": "*",
"@aws-sdk/middleware-host-header": "*",
"@aws-sdk/middleware-logger": "*",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// smithy-typescript generated code
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
import {
_json,
Expand All @@ -9,7 +10,6 @@ import {
expectNonNull as __expectNonNull,
expectNumber as __expectNumber,
expectString as __expectString,
expectUnion as __expectUnion,
parseEpochTimestamp as __parseEpochTimestamp,
take,
withBaseException,
Expand Down
1 change: 1 addition & 0 deletions clients/client-dynamodb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@aws-crypto/sha256-browser": "3.0.0",
"@aws-crypto/sha256-js": "3.0.0",
"@aws-sdk/client-sts": "*",
"@aws-sdk/core": "*",
"@aws-sdk/credential-provider-node": "*",
"@aws-sdk/middleware-endpoint-discovery": "*",
"@aws-sdk/middleware-host-header": "*",
Expand Down
2 changes: 1 addition & 1 deletion clients/client-dynamodb/src/protocols/Aws_json1_0.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// smithy-typescript generated code
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
import {
_json,
Expand All @@ -10,7 +11,6 @@ import {
expectNonNull as __expectNonNull,
expectNumber as __expectNumber,
expectString as __expectString,
expectUnion as __expectUnion,
limitedParseDouble as __limitedParseDouble,
parseEpochTimestamp as __parseEpochTimestamp,
serializeFloat as __serializeFloat,
Expand Down
8 changes: 4 additions & 4 deletions clients/client-ecs/src/commands/CreateServiceCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -561,10 +561,10 @@ export interface CreateServiceCommandOutput extends CreateServiceResponse, __Met
* "loadBalancers": [],
* "pendingCount": 0,
* "runningCount": 0,
* "serviceArn": "arn:aws:ecs:us-east-1:012345678910:service/ecs-simple-service",
* "serviceArn": "arn:aws:ecs:us-east-1:012345678910:service/default/ecs-simple-service",
* "serviceName": "ecs-simple-service",
* "status": "ACTIVE",
* "taskDefinition": "arn:aws:ecs:us-east-1:012345678910:task-definition/hello_world:6"
* "taskDefinition": "arn:aws:ecs:us-east-1:012345678910:task-definition/default/hello_world:6"
* }
* }
* *\/
Expand Down Expand Up @@ -622,10 +622,10 @@ export interface CreateServiceCommandOutput extends CreateServiceResponse, __Met
* "pendingCount": 0,
* "roleArn": "arn:aws:iam::012345678910:role/ecsServiceRole",
* "runningCount": 0,
* "serviceArn": "arn:aws:ecs:us-east-1:012345678910:service/ecs-simple-service-elb",
* "serviceArn": "arn:aws:ecs:us-east-1:012345678910:service/default/ecs-simple-service-elb",
* "serviceName": "ecs-simple-service-elb",
* "status": "ACTIVE",
* "taskDefinition": "arn:aws:ecs:us-east-1:012345678910:task-definition/console-sample-app-static:6"
* "taskDefinition": "arn:aws:ecs:us-east-1:012345678910:task-definition/default/console-sample-app-static:6"
* }
* }
* *\/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export interface DescribeContainerInstancesCommandOutput extends DescribeContain
* "containerInstances": [
* {
* "agentConnected": true,
* "containerInstanceArn": "arn:aws:ecs:us-east-1:012345678910:container-instance/f2756532-8f13-4d53-87c9-aed50dc94cd7",
* "containerInstanceArn": "arn:aws:ecs:us-east-1:012345678910:container-instance/default/f2756532-8f13-4d53-87c9-aed50dc94cd7",
* "ec2InstanceId": "i-807f3249",
* "pendingTasksCount": 0,
* "registeredResources": [
Expand Down
4 changes: 2 additions & 2 deletions clients/client-ecs/src/commands/DescribeServicesCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,10 +368,10 @@ export interface DescribeServicesCommandOutput extends DescribeServicesResponse,
* "loadBalancers": [],
* "pendingCount": 0,
* "runningCount": 0,
* "serviceArn": "arn:aws:ecs:us-east-1:012345678910:service/ecs-simple-service",
* "serviceArn": "arn:aws:ecs:us-east-1:012345678910:service/default/ecs-simple-service",
* "serviceName": "ecs-simple-service",
* "status": "ACTIVE",
* "taskDefinition": "arn:aws:ecs:us-east-1:012345678910:task-definition/hello_world:6"
* "taskDefinition": "arn:aws:ecs:us-east-1:012345678910:task-definition/default/hello_world:6"
* }
* ]
* }
Expand Down
6 changes: 3 additions & 3 deletions clients/client-ecs/src/commands/DescribeTasksCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ export interface DescribeTasksCommandOutput extends DescribeTasksResponse, __Met
* "tasks": [
* {
* "clusterArn": "arn:aws:ecs:<region>:<aws_account_id>:cluster/default",
* "containerInstanceArn": "arn:aws:ecs:<region>:<aws_account_id>:container-instance/18f9eda5-27d7-4c19-b133-45adc516e8fb",
* "containerInstanceArn": "arn:aws:ecs:<region>:<aws_account_id>:container-instance/default/18f9eda5-27d7-4c19-b133-45adc516e8fb",
* "containers": [
* {
* "name": "ecs-demo",
Expand All @@ -282,7 +282,7 @@ export interface DescribeTasksCommandOutput extends DescribeTasksResponse, __Met
* "hostPort": 80
* }
* ],
* "taskArn": "arn:aws:ecs:<region>:<aws_account_id>:task/c5cba4eb-5dad-405e-96db-71ef8eefe6a8"
* "taskArn": "arn:aws:ecs:<region>:<aws_account_id>:task/default/c5cba4eb-5dad-405e-96db-71ef8eefe6a8"
* }
* ],
* "desiredStatus": "RUNNING",
Expand All @@ -295,7 +295,7 @@ export interface DescribeTasksCommandOutput extends DescribeTasksResponse, __Met
* ]
* },
* "startedBy": "ecs-svc/9223370608528463088",
* "taskArn": "arn:aws:ecs:<region>:<aws_account_id>:task/c5cba4eb-5dad-405e-96db-71ef8eefe6a8",
* "taskArn": "arn:aws:ecs:<region>:<aws_account_id>:task/default/c5cba4eb-5dad-405e-96db-71ef8eefe6a8",
* "taskDefinitionArn": "arn:aws:ecs:<region>:<aws_account_id>:task-definition/amazon-ecs-sample:1"
* }
* ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export interface GetTaskProtectionCommandOutput extends GetTaskProtectionRespons
* {
* "expirationDate": "2022-11-02T06:56:32.553Z",
* "protectionEnabled": true,
* "taskArn": "arn:aws:ecs:us-west-2:012345678910:task/b8b1cf532d0e46ba8d44a40d1de16772"
* "taskArn": "arn:aws:ecs:us-west-2:012345678910:task/default/b8b1cf532d0e46ba8d44a40d1de16772"
* }
* ]
* }
Expand Down
Loading

0 comments on commit ba28b4f

Please sign in to comment.