Skip to content

Commit bdc28fd

Browse files
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 1856cb7 commit bdc28fd

23 files changed

+408
-0
lines changed

generator/ServiceModels/apigatewayv2/apigatewayv2-2018-11-29.api.json

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1828,6 +1828,11 @@
18281828
"shape": "__listOf__string",
18291829
"locationName": "importInfo"
18301830
},
1831+
"IpAddressType": {
1832+
"shape": "IpAddressType",
1833+
"locationName": "ipAddressType",
1834+
"documentation": "<p>The IP address types that can invoke the API.</p>"
1835+
},
18311836
"Name": {
18321837
"shape": "StringWithLengthBetween1And128",
18331838
"locationName": "name"
@@ -2244,6 +2249,11 @@
22442249
"shape": "__boolean",
22452250
"locationName": "disableExecuteApiEndpoint"
22462251
},
2252+
"IpAddressType": {
2253+
"shape": "IpAddressType",
2254+
"locationName": "ipAddressType",
2255+
"documentation": "<p>The IP address types that can invoke the API.</p>"
2256+
},
22472257
"Name": {
22482258
"shape": "StringWithLengthBetween1And128",
22492259
"locationName": "name"
@@ -2321,6 +2331,11 @@
23212331
"shape": "__listOf__string",
23222332
"locationName": "importInfo"
23232333
},
2334+
"IpAddressType": {
2335+
"shape": "IpAddressType",
2336+
"locationName": "ipAddressType",
2337+
"documentation": "<p>The IP address types that can invoke the API.</p>"
2338+
},
23242339
"Name": {
23252340
"shape": "StringWithLengthBetween1And128",
23262341
"locationName": "name"
@@ -3987,6 +4002,11 @@
39874002
"shape": "__string",
39884003
"locationName": "hostedZoneId"
39894004
},
4005+
"IpAddressType": {
4006+
"shape": "IpAddressType",
4007+
"locationName": "ipAddressType",
4008+
"documentation": "<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>"
4009+
},
39904010
"SecurityPolicy": {
39914011
"shape": "SecurityPolicy",
39924012
"locationName": "securityPolicy"
@@ -4242,6 +4262,11 @@
42424262
"shape": "__listOf__string",
42434263
"locationName": "importInfo"
42444264
},
4265+
"IpAddressType": {
4266+
"shape": "IpAddressType",
4267+
"locationName": "ipAddressType",
4268+
"documentation": "<p>The IP address types that can invoke the API.</p>"
4269+
},
42454270
"Name": {
42464271
"shape": "StringWithLengthBetween1And128",
42474272
"locationName": "name"
@@ -5404,6 +5429,11 @@
54045429
"shape": "__listOf__string",
54055430
"locationName": "importInfo"
54065431
},
5432+
"IpAddressType": {
5433+
"shape": "IpAddressType",
5434+
"locationName": "ipAddressType",
5435+
"documentation": "<p>The IP address types that can invoke the API.</p>"
5436+
},
54075437
"Name": {
54085438
"shape": "StringWithLengthBetween1And128",
54095439
"locationName": "name"
@@ -5616,6 +5646,14 @@
56165646
}
56175647
}
56185648
},
5649+
"IpAddressType": {
5650+
"type": "string",
5651+
"documentation": "<p>The IP address types that can invoke your API or domain name.</p>",
5652+
"enum": [
5653+
"ipv4",
5654+
"dualstack"
5655+
]
5656+
},
56195657
"JWTConfiguration": {
56205658
"type": "structure",
56215659
"members": {
@@ -5848,6 +5886,11 @@
58485886
"shape": "__listOf__string",
58495887
"locationName": "importInfo"
58505888
},
5889+
"IpAddressType": {
5890+
"shape": "IpAddressType",
5891+
"locationName": "ipAddressType",
5892+
"documentation": "<p>The IP address types that can invoke the API.</p>"
5893+
},
58515894
"Name": {
58525895
"shape": "StringWithLengthBetween1And128",
58535896
"locationName": "name"
@@ -6317,6 +6360,11 @@
63176360
"shape": "__boolean",
63186361
"locationName": "disableExecuteApiEndpoint"
63196362
},
6363+
"IpAddressType": {
6364+
"shape": "IpAddressType",
6365+
"locationName": "ipAddressType",
6366+
"documentation": "<p>The IP address types that can invoke the API. Use ipv4 to allow only IPv4 addresses to invoke your API, or use dualstack to allow both IPv4 and IPv6 addresses to invoke your domain name.</p>"
6367+
},
63206368
"Name": {
63216369
"shape": "StringWithLengthBetween1And128",
63226370
"locationName": "name"
@@ -6441,6 +6489,11 @@
64416489
"shape": "__boolean",
64426490
"locationName": "disableExecuteApiEndpoint"
64436491
},
6492+
"IpAddressType": {
6493+
"shape": "IpAddressType",
6494+
"locationName": "ipAddressType",
6495+
"documentation": "<p>The IP address types that can invoke the API.</p>"
6496+
},
64446497
"Name": {
64456498
"shape": "StringWithLengthBetween1And128",
64466499
"locationName": "name"
@@ -6509,6 +6562,11 @@
65096562
"shape": "__listOf__string",
65106563
"locationName": "importInfo"
65116564
},
6565+
"IpAddressType": {
6566+
"shape": "IpAddressType",
6567+
"locationName": "ipAddressType",
6568+
"documentation": "<p>The IP address types that can invoke the API.</p>"
6569+
},
65126570
"Name": {
65136571
"shape": "StringWithLengthBetween1And128",
65146572
"locationName": "name"

generator/ServiceModels/apigatewayv2/apigatewayv2-2018-11-29.docs.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,15 @@
417417
"base" : "<p>Represents a collection of integrations.</p>",
418418
"refs" : { }
419419
},
420+
"IpAddressType" : {
421+
"base" : "<p>The IP address types that can invoke your API or domain name.</p>",
422+
"refs" : {
423+
"Api$IpAddressType" : "<p>The IP address types that can invoke the API.</p>",
424+
"CreateApiInput$IpAddressType" : "<p>The IP address types that can invoke the API. Use ipv4 to allow only IPv4 addresses to invoke your API, or use dualstack to allow both IPv4 and IPv6 addresses to invoke your API.</p>",
425+
"DomainNameConfiguration$IpAddressType" : "<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>",
426+
"UpdateApiInput$IpAddressType" : "<p>The IP address types that can invoke the API. Use ipv4 to allow only IPv4 addresses to invoke your API, or use dualstack to allow both IPv4 and IPv6 addresses to invoke your domain name.</p>"
427+
}
428+
},
420429
"JWTConfiguration" : {
421430
"base" : "<p>Represents the configuration of a JWT authorizer. Required for the JWT authorizer type. Supported only for HTTP APIs.</p>",
422431
"refs" : {

generator/ServiceModels/apigatewayv2/apigatewayv2-2018-11-29.normal.json

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2181,6 +2181,11 @@
21812181
"locationName": "importInfo",
21822182
"documentation": "<p>The validation information during API import. This may include particular properties of your OpenAPI definition which are ignored during import. Supported only for HTTP APIs.</p>"
21832183
},
2184+
"IpAddressType": {
2185+
"shape": "IpAddressType",
2186+
"locationName": "ipAddressType",
2187+
"documentation": "<p>The IP address types that can invoke the API.</p>"
2188+
},
21842189
"Name": {
21852190
"shape": "StringWithLengthBetween1And128",
21862191
"locationName": "name",
@@ -2683,6 +2688,11 @@
26832688
"locationName": "disableExecuteApiEndpoint",
26842689
"documentation": "<p>Specifies whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.</p>"
26852690
},
2691+
"IpAddressType": {
2692+
"shape": "IpAddressType",
2693+
"locationName": "ipAddressType",
2694+
"documentation": "<p>The IP address types that can invoke the API.</p>"
2695+
},
26862696
"Name": {
26872697
"shape": "StringWithLengthBetween1And128",
26882698
"locationName": "name",
@@ -2778,6 +2788,11 @@
27782788
"locationName": "importInfo",
27792789
"documentation": "<p>The validation information during API import. This may include particular properties of your OpenAPI definition which are ignored during import. Supported only for HTTP APIs.</p>"
27802790
},
2791+
"IpAddressType": {
2792+
"shape": "IpAddressType",
2793+
"locationName": "ipAddressType",
2794+
"documentation": "<p>The IP address types that can invoke the API.</p>"
2795+
},
27812796
"Name": {
27822797
"shape": "StringWithLengthBetween1And128",
27832798
"locationName": "name",
@@ -4773,6 +4788,11 @@
47734788
"locationName": "hostedZoneId",
47744789
"documentation": "<p>The Amazon Route 53 Hosted Zone ID of the endpoint.</p>"
47754790
},
4791+
"IpAddressType": {
4792+
"shape": "IpAddressType",
4793+
"locationName": "ipAddressType",
4794+
"documentation": "<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>"
4795+
},
47764796
"SecurityPolicy": {
47774797
"shape": "SecurityPolicy",
47784798
"locationName": "securityPolicy",
@@ -5068,6 +5088,11 @@
50685088
"locationName": "importInfo",
50695089
"documentation": "<p>The validation information during API import. This may include particular properties of your OpenAPI definition which are ignored during import. Supported only for HTTP APIs.</p>"
50705090
},
5091+
"IpAddressType": {
5092+
"shape": "IpAddressType",
5093+
"locationName": "ipAddressType",
5094+
"documentation": "<p>The IP address types that can invoke the API.</p>"
5095+
},
50715096
"Name": {
50725097
"shape": "StringWithLengthBetween1And128",
50735098
"locationName": "name",
@@ -6426,6 +6451,11 @@
64266451
"locationName": "importInfo",
64276452
"documentation": "<p>The validation information during API import. This may include particular properties of your OpenAPI definition which are ignored during import. Supported only for HTTP APIs.</p>"
64286453
},
6454+
"IpAddressType": {
6455+
"shape": "IpAddressType",
6456+
"locationName": "ipAddressType",
6457+
"documentation": "<p>The IP address types that can invoke the API.</p>"
6458+
},
64296459
"Name": {
64306460
"shape": "StringWithLengthBetween1And128",
64316461
"locationName": "name",
@@ -6674,6 +6704,14 @@
66746704
},
66756705
"documentation": "<p>Represents a collection of integrations.</p>"
66766706
},
6707+
"IpAddressType": {
6708+
"type": "string",
6709+
"documentation": "<p>The IP address types that can invoke your API or domain name.</p>",
6710+
"enum": [
6711+
"ipv4",
6712+
"dualstack"
6713+
]
6714+
},
66776715
"JWTConfiguration": {
66786716
"type": "structure",
66796717
"members": {
@@ -6952,6 +6990,11 @@
69526990
"locationName": "importInfo",
69536991
"documentation": "<p>The validation information during API import. This may include particular properties of your OpenAPI definition which are ignored during import. Supported only for HTTP APIs.</p>"
69546992
},
6993+
"IpAddressType": {
6994+
"shape": "IpAddressType",
6995+
"locationName": "ipAddressType",
6996+
"documentation": "<p>The IP address types that can invoke the API.</p>"
6997+
},
69556998
"Name": {
69566999
"shape": "StringWithLengthBetween1And128",
69577000
"locationName": "name",
@@ -7529,6 +7572,11 @@
75297572
"locationName": "disableSchemaValidation",
75307573
"documentation": "<p>Avoid validating models when creating a deployment. Supported only for WebSocket APIs.</p>"
75317574
},
7575+
"IpAddressType": {
7576+
"shape": "IpAddressType",
7577+
"locationName": "ipAddressType",
7578+
"documentation": "<p>The IP address types that can invoke the API.</p>"
7579+
},
75327580
"Name": {
75337581
"shape": "StringWithLengthBetween1And128",
75347582
"locationName": "name",
@@ -7680,6 +7728,11 @@
76807728
"locationName": "disableExecuteApiEndpoint",
76817729
"documentation": "<p>Specifies whether clients can invoke your API by using the default execute-api endpoint. By default, clients can invoke your API with the default https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that clients use a custom domain name to invoke your API, disable the default endpoint.</p>"
76827730
},
7731+
"IpAddressType": {
7732+
"shape": "IpAddressType",
7733+
"locationName": "ipAddressType",
7734+
"documentation": "<p>The IP address types that can invoke your API or domain name.</p>"
7735+
},
76837736
"Name": {
76847737
"shape": "StringWithLengthBetween1And128",
76857738
"locationName": "name",
@@ -7764,6 +7817,11 @@
77647817
"locationName": "importInfo",
77657818
"documentation": "<p>The validation information during API import. This may include particular properties of your OpenAPI definition which are ignored during import. Supported only for HTTP APIs.</p>"
77667819
},
7820+
"IpAddressType": {
7821+
"shape": "IpAddressType",
7822+
"locationName": "ipAddressType",
7823+
"documentation": "<p>The IP address types that can invoke the API.</p>"
7824+
},
77677825
"Name": {
77687826
"shape": "StringWithLengthBetween1And128",
77697827
"locationName": "name",

sdk/src/Services/ApiGatewayV2/Generated/Model/Api.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public partial class Api
4444
private bool? _disableExecuteApiEndpoint;
4545
private bool? _disableSchemaValidation;
4646
private List<string> _importInfo = AWSConfigs.InitializeCollections ? new List<string>() : null;
47+
private IpAddressType _ipAddressType;
4748
private string _name;
4849
private ProtocolType _protocolType;
4950
private string _routeSelectionExpression;
@@ -240,6 +241,24 @@ internal bool IsSetImportInfo()
240241
return this._importInfo != null && (this._importInfo.Count > 0 || !AWSConfigs.InitializeCollections);
241242
}
242243

244+
/// <summary>
245+
/// Gets and sets the property IpAddressType.
246+
/// <para>
247+
/// The IP address types that can invoke the API.
248+
/// </para>
249+
/// </summary>
250+
public IpAddressType IpAddressType
251+
{
252+
get { return this._ipAddressType; }
253+
set { this._ipAddressType = value; }
254+
}
255+
256+
// Check to see if IpAddressType property is set
257+
internal bool IsSetIpAddressType()
258+
{
259+
return this._ipAddressType != null;
260+
}
261+
243262
/// <summary>
244263
/// Gets and sets the property Name.
245264
/// <para>

sdk/src/Services/ApiGatewayV2/Generated/Model/CreateApiRequest.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public partial class CreateApiRequest : AmazonApiGatewayV2Request
4141
private string _description;
4242
private bool? _disableExecuteApiEndpoint;
4343
private bool? _disableSchemaValidation;
44+
private IpAddressType _ipAddressType;
4445
private string _name;
4546
private ProtocolType _protocolType;
4647
private string _routeKey;
@@ -168,6 +169,24 @@ internal bool IsSetDisableSchemaValidation()
168169
return this._disableSchemaValidation.HasValue;
169170
}
170171

172+
/// <summary>
173+
/// Gets and sets the property IpAddressType.
174+
/// <para>
175+
/// The IP address types that can invoke the API.
176+
/// </para>
177+
/// </summary>
178+
public IpAddressType IpAddressType
179+
{
180+
get { return this._ipAddressType; }
181+
set { this._ipAddressType = value; }
182+
}
183+
184+
// Check to see if IpAddressType property is set
185+
internal bool IsSetIpAddressType()
186+
{
187+
return this._ipAddressType != null;
188+
}
189+
171190
/// <summary>
172191
/// Gets and sets the property Name.
173192
/// <para>

sdk/src/Services/ApiGatewayV2/Generated/Model/CreateApiResponse.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public partial class CreateApiResponse : AmazonWebServiceResponse
4444
private bool? _disableExecuteApiEndpoint;
4545
private bool? _disableSchemaValidation;
4646
private List<string> _importInfo = AWSConfigs.InitializeCollections ? new List<string>() : null;
47+
private IpAddressType _ipAddressType;
4748
private string _name;
4849
private ProtocolType _protocolType;
4950
private string _routeSelectionExpression;
@@ -240,6 +241,24 @@ internal bool IsSetImportInfo()
240241
return this._importInfo != null && (this._importInfo.Count > 0 || !AWSConfigs.InitializeCollections);
241242
}
242243

244+
/// <summary>
245+
/// Gets and sets the property IpAddressType.
246+
/// <para>
247+
/// The IP address types that can invoke the API.
248+
/// </para>
249+
/// </summary>
250+
public IpAddressType IpAddressType
251+
{
252+
get { return this._ipAddressType; }
253+
set { this._ipAddressType = value; }
254+
}
255+
256+
// Check to see if IpAddressType property is set
257+
internal bool IsSetIpAddressType()
258+
{
259+
return this._ipAddressType != null;
260+
}
261+
243262
/// <summary>
244263
/// Gets and sets the property Name.
245264
/// <para>

0 commit comments

Comments
 (0)