Skip to content

Commit

Permalink
feat(clients): update clients as of 08/13/2021 (#2674)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
AllanZhengYP authored Aug 13, 2021
1 parent c458481 commit de45580
Show file tree
Hide file tree
Showing 457 changed files with 54,746 additions and 3,743 deletions.
114 changes: 114 additions & 0 deletions clients/client-amplify/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,120 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
let regionInfo: RegionInfo | undefined = undefined;
switch (region) {
// First, try to match exact region names.
case "ap-east-1":
regionInfo = {
hostname: "amplify.ap-east-1.amazonaws.com",
partition: "aws",
};
break;
case "ap-northeast-1":
regionInfo = {
hostname: "amplify.ap-northeast-1.amazonaws.com",
partition: "aws",
};
break;
case "ap-northeast-2":
regionInfo = {
hostname: "amplify.ap-northeast-2.amazonaws.com",
partition: "aws",
};
break;
case "ap-south-1":
regionInfo = {
hostname: "amplify.ap-south-1.amazonaws.com",
partition: "aws",
};
break;
case "ap-southeast-1":
regionInfo = {
hostname: "amplify.ap-southeast-1.amazonaws.com",
partition: "aws",
};
break;
case "ap-southeast-2":
regionInfo = {
hostname: "amplify.ap-southeast-2.amazonaws.com",
partition: "aws",
};
break;
case "ca-central-1":
regionInfo = {
hostname: "amplify.ca-central-1.amazonaws.com",
partition: "aws",
};
break;
case "eu-central-1":
regionInfo = {
hostname: "amplify.eu-central-1.amazonaws.com",
partition: "aws",
};
break;
case "eu-north-1":
regionInfo = {
hostname: "amplify.eu-north-1.amazonaws.com",
partition: "aws",
};
break;
case "eu-south-1":
regionInfo = {
hostname: "amplify.eu-south-1.amazonaws.com",
partition: "aws",
};
break;
case "eu-west-1":
regionInfo = {
hostname: "amplify.eu-west-1.amazonaws.com",
partition: "aws",
};
break;
case "eu-west-2":
regionInfo = {
hostname: "amplify.eu-west-2.amazonaws.com",
partition: "aws",
};
break;
case "eu-west-3":
regionInfo = {
hostname: "amplify.eu-west-3.amazonaws.com",
partition: "aws",
};
break;
case "me-south-1":
regionInfo = {
hostname: "amplify.me-south-1.amazonaws.com",
partition: "aws",
};
break;
case "sa-east-1":
regionInfo = {
hostname: "amplify.sa-east-1.amazonaws.com",
partition: "aws",
};
break;
case "us-east-1":
regionInfo = {
hostname: "amplify.us-east-1.amazonaws.com",
partition: "aws",
};
break;
case "us-east-2":
regionInfo = {
hostname: "amplify.us-east-2.amazonaws.com",
partition: "aws",
};
break;
case "us-west-1":
regionInfo = {
hostname: "amplify.us-west-1.amazonaws.com",
partition: "aws",
};
break;
case "us-west-2":
regionInfo = {
hostname: "amplify.us-west-2.amazonaws.com",
partition: "aws",
};
break;
// Next, try to match partition endpoints.
default:
if (AWS_REGIONS.has(region)) {
Expand Down
16 changes: 14 additions & 2 deletions clients/client-api-gateway/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,7 @@ export interface MutualTlsAuthenticationInput {

/**
* <p>The version of the S3 object that contains your truststore. To
* specify a version, you must have versioning enabled for the S3 bucket.</p>
* specify a version, you must have versioning enabled for the S3 bucket.</p>
*/
truststoreVersion?: string;
}
Expand Down Expand Up @@ -1203,6 +1203,11 @@ export interface CreateDomainNameRequest {
* <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>
*/
mutualTlsAuthentication?: MutualTlsAuthenticationInput;

/**
* <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>
*/
ownershipVerificationCertificateArn?: string;
}

export namespace CreateDomainNameRequest {
Expand All @@ -1217,6 +1222,8 @@ export namespace CreateDomainNameRequest {
export enum DomainNameStatus {
AVAILABLE = "AVAILABLE",
PENDING = "PENDING",
PENDING_CERTIFICATE_REIMPORT = "PENDING_CERTIFICATE_REIMPORT",
PENDING_OWNERSHIP_VERIFICATION = "PENDING_OWNERSHIP_VERIFICATION",
UPDATING = "UPDATING",
}

Expand Down Expand Up @@ -1325,7 +1332,7 @@ export interface DomainName {
endpointConfiguration?: EndpointConfiguration;

/**
* <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>
* <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>
*/
domainNameStatus?: DomainNameStatus | string;

Expand All @@ -1348,6 +1355,11 @@ export interface DomainName {
* <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>
*/
mutualTlsAuthentication?: MutualTlsAuthentication;

/**
* <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>
*/
ownershipVerificationCertificateArn?: string;
}

export namespace DomainName {
Expand Down
17 changes: 17 additions & 0 deletions clients/client-api-gateway/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,10 @@ export const serializeAws_restJson1CreateDomainNameCommand = async (
context
),
}),
...(input.ownershipVerificationCertificateArn !== undefined &&
input.ownershipVerificationCertificateArn !== null && {
ownershipVerificationCertificateArn: input.ownershipVerificationCertificateArn,
}),
...(input.regionalCertificateArn !== undefined &&
input.regionalCertificateArn !== null && { regionalCertificateArn: input.regionalCertificateArn }),
...(input.regionalCertificateName !== undefined &&
Expand Down Expand Up @@ -5825,6 +5829,7 @@ export const deserializeAws_restJson1CreateDomainNameCommand = async (
domainNameStatusMessage: undefined,
endpointConfiguration: undefined,
mutualTlsAuthentication: undefined,
ownershipVerificationCertificateArn: undefined,
regionalCertificateArn: undefined,
regionalCertificateName: undefined,
regionalDomainName: undefined,
Expand Down Expand Up @@ -5866,6 +5871,9 @@ export const deserializeAws_restJson1CreateDomainNameCommand = async (
context
);
}
if (data.ownershipVerificationCertificateArn !== undefined && data.ownershipVerificationCertificateArn !== null) {
contents.ownershipVerificationCertificateArn = __expectString(data.ownershipVerificationCertificateArn);
}
if (data.regionalCertificateArn !== undefined && data.regionalCertificateArn !== null) {
contents.regionalCertificateArn = __expectString(data.regionalCertificateArn);
}
Expand Down Expand Up @@ -10072,6 +10080,7 @@ export const deserializeAws_restJson1GetDomainNameCommand = async (
domainNameStatusMessage: undefined,
endpointConfiguration: undefined,
mutualTlsAuthentication: undefined,
ownershipVerificationCertificateArn: undefined,
regionalCertificateArn: undefined,
regionalCertificateName: undefined,
regionalDomainName: undefined,
Expand Down Expand Up @@ -10113,6 +10122,9 @@ export const deserializeAws_restJson1GetDomainNameCommand = async (
context
);
}
if (data.ownershipVerificationCertificateArn !== undefined && data.ownershipVerificationCertificateArn !== null) {
contents.ownershipVerificationCertificateArn = __expectString(data.ownershipVerificationCertificateArn);
}
if (data.regionalCertificateArn !== undefined && data.regionalCertificateArn !== null) {
contents.regionalCertificateArn = __expectString(data.regionalCertificateArn);
}
Expand Down Expand Up @@ -15172,6 +15184,7 @@ export const deserializeAws_restJson1UpdateDomainNameCommand = async (
domainNameStatusMessage: undefined,
endpointConfiguration: undefined,
mutualTlsAuthentication: undefined,
ownershipVerificationCertificateArn: undefined,
regionalCertificateArn: undefined,
regionalCertificateName: undefined,
regionalDomainName: undefined,
Expand Down Expand Up @@ -15213,6 +15226,9 @@ export const deserializeAws_restJson1UpdateDomainNameCommand = async (
context
);
}
if (data.ownershipVerificationCertificateArn !== undefined && data.ownershipVerificationCertificateArn !== null) {
contents.ownershipVerificationCertificateArn = __expectString(data.ownershipVerificationCertificateArn);
}
if (data.regionalCertificateArn !== undefined && data.regionalCertificateArn !== null) {
contents.regionalCertificateArn = __expectString(data.regionalCertificateArn);
}
Expand Down Expand Up @@ -17318,6 +17334,7 @@ const deserializeAws_restJson1DomainName = (output: any, context: __SerdeContext
output.mutualTlsAuthentication !== undefined && output.mutualTlsAuthentication !== null
? deserializeAws_restJson1MutualTlsAuthentication(output.mutualTlsAuthentication, context)
: undefined,
ownershipVerificationCertificateArn: __expectString(output.ownershipVerificationCertificateArn),
regionalCertificateArn: __expectString(output.regionalCertificateArn),
regionalCertificateName: __expectString(output.regionalCertificateName),
regionalDomainName: __expectString(output.regionalDomainName),
Expand Down
9 changes: 8 additions & 1 deletion clients/client-apigatewayv2/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,8 @@ export namespace Deployment {

export enum DomainNameStatus {
AVAILABLE = "AVAILABLE",
PENDING_CERTIFICATE_REIMPORT = "PENDING_CERTIFICATE_REIMPORT",
PENDING_OWNERSHIP_VERIFICATION = "PENDING_OWNERSHIP_VERIFICATION",
UPDATING = "UPDATING",
}

Expand Down Expand Up @@ -367,7 +369,7 @@ export interface DomainNameConfiguration {
CertificateUploadDate?: Date;

/**
* <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>
* <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>
*/
DomainNameStatus?: DomainNameStatus | string;

Expand All @@ -390,6 +392,11 @@ export interface DomainNameConfiguration {
* <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>
*/
SecurityPolicy?: SecurityPolicy | string;

/**
* <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>
*/
OwnershipVerificationCertificateArn?: string;
}

export namespace DomainNameConfiguration {
Expand Down
5 changes: 5 additions & 0 deletions clients/client-apigatewayv2/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9794,6 +9794,10 @@ const serializeAws_restJson1DomainNameConfiguration = (
input.DomainNameStatusMessage !== null && { domainNameStatusMessage: input.DomainNameStatusMessage }),
...(input.EndpointType !== undefined && input.EndpointType !== null && { endpointType: input.EndpointType }),
...(input.HostedZoneId !== undefined && input.HostedZoneId !== null && { hostedZoneId: input.HostedZoneId }),
...(input.OwnershipVerificationCertificateArn !== undefined &&
input.OwnershipVerificationCertificateArn !== null && {
ownershipVerificationCertificateArn: input.OwnershipVerificationCertificateArn,
}),
...(input.SecurityPolicy !== undefined &&
input.SecurityPolicy !== null && { securityPolicy: input.SecurityPolicy }),
};
Expand Down Expand Up @@ -10332,6 +10336,7 @@ const deserializeAws_restJson1DomainNameConfiguration = (
DomainNameStatusMessage: __expectString(output.domainNameStatusMessage),
EndpointType: __expectString(output.endpointType),
HostedZoneId: __expectString(output.hostedZoneId),
OwnershipVerificationCertificateArn: __expectString(output.ownershipVerificationCertificateArn),
SecurityPolicy: __expectString(output.securityPolicy),
} as any;
};
Expand Down
6 changes: 6 additions & 0 deletions clients/client-appflow/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
let regionInfo: RegionInfo | undefined = undefined;
switch (region) {
// First, try to match exact region names.
case "af-south-1":
regionInfo = {
hostname: "appflow.af-south-1.amazonaws.com",
partition: "aws",
};
break;
case "ap-northeast-1":
regionInfo = {
hostname: "appflow.ap-northeast-1.amazonaws.com",
Expand Down
7 changes: 7 additions & 0 deletions clients/client-appstream/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
signingService: "appstream",
};
break;
case "eu-west-2":
regionInfo = {
hostname: "appstream2.eu-west-2.amazonaws.com",
partition: "aws",
signingService: "appstream",
};
break;
case "fips":
regionInfo = {
hostname: "appstream2-fips.us-gov-west-1.amazonaws.com",
Expand Down
6 changes: 6 additions & 0 deletions clients/client-appsync/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
partition: "aws",
};
break;
case "ap-northeast-3":
regionInfo = {
hostname: "appsync.ap-northeast-3.amazonaws.com",
partition: "aws",
};
break;
case "ap-south-1":
regionInfo = {
hostname: "appsync.ap-south-1.amazonaws.com",
Expand Down
Loading

0 comments on commit de45580

Please sign in to comment.