Skip to content

Commit 7528ca9

Browse files
author
awstools
committed
feat(client-apigatewayv2): Adds support for setting the IP address type to allow dual-stack or IPv4 address types to invoke your APIs or domain names.
1 parent ef4a874 commit 7528ca9

13 files changed

+175
-0
lines changed

clients/client-apigatewayv2/src/commands/CreateApiCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export interface CreateApiCommandOutput extends CreateApiResponse, __MetadataBea
5757
* Description: "STRING_VALUE",
5858
* DisableSchemaValidation: true || false,
5959
* DisableExecuteApiEndpoint: true || false,
60+
* IpAddressType: "ipv4" || "dualstack",
6061
* Name: "STRING_VALUE", // required
6162
* ProtocolType: "WEBSOCKET" || "HTTP", // required
6263
* RouteKey: "STRING_VALUE",
@@ -97,6 +98,7 @@ export interface CreateApiCommandOutput extends CreateApiResponse, __MetadataBea
9798
* // ImportInfo: [ // __listOf__string
9899
* // "STRING_VALUE",
99100
* // ],
101+
* // IpAddressType: "ipv4" || "dualstack",
100102
* // Name: "STRING_VALUE",
101103
* // ProtocolType: "WEBSOCKET" || "HTTP",
102104
* // RouteSelectionExpression: "STRING_VALUE",

clients/client-apigatewayv2/src/commands/CreateDomainNameCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export interface CreateDomainNameCommandOutput extends CreateDomainNameResponse,
4747
* DomainNameStatusMessage: "STRING_VALUE",
4848
* EndpointType: "REGIONAL" || "EDGE",
4949
* HostedZoneId: "STRING_VALUE",
50+
* IpAddressType: "ipv4" || "dualstack",
5051
* SecurityPolicy: "TLS_1_0" || "TLS_1_2",
5152
* OwnershipVerificationCertificateArn: "STRING_VALUE",
5253
* },
@@ -74,6 +75,7 @@ export interface CreateDomainNameCommandOutput extends CreateDomainNameResponse,
7475
* // DomainNameStatusMessage: "STRING_VALUE",
7576
* // EndpointType: "REGIONAL" || "EDGE",
7677
* // HostedZoneId: "STRING_VALUE",
78+
* // IpAddressType: "ipv4" || "dualstack",
7779
* // SecurityPolicy: "TLS_1_0" || "TLS_1_2",
7880
* // OwnershipVerificationCertificateArn: "STRING_VALUE",
7981
* // },

clients/client-apigatewayv2/src/commands/GetApiCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ export interface GetApiCommandOutput extends GetApiResponse, __MetadataBearer {}
6868
* // ImportInfo: [ // __listOf__string
6969
* // "STRING_VALUE",
7070
* // ],
71+
* // IpAddressType: "ipv4" || "dualstack",
7172
* // Name: "STRING_VALUE",
7273
* // ProtocolType: "WEBSOCKET" || "HTTP",
7374
* // RouteSelectionExpression: "STRING_VALUE",

clients/client-apigatewayv2/src/commands/GetApisCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export interface GetApisCommandOutput extends GetApisResponse, __MetadataBearer
7171
* // ImportInfo: [ // __listOf__string
7272
* // "STRING_VALUE",
7373
* // ],
74+
* // IpAddressType: "ipv4" || "dualstack",
7475
* // Name: "STRING_VALUE", // required
7576
* // ProtocolType: "WEBSOCKET" || "HTTP", // required
7677
* // RouteSelectionExpression: "STRING_VALUE", // required

clients/client-apigatewayv2/src/commands/GetDomainNameCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export interface GetDomainNameCommandOutput extends GetDomainNameResponse, __Met
5353
* // DomainNameStatusMessage: "STRING_VALUE",
5454
* // EndpointType: "REGIONAL" || "EDGE",
5555
* // HostedZoneId: "STRING_VALUE",
56+
* // IpAddressType: "ipv4" || "dualstack",
5657
* // SecurityPolicy: "TLS_1_0" || "TLS_1_2",
5758
* // OwnershipVerificationCertificateArn: "STRING_VALUE",
5859
* // },

clients/client-apigatewayv2/src/commands/GetDomainNamesCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export interface GetDomainNamesCommandOutput extends GetDomainNamesResponse, __M
5656
* // DomainNameStatusMessage: "STRING_VALUE",
5757
* // EndpointType: "REGIONAL" || "EDGE",
5858
* // HostedZoneId: "STRING_VALUE",
59+
* // IpAddressType: "ipv4" || "dualstack",
5960
* // SecurityPolicy: "TLS_1_0" || "TLS_1_2",
6061
* // OwnershipVerificationCertificateArn: "STRING_VALUE",
6162
* // },

clients/client-apigatewayv2/src/commands/ImportApiCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export interface ImportApiCommandOutput extends ImportApiResponse, __MetadataBea
7070
* // ImportInfo: [ // __listOf__string
7171
* // "STRING_VALUE",
7272
* // ],
73+
* // IpAddressType: "ipv4" || "dualstack",
7374
* // Name: "STRING_VALUE",
7475
* // ProtocolType: "WEBSOCKET" || "HTTP",
7576
* // RouteSelectionExpression: "STRING_VALUE",

clients/client-apigatewayv2/src/commands/ReimportApiCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export interface ReimportApiCommandOutput extends ReimportApiResponse, __Metadat
7171
* // ImportInfo: [ // __listOf__string
7272
* // "STRING_VALUE",
7373
* // ],
74+
* // IpAddressType: "ipv4" || "dualstack",
7475
* // Name: "STRING_VALUE",
7576
* // ProtocolType: "WEBSOCKET" || "HTTP",
7677
* // RouteSelectionExpression: "STRING_VALUE",

clients/client-apigatewayv2/src/commands/UpdateApiCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export interface UpdateApiCommandOutput extends UpdateApiResponse, __MetadataBea
5858
* Description: "STRING_VALUE",
5959
* DisableSchemaValidation: true || false,
6060
* DisableExecuteApiEndpoint: true || false,
61+
* IpAddressType: "ipv4" || "dualstack",
6162
* Name: "STRING_VALUE",
6263
* RouteKey: "STRING_VALUE",
6364
* RouteSelectionExpression: "STRING_VALUE",
@@ -94,6 +95,7 @@ export interface UpdateApiCommandOutput extends UpdateApiResponse, __MetadataBea
9495
* // ImportInfo: [ // __listOf__string
9596
* // "STRING_VALUE",
9697
* // ],
98+
* // IpAddressType: "ipv4" || "dualstack",
9799
* // Name: "STRING_VALUE",
98100
* // ProtocolType: "WEBSOCKET" || "HTTP",
99101
* // RouteSelectionExpression: "STRING_VALUE",

clients/client-apigatewayv2/src/commands/UpdateDomainNameCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export interface UpdateDomainNameCommandOutput extends UpdateDomainNameResponse,
4747
* DomainNameStatusMessage: "STRING_VALUE",
4848
* EndpointType: "REGIONAL" || "EDGE",
4949
* HostedZoneId: "STRING_VALUE",
50+
* IpAddressType: "ipv4" || "dualstack",
5051
* SecurityPolicy: "TLS_1_0" || "TLS_1_2",
5152
* OwnershipVerificationCertificateArn: "STRING_VALUE",
5253
* },
@@ -71,6 +72,7 @@ export interface UpdateDomainNameCommandOutput extends UpdateDomainNameResponse,
7172
* // DomainNameStatusMessage: "STRING_VALUE",
7273
* // EndpointType: "REGIONAL" || "EDGE",
7374
* // HostedZoneId: "STRING_VALUE",
75+
* // IpAddressType: "ipv4" || "dualstack",
7476
* // SecurityPolicy: "TLS_1_0" || "TLS_1_2",
7577
* // OwnershipVerificationCertificateArn: "STRING_VALUE",
7678
* // },

clients/client-apigatewayv2/src/models/models_0.ts

+68
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,20 @@ export interface Cors {
4545
MaxAge?: number | undefined;
4646
}
4747

48+
/**
49+
* @public
50+
* @enum
51+
*/
52+
export const IpAddressType = {
53+
dualstack: "dualstack",
54+
ipv4: "ipv4",
55+
} as const;
56+
57+
/**
58+
* @public
59+
*/
60+
export type IpAddressType = (typeof IpAddressType)[keyof typeof IpAddressType];
61+
4862
/**
4963
* @public
5064
* @enum
@@ -124,6 +138,12 @@ export interface Api {
124138
*/
125139
ImportInfo?: string[] | undefined;
126140

141+
/**
142+
* <p>The IP address types that can invoke the API.</p>
143+
* @public
144+
*/
145+
IpAddressType?: IpAddressType | undefined;
146+
127147
/**
128148
* <p>The name of the API.</p>
129149
* @public
@@ -451,6 +471,12 @@ export interface DomainNameConfiguration {
451471
*/
452472
HostedZoneId?: string | undefined;
453473

474+
/**
475+
* <p>The IP address types that can invoke the domain name. Use ipv4 to allow only IPv4 addresses to invoke your domain name, or use dualstack to allow both IPv4 and IPv6 addresses to invoke your domain name.</p>
476+
* @public
477+
*/
478+
IpAddressType?: IpAddressType | undefined;
479+
454480
/**
455481
* <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>
456482
* @public
@@ -1315,6 +1341,12 @@ export interface CreateApiRequest {
13151341
*/
13161342
DisableExecuteApiEndpoint?: boolean | undefined;
13171343

1344+
/**
1345+
* <p>The IP address types that can invoke the API.</p>
1346+
* @public
1347+
*/
1348+
IpAddressType?: IpAddressType | undefined;
1349+
13181350
/**
13191351
* <p>The name of the API.</p>
13201352
* @public
@@ -1422,6 +1454,12 @@ export interface CreateApiResponse {
14221454
*/
14231455
ImportInfo?: string[] | undefined;
14241456

1457+
/**
1458+
* <p>The IP address types that can invoke the API.</p>
1459+
* @public
1460+
*/
1461+
IpAddressType?: IpAddressType | undefined;
1462+
14251463
/**
14261464
* <p>The name of the API.</p>
14271465
* @public
@@ -3189,6 +3227,12 @@ export interface GetApiResponse {
31893227
*/
31903228
ImportInfo?: string[] | undefined;
31913229

3230+
/**
3231+
* <p>The IP address types that can invoke the API.</p>
3232+
* @public
3233+
*/
3234+
IpAddressType?: IpAddressType | undefined;
3235+
31923236
/**
31933237
* <p>The name of the API.</p>
31943238
* @public
@@ -4674,6 +4718,12 @@ export interface ImportApiResponse {
46744718
*/
46754719
ImportInfo?: string[] | undefined;
46764720

4721+
/**
4722+
* <p>The IP address types that can invoke the API.</p>
4723+
* @public
4724+
*/
4725+
IpAddressType?: IpAddressType | undefined;
4726+
46774727
/**
46784728
* <p>The name of the API.</p>
46794729
* @public
@@ -4805,6 +4855,12 @@ export interface ReimportApiResponse {
48054855
*/
48064856
ImportInfo?: string[] | undefined;
48074857

4858+
/**
4859+
* <p>The IP address types that can invoke the API.</p>
4860+
* @public
4861+
*/
4862+
IpAddressType?: IpAddressType | undefined;
4863+
48084864
/**
48094865
* <p>The name of the API.</p>
48104866
* @public
@@ -4946,6 +5002,12 @@ export interface UpdateApiRequest {
49465002
*/
49475003
DisableExecuteApiEndpoint?: boolean | undefined;
49485004

5005+
/**
5006+
* <p>The IP address types that can invoke your API or domain name.</p>
5007+
* @public
5008+
*/
5009+
IpAddressType?: IpAddressType | undefined;
5010+
49495011
/**
49505012
* <p>The name of the API.</p>
49515013
* @public
@@ -5041,6 +5103,12 @@ export interface UpdateApiResponse {
50415103
*/
50425104
ImportInfo?: string[] | undefined;
50435105

5106+
/**
5107+
* <p>The IP address types that can invoke the API.</p>
5108+
* @public
5109+
*/
5110+
IpAddressType?: IpAddressType | undefined;
5111+
50445112
/**
50455113
* <p>The name of the API.</p>
50465114
* @public

clients/client-apigatewayv2/src/protocols/Aws_restJson1.ts

+10
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ export const se_CreateApiCommand = async (
190190
description: [, , `Description`],
191191
disableExecuteApiEndpoint: [, , `DisableExecuteApiEndpoint`],
192192
disableSchemaValidation: [, , `DisableSchemaValidation`],
193+
ipAddressType: [, , `IpAddressType`],
193194
name: [, , `Name`],
194195
protocolType: [, , `ProtocolType`],
195196
routeKey: [, , `RouteKey`],
@@ -1420,6 +1421,7 @@ export const se_UpdateApiCommand = async (
14201421
description: [, , `Description`],
14211422
disableExecuteApiEndpoint: [, , `DisableExecuteApiEndpoint`],
14221423
disableSchemaValidation: [, , `DisableSchemaValidation`],
1424+
ipAddressType: [, , `IpAddressType`],
14231425
name: [, , `Name`],
14241426
routeKey: [, , `RouteKey`],
14251427
routeSelectionExpression: [, , `RouteSelectionExpression`],
@@ -1775,6 +1777,7 @@ export const de_CreateApiCommand = async (
17751777
DisableExecuteApiEndpoint: [, __expectBoolean, `disableExecuteApiEndpoint`],
17761778
DisableSchemaValidation: [, __expectBoolean, `disableSchemaValidation`],
17771779
ImportInfo: [, _json, `importInfo`],
1780+
IpAddressType: [, __expectString, `ipAddressType`],
17781781
Name: [, __expectString, `name`],
17791782
ProtocolType: [, __expectString, `protocolType`],
17801783
RouteSelectionExpression: [, __expectString, `routeSelectionExpression`],
@@ -2419,6 +2422,7 @@ export const de_GetApiCommand = async (
24192422
DisableExecuteApiEndpoint: [, __expectBoolean, `disableExecuteApiEndpoint`],
24202423
DisableSchemaValidation: [, __expectBoolean, `disableSchemaValidation`],
24212424
ImportInfo: [, _json, `importInfo`],
2425+
IpAddressType: [, __expectString, `ipAddressType`],
24222426
Name: [, __expectString, `name`],
24232427
ProtocolType: [, __expectString, `protocolType`],
24242428
RouteSelectionExpression: [, __expectString, `routeSelectionExpression`],
@@ -3079,6 +3083,7 @@ export const de_ImportApiCommand = async (
30793083
DisableExecuteApiEndpoint: [, __expectBoolean, `disableExecuteApiEndpoint`],
30803084
DisableSchemaValidation: [, __expectBoolean, `disableSchemaValidation`],
30813085
ImportInfo: [, _json, `importInfo`],
3086+
IpAddressType: [, __expectString, `ipAddressType`],
30823087
Name: [, __expectString, `name`],
30833088
ProtocolType: [, __expectString, `protocolType`],
30843089
RouteSelectionExpression: [, __expectString, `routeSelectionExpression`],
@@ -3115,6 +3120,7 @@ export const de_ReimportApiCommand = async (
31153120
DisableExecuteApiEndpoint: [, __expectBoolean, `disableExecuteApiEndpoint`],
31163121
DisableSchemaValidation: [, __expectBoolean, `disableSchemaValidation`],
31173122
ImportInfo: [, _json, `importInfo`],
3123+
IpAddressType: [, __expectString, `ipAddressType`],
31183124
Name: [, __expectString, `name`],
31193125
ProtocolType: [, __expectString, `protocolType`],
31203126
RouteSelectionExpression: [, __expectString, `routeSelectionExpression`],
@@ -3202,6 +3208,7 @@ export const de_UpdateApiCommand = async (
32023208
DisableExecuteApiEndpoint: [, __expectBoolean, `disableExecuteApiEndpoint`],
32033209
DisableSchemaValidation: [, __expectBoolean, `disableSchemaValidation`],
32043210
ImportInfo: [, _json, `importInfo`],
3211+
IpAddressType: [, __expectString, `ipAddressType`],
32053212
Name: [, __expectString, `name`],
32063213
ProtocolType: [, __expectString, `protocolType`],
32073214
RouteSelectionExpression: [, __expectString, `routeSelectionExpression`],
@@ -3707,6 +3714,7 @@ const se_DomainNameConfiguration = (input: DomainNameConfiguration, context: __S
37073714
domainNameStatusMessage: [, , `DomainNameStatusMessage`],
37083715
endpointType: [, , `EndpointType`],
37093716
hostedZoneId: [, , `HostedZoneId`],
3717+
ipAddressType: [, , `IpAddressType`],
37103718
ownershipVerificationCertificateArn: [, , `OwnershipVerificationCertificateArn`],
37113719
securityPolicy: [, , `SecurityPolicy`],
37123720
});
@@ -3989,6 +3997,7 @@ const de_Api = (output: any, context: __SerdeContext): Api => {
39893997
DisableExecuteApiEndpoint: [, __expectBoolean, `disableExecuteApiEndpoint`],
39903998
DisableSchemaValidation: [, __expectBoolean, `disableSchemaValidation`],
39913999
ImportInfo: [, _json, `importInfo`],
4000+
IpAddressType: [, __expectString, `ipAddressType`],
39924001
Name: [, __expectString, `name`],
39934002
ProtocolType: [, __expectString, `protocolType`],
39944003
RouteSelectionExpression: [, __expectString, `routeSelectionExpression`],
@@ -4095,6 +4104,7 @@ const de_DomainNameConfiguration = (output: any, context: __SerdeContext): Domai
40954104
DomainNameStatusMessage: [, __expectString, `domainNameStatusMessage`],
40964105
EndpointType: [, __expectString, `endpointType`],
40974106
HostedZoneId: [, __expectString, `hostedZoneId`],
4107+
IpAddressType: [, __expectString, `ipAddressType`],
40984108
OwnershipVerificationCertificateArn: [, __expectString, `ownershipVerificationCertificateArn`],
40994109
SecurityPolicy: [, __expectString, `securityPolicy`],
41004110
}) as any;

0 commit comments

Comments
 (0)