Skip to content

Commit de45580

Browse files
authored
feat(clients): update clients as of 08/13/2021 (#2674)
* chore(endpoint): update endpoints model as of 08/13/2021 * feat(clients): update clients as of 08/13/2021 * test(protocol-test): skip RestJsonNoInputAndOutput protocol test
1 parent c458481 commit de45580

File tree

457 files changed

+54746
-3743
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

457 files changed

+54746
-3743
lines changed

clients/client-amplify/endpoints.ts

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,120 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
4040
let regionInfo: RegionInfo | undefined = undefined;
4141
switch (region) {
4242
// First, try to match exact region names.
43+
case "ap-east-1":
44+
regionInfo = {
45+
hostname: "amplify.ap-east-1.amazonaws.com",
46+
partition: "aws",
47+
};
48+
break;
49+
case "ap-northeast-1":
50+
regionInfo = {
51+
hostname: "amplify.ap-northeast-1.amazonaws.com",
52+
partition: "aws",
53+
};
54+
break;
55+
case "ap-northeast-2":
56+
regionInfo = {
57+
hostname: "amplify.ap-northeast-2.amazonaws.com",
58+
partition: "aws",
59+
};
60+
break;
61+
case "ap-south-1":
62+
regionInfo = {
63+
hostname: "amplify.ap-south-1.amazonaws.com",
64+
partition: "aws",
65+
};
66+
break;
67+
case "ap-southeast-1":
68+
regionInfo = {
69+
hostname: "amplify.ap-southeast-1.amazonaws.com",
70+
partition: "aws",
71+
};
72+
break;
73+
case "ap-southeast-2":
74+
regionInfo = {
75+
hostname: "amplify.ap-southeast-2.amazonaws.com",
76+
partition: "aws",
77+
};
78+
break;
79+
case "ca-central-1":
80+
regionInfo = {
81+
hostname: "amplify.ca-central-1.amazonaws.com",
82+
partition: "aws",
83+
};
84+
break;
85+
case "eu-central-1":
86+
regionInfo = {
87+
hostname: "amplify.eu-central-1.amazonaws.com",
88+
partition: "aws",
89+
};
90+
break;
91+
case "eu-north-1":
92+
regionInfo = {
93+
hostname: "amplify.eu-north-1.amazonaws.com",
94+
partition: "aws",
95+
};
96+
break;
97+
case "eu-south-1":
98+
regionInfo = {
99+
hostname: "amplify.eu-south-1.amazonaws.com",
100+
partition: "aws",
101+
};
102+
break;
103+
case "eu-west-1":
104+
regionInfo = {
105+
hostname: "amplify.eu-west-1.amazonaws.com",
106+
partition: "aws",
107+
};
108+
break;
109+
case "eu-west-2":
110+
regionInfo = {
111+
hostname: "amplify.eu-west-2.amazonaws.com",
112+
partition: "aws",
113+
};
114+
break;
115+
case "eu-west-3":
116+
regionInfo = {
117+
hostname: "amplify.eu-west-3.amazonaws.com",
118+
partition: "aws",
119+
};
120+
break;
121+
case "me-south-1":
122+
regionInfo = {
123+
hostname: "amplify.me-south-1.amazonaws.com",
124+
partition: "aws",
125+
};
126+
break;
127+
case "sa-east-1":
128+
regionInfo = {
129+
hostname: "amplify.sa-east-1.amazonaws.com",
130+
partition: "aws",
131+
};
132+
break;
133+
case "us-east-1":
134+
regionInfo = {
135+
hostname: "amplify.us-east-1.amazonaws.com",
136+
partition: "aws",
137+
};
138+
break;
139+
case "us-east-2":
140+
regionInfo = {
141+
hostname: "amplify.us-east-2.amazonaws.com",
142+
partition: "aws",
143+
};
144+
break;
145+
case "us-west-1":
146+
regionInfo = {
147+
hostname: "amplify.us-west-1.amazonaws.com",
148+
partition: "aws",
149+
};
150+
break;
151+
case "us-west-2":
152+
regionInfo = {
153+
hostname: "amplify.us-west-2.amazonaws.com",
154+
partition: "aws",
155+
};
156+
break;
43157
// Next, try to match partition endpoints.
44158
default:
45159
if (AWS_REGIONS.has(region)) {

clients/client-api-gateway/models/models_0.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,7 @@ export interface MutualTlsAuthenticationInput {
11241124

11251125
/**
11261126
* <p>The version of the S3 object that contains your truststore. To
1127-
* specify a version, you must have versioning enabled for the S3 bucket.</p>
1127+
* specify a version, you must have versioning enabled for the S3 bucket.</p>
11281128
*/
11291129
truststoreVersion?: string;
11301130
}
@@ -1203,6 +1203,11 @@ export interface CreateDomainNameRequest {
12031203
* <p>If specified, API Gateway performs two-way authentication between the client and the server. Clients must present a trusted certificate to access your custom domain name.</p>
12041204
*/
12051205
mutualTlsAuthentication?: MutualTlsAuthenticationInput;
1206+
1207+
/**
1208+
* <p>The ARN of the public certificate issued by ACM to validate ownership of your custom domain. Only required when configuring mutual TLS and using an ACM imported or private CA certificate ARN as the regionalCertificateArn.</p>
1209+
*/
1210+
ownershipVerificationCertificateArn?: string;
12061211
}
12071212

12081213
export namespace CreateDomainNameRequest {
@@ -1217,6 +1222,8 @@ export namespace CreateDomainNameRequest {
12171222
export enum DomainNameStatus {
12181223
AVAILABLE = "AVAILABLE",
12191224
PENDING = "PENDING",
1225+
PENDING_CERTIFICATE_REIMPORT = "PENDING_CERTIFICATE_REIMPORT",
1226+
PENDING_OWNERSHIP_VERIFICATION = "PENDING_OWNERSHIP_VERIFICATION",
12201227
UPDATING = "UPDATING",
12211228
}
12221229

@@ -1325,7 +1332,7 @@ export interface DomainName {
13251332
endpointConfiguration?: EndpointConfiguration;
13261333

13271334
/**
1328-
* <p>The status of the <a>DomainName</a> migration. The valid values are <code>AVAILABLE</code> and <code>UPDATING</code>. If the status is <code>UPDATING</code>, the domain cannot be modified further until the existing operation is complete. If it is <code>AVAILABLE</code>, the domain can be updated.</p>
1335+
* <p>The status of the <a>DomainName</a> migration. The valid values are <code>AVAILABLE</code>, <code>UPDATING</code>, <code>PENDING_CERTIFICATE_REIMPORT</code>, and <code>PENDING_OWNERSHIP_VERIFICATION</code>. If the status is <code>UPDATING</code>, the domain cannot be modified further until the existing operation is complete. If it is <code>AVAILABLE</code>, the domain can be updated.</p>
13291336
*/
13301337
domainNameStatus?: DomainNameStatus | string;
13311338

@@ -1348,6 +1355,11 @@ export interface DomainName {
13481355
* <p>The mutual TLS authentication configuration for a custom domain name. If specified, API Gateway performs two-way authentication between the client and the server. Clients must present a trusted certificate to access your API.</p>
13491356
*/
13501357
mutualTlsAuthentication?: MutualTlsAuthentication;
1358+
1359+
/**
1360+
* <p>The ARN of the public certificate issued by ACM to validate ownership of your custom domain. Only required when configuring mutual TLS and using an ACM imported or private CA certificate ARN as the regionalCertificateArn.</p>
1361+
*/
1362+
ownershipVerificationCertificateArn?: string;
13511363
}
13521364

13531365
export namespace DomainName {

clients/client-api-gateway/protocols/Aws_restJson1.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,10 @@ export const serializeAws_restJson1CreateDomainNameCommand = async (
571571
context
572572
),
573573
}),
574+
...(input.ownershipVerificationCertificateArn !== undefined &&
575+
input.ownershipVerificationCertificateArn !== null && {
576+
ownershipVerificationCertificateArn: input.ownershipVerificationCertificateArn,
577+
}),
574578
...(input.regionalCertificateArn !== undefined &&
575579
input.regionalCertificateArn !== null && { regionalCertificateArn: input.regionalCertificateArn }),
576580
...(input.regionalCertificateName !== undefined &&
@@ -5825,6 +5829,7 @@ export const deserializeAws_restJson1CreateDomainNameCommand = async (
58255829
domainNameStatusMessage: undefined,
58265830
endpointConfiguration: undefined,
58275831
mutualTlsAuthentication: undefined,
5832+
ownershipVerificationCertificateArn: undefined,
58285833
regionalCertificateArn: undefined,
58295834
regionalCertificateName: undefined,
58305835
regionalDomainName: undefined,
@@ -5866,6 +5871,9 @@ export const deserializeAws_restJson1CreateDomainNameCommand = async (
58665871
context
58675872
);
58685873
}
5874+
if (data.ownershipVerificationCertificateArn !== undefined && data.ownershipVerificationCertificateArn !== null) {
5875+
contents.ownershipVerificationCertificateArn = __expectString(data.ownershipVerificationCertificateArn);
5876+
}
58695877
if (data.regionalCertificateArn !== undefined && data.regionalCertificateArn !== null) {
58705878
contents.regionalCertificateArn = __expectString(data.regionalCertificateArn);
58715879
}
@@ -10072,6 +10080,7 @@ export const deserializeAws_restJson1GetDomainNameCommand = async (
1007210080
domainNameStatusMessage: undefined,
1007310081
endpointConfiguration: undefined,
1007410082
mutualTlsAuthentication: undefined,
10083+
ownershipVerificationCertificateArn: undefined,
1007510084
regionalCertificateArn: undefined,
1007610085
regionalCertificateName: undefined,
1007710086
regionalDomainName: undefined,
@@ -10113,6 +10122,9 @@ export const deserializeAws_restJson1GetDomainNameCommand = async (
1011310122
context
1011410123
);
1011510124
}
10125+
if (data.ownershipVerificationCertificateArn !== undefined && data.ownershipVerificationCertificateArn !== null) {
10126+
contents.ownershipVerificationCertificateArn = __expectString(data.ownershipVerificationCertificateArn);
10127+
}
1011610128
if (data.regionalCertificateArn !== undefined && data.regionalCertificateArn !== null) {
1011710129
contents.regionalCertificateArn = __expectString(data.regionalCertificateArn);
1011810130
}
@@ -15172,6 +15184,7 @@ export const deserializeAws_restJson1UpdateDomainNameCommand = async (
1517215184
domainNameStatusMessage: undefined,
1517315185
endpointConfiguration: undefined,
1517415186
mutualTlsAuthentication: undefined,
15187+
ownershipVerificationCertificateArn: undefined,
1517515188
regionalCertificateArn: undefined,
1517615189
regionalCertificateName: undefined,
1517715190
regionalDomainName: undefined,
@@ -15213,6 +15226,9 @@ export const deserializeAws_restJson1UpdateDomainNameCommand = async (
1521315226
context
1521415227
);
1521515228
}
15229+
if (data.ownershipVerificationCertificateArn !== undefined && data.ownershipVerificationCertificateArn !== null) {
15230+
contents.ownershipVerificationCertificateArn = __expectString(data.ownershipVerificationCertificateArn);
15231+
}
1521615232
if (data.regionalCertificateArn !== undefined && data.regionalCertificateArn !== null) {
1521715233
contents.regionalCertificateArn = __expectString(data.regionalCertificateArn);
1521815234
}
@@ -17318,6 +17334,7 @@ const deserializeAws_restJson1DomainName = (output: any, context: __SerdeContext
1731817334
output.mutualTlsAuthentication !== undefined && output.mutualTlsAuthentication !== null
1731917335
? deserializeAws_restJson1MutualTlsAuthentication(output.mutualTlsAuthentication, context)
1732017336
: undefined,
17337+
ownershipVerificationCertificateArn: __expectString(output.ownershipVerificationCertificateArn),
1732117338
regionalCertificateArn: __expectString(output.regionalCertificateArn),
1732217339
regionalCertificateName: __expectString(output.regionalCertificateName),
1732317340
regionalDomainName: __expectString(output.regionalDomainName),

clients/client-apigatewayv2/models/models_0.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,8 @@ export namespace Deployment {
329329

330330
export enum DomainNameStatus {
331331
AVAILABLE = "AVAILABLE",
332+
PENDING_CERTIFICATE_REIMPORT = "PENDING_CERTIFICATE_REIMPORT",
333+
PENDING_OWNERSHIP_VERIFICATION = "PENDING_OWNERSHIP_VERIFICATION",
332334
UPDATING = "UPDATING",
333335
}
334336

@@ -367,7 +369,7 @@ export interface DomainNameConfiguration {
367369
CertificateUploadDate?: Date;
368370

369371
/**
370-
* <p>The status of the domain name migration. The valid values are AVAILABLE and UPDATING. If the status is UPDATING, the domain cannot be modified further until the existing operation is complete. If it is AVAILABLE, the domain can be updated.</p>
372+
* <p>The status of the domain name migration. The valid values are AVAILABLE, UPDATING, PENDING_CERTIFICATE_REIMPORT, and PENDING_OWNERSHIP_VERIFICATION. If the status is UPDATING, the domain cannot be modified further until the existing operation is complete. If it is AVAILABLE, the domain can be updated.</p>
371373
*/
372374
DomainNameStatus?: DomainNameStatus | string;
373375

@@ -390,6 +392,11 @@ export interface DomainNameConfiguration {
390392
* <p>The Transport Layer Security (TLS) version of the security policy for this domain name. The valid values are TLS_1_0 and TLS_1_2.</p>
391393
*/
392394
SecurityPolicy?: SecurityPolicy | string;
395+
396+
/**
397+
* <p>The ARN of the public certificate issued by ACM to validate ownership of your custom domain. Only required when configuring mutual TLS and using an ACM imported or private CA certificate ARN as the regionalCertificateArn</p>
398+
*/
399+
OwnershipVerificationCertificateArn?: string;
393400
}
394401

395402
export namespace DomainNameConfiguration {

clients/client-apigatewayv2/protocols/Aws_restJson1.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9794,6 +9794,10 @@ const serializeAws_restJson1DomainNameConfiguration = (
97949794
input.DomainNameStatusMessage !== null && { domainNameStatusMessage: input.DomainNameStatusMessage }),
97959795
...(input.EndpointType !== undefined && input.EndpointType !== null && { endpointType: input.EndpointType }),
97969796
...(input.HostedZoneId !== undefined && input.HostedZoneId !== null && { hostedZoneId: input.HostedZoneId }),
9797+
...(input.OwnershipVerificationCertificateArn !== undefined &&
9798+
input.OwnershipVerificationCertificateArn !== null && {
9799+
ownershipVerificationCertificateArn: input.OwnershipVerificationCertificateArn,
9800+
}),
97979801
...(input.SecurityPolicy !== undefined &&
97989802
input.SecurityPolicy !== null && { securityPolicy: input.SecurityPolicy }),
97999803
};
@@ -10332,6 +10336,7 @@ const deserializeAws_restJson1DomainNameConfiguration = (
1033210336
DomainNameStatusMessage: __expectString(output.domainNameStatusMessage),
1033310337
EndpointType: __expectString(output.endpointType),
1033410338
HostedZoneId: __expectString(output.hostedZoneId),
10339+
OwnershipVerificationCertificateArn: __expectString(output.ownershipVerificationCertificateArn),
1033510340
SecurityPolicy: __expectString(output.securityPolicy),
1033610341
} as any;
1033710342
};

clients/client-appflow/endpoints.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
4040
let regionInfo: RegionInfo | undefined = undefined;
4141
switch (region) {
4242
// First, try to match exact region names.
43+
case "af-south-1":
44+
regionInfo = {
45+
hostname: "appflow.af-south-1.amazonaws.com",
46+
partition: "aws",
47+
};
48+
break;
4349
case "ap-northeast-1":
4450
regionInfo = {
4551
hostname: "appflow.ap-northeast-1.amazonaws.com",

clients/client-appstream/endpoints.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,13 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
8989
signingService: "appstream",
9090
};
9191
break;
92+
case "eu-west-2":
93+
regionInfo = {
94+
hostname: "appstream2.eu-west-2.amazonaws.com",
95+
partition: "aws",
96+
signingService: "appstream",
97+
};
98+
break;
9299
case "fips":
93100
regionInfo = {
94101
hostname: "appstream2-fips.us-gov-west-1.amazonaws.com",

clients/client-appsync/endpoints.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
5858
partition: "aws",
5959
};
6060
break;
61+
case "ap-northeast-3":
62+
regionInfo = {
63+
hostname: "appsync.ap-northeast-3.amazonaws.com",
64+
partition: "aws",
65+
};
66+
break;
6167
case "ap-south-1":
6268
regionInfo = {
6369
hostname: "appsync.ap-south-1.amazonaws.com",

0 commit comments

Comments
 (0)