Skip to content

Commit 1856cb7

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 2f73c53 commit 1856cb7

19 files changed

+144
-35
lines changed

generator/ServiceModels/apigateway/apigateway-2015-07-09.api.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3104,6 +3104,7 @@
31043104
"type":"structure",
31053105
"members":{
31063106
"types":{"shape":"ListOfEndpointType"},
3107+
"ipAddressType":{"shape":"IpAddressType"},
31073108
"vpcEndpointIds":{"shape":"ListOfString"}
31083109
}
31093110
},
@@ -4315,6 +4316,13 @@
43154316
"AWS_PROXY"
43164317
]
43174318
},
4319+
"IpAddressType":{
4320+
"type":"string",
4321+
"enum":[
4322+
"ipv4",
4323+
"dualstack"
4324+
]
4325+
},
43184326
"LimitExceededException":{
43194327
"type":"structure",
43204328
"members":{

generator/ServiceModels/apigateway/apigateway-2015-07-09.docs.json

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -606,12 +606,12 @@
606606
}
607607
},
608608
"EndpointConfiguration": {
609-
"base": "<p>The endpoint configuration to indicate the types of endpoints an API (RestApi) or its custom domain name (DomainName) has. </p>",
609+
"base": "<p>The endpoint configuration to indicate the types of endpoints an API (RestApi) or its custom domain name (DomainName) has and the IP address types that can invoke it. </p>",
610610
"refs": {
611-
"CreateDomainNameRequest$endpointConfiguration": "<p>The endpoint configuration of this DomainName showing the endpoint types of the domain name. </p>",
612-
"CreateRestApiRequest$endpointConfiguration": "<p>The endpoint configuration of this RestApi showing the endpoint types of the API. </p>",
613-
"DomainName$endpointConfiguration": "<p>The endpoint configuration of this DomainName showing the endpoint types of the domain name. </p>",
614-
"RestApi$endpointConfiguration": "<p>The endpoint configuration of this RestApi showing the endpoint types of the API. </p>"
611+
"CreateDomainNameRequest$endpointConfiguration": "<p>The endpoint configuration of this DomainName showing the endpoint types and IP address types of the domain name. </p>",
612+
"CreateRestApiRequest$endpointConfiguration": "<p>The endpoint configuration of this RestApi showing the endpoint types and IP address types of the API. </p>",
613+
"DomainName$endpointConfiguration": "<p>The endpoint configuration of this DomainName showing the endpoint types and IP address types of the domain name. </p>",
614+
"RestApi$endpointConfiguration": "<p>The endpoint configuration of this RestApi showing the endpoint types and IP address types of the API. </p>"
615615
}
616616
},
617617
"EndpointType": {
@@ -943,6 +943,12 @@
943943
"PutIntegrationRequest$type": "<p>Specifies a put integration input's type.</p>"
944944
}
945945
},
946+
"IpAddressType": {
947+
"base": null,
948+
"refs": {
949+
"EndpointConfiguration$ipAddressType": "<p>The IP address types that can invoke an API (RestApi) or a DomainName. Use <code>ipv4</code> to allow only IPv4 addresses to invoke an API or DomainName, or use <code>dualstack</code> to allow both IPv4 and IPv6 addresses to invoke an API or a DomainName. For the <code>PRIVATE</code> endpoint type, only <code>dualstack</code> is supported.</p>"
950+
}
951+
},
946952
"LimitExceededException": {
947953
"base": "<p>The request exceeded the rate limit. Retry after the specified time period.</p>",
948954
"refs": {

generator/ServiceModels/apigateway/apigateway-2015-07-09.normal.json

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2807,7 +2807,7 @@
28072807
},
28082808
"endpointConfiguration":{
28092809
"shape":"EndpointConfiguration",
2810-
"documentation":"<p>The endpoint configuration of this DomainName showing the endpoint types of the domain name. </p>"
2810+
"documentation":"<p>The endpoint configuration of this DomainName showing the endpoint types and IP address types of the domain name. </p>"
28112811
},
28122812
"tags":{
28132813
"shape":"MapOfStringToString",
@@ -2948,7 +2948,7 @@
29482948
},
29492949
"endpointConfiguration":{
29502950
"shape":"EndpointConfiguration",
2951-
"documentation":"<p>The endpoint configuration of this RestApi showing the endpoint types of the API. </p>"
2951+
"documentation":"<p>The endpoint configuration of this RestApi showing the endpoint types and IP address types of the API. </p>"
29522952
},
29532953
"policy":{
29542954
"shape":"String",
@@ -3805,7 +3805,7 @@
38053805
},
38063806
"endpointConfiguration":{
38073807
"shape":"EndpointConfiguration",
3808-
"documentation":"<p>The endpoint configuration of this DomainName showing the endpoint types of the domain name. </p>"
3808+
"documentation":"<p>The endpoint configuration of this DomainName showing the endpoint types and IP address types of the domain name. </p>"
38093809
},
38103810
"domainNameStatus":{
38113811
"shape":"DomainNameStatus",
@@ -3909,12 +3909,16 @@
39093909
"shape":"ListOfEndpointType",
39103910
"documentation":"<p>A list of endpoint types of an API (RestApi) or its custom domain name (DomainName). For an edge-optimized API and its custom domain name, the endpoint type is <code>\"EDGE\"</code>. For a regional API and its custom domain name, the endpoint type is <code>REGIONAL</code>. For a private API, the endpoint type is <code>PRIVATE</code>.</p>"
39113911
},
3912+
"ipAddressType":{
3913+
"shape":"IpAddressType",
3914+
"documentation":"<p>The IP address types that can invoke an API (RestApi) or a DomainName. Use <code>ipv4</code> to allow only IPv4 addresses to invoke an API or DomainName, or use <code>dualstack</code> to allow both IPv4 and IPv6 addresses to invoke an API or a DomainName. For the <code>PRIVATE</code> endpoint type, only <code>dualstack</code> is supported.</p>"
3915+
},
39123916
"vpcEndpointIds":{
39133917
"shape":"ListOfString",
39143918
"documentation":"<p>A list of VpcEndpointIds of an API (RestApi) against which to create Route53 ALIASes. It is only supported for <code>PRIVATE</code> endpoint type.</p>"
39153919
}
39163920
},
3917-
"documentation":"<p>The endpoint configuration to indicate the types of endpoints an API (RestApi) or its custom domain name (DomainName) has. </p>"
3921+
"documentation":"<p>The endpoint configuration to indicate the types of endpoints an API (RestApi) or its custom domain name (DomainName) has and the IP address types that can invoke it. </p>"
39183922
},
39193923
"EndpointType":{
39203924
"type":"string",
@@ -5420,6 +5424,13 @@
54205424
"AWS_PROXY"
54215425
]
54225426
},
5427+
"IpAddressType":{
5428+
"type":"string",
5429+
"enum":[
5430+
"ipv4",
5431+
"dualstack"
5432+
]
5433+
},
54235434
"LimitExceededException":{
54245435
"type":"structure",
54255436
"members":{
@@ -6341,7 +6352,7 @@
63416352
},
63426353
"endpointConfiguration":{
63436354
"shape":"EndpointConfiguration",
6344-
"documentation":"<p>The endpoint configuration of this RestApi showing the endpoint types of the API. </p>"
6355+
"documentation":"<p>The endpoint configuration of this RestApi showing the endpoint types and IP address types of the API. </p>"
63456356
},
63466357
"policy":{
63476358
"shape":"String",

sdk/src/Services/APIGateway/Generated/Model/CreateDomainNameRequest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ internal bool IsSetDomainName()
171171
/// <summary>
172172
/// Gets and sets the property EndpointConfiguration.
173173
/// <para>
174-
/// The endpoint configuration of this DomainName showing the endpoint types of the domain
175-
/// name.
174+
/// The endpoint configuration of this DomainName showing the endpoint types and IP address
175+
/// types of the domain name.
176176
/// </para>
177177
/// </summary>
178178
public EndpointConfiguration EndpointConfiguration

sdk/src/Services/APIGateway/Generated/Model/CreateDomainNameResponse.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ internal bool IsSetDomainNameStatusMessage()
236236
/// <summary>
237237
/// Gets and sets the property EndpointConfiguration.
238238
/// <para>
239-
/// The endpoint configuration of this DomainName showing the endpoint types of the domain
240-
/// name.
239+
/// The endpoint configuration of this DomainName showing the endpoint types and IP address
240+
/// types of the domain name.
241241
/// </para>
242242
/// </summary>
243243
public EndpointConfiguration EndpointConfiguration

sdk/src/Services/APIGateway/Generated/Model/CreateRestApiRequest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ internal bool IsSetDisableExecuteApiEndpoint()
147147
/// <summary>
148148
/// Gets and sets the property EndpointConfiguration.
149149
/// <para>
150-
/// The endpoint configuration of this RestApi showing the endpoint types of the API.
151-
///
150+
/// The endpoint configuration of this RestApi showing the endpoint types and IP address
151+
/// types of the API.
152152
/// </para>
153153
/// </summary>
154154
public EndpointConfiguration EndpointConfiguration

sdk/src/Services/APIGateway/Generated/Model/CreateRestApiResponse.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ internal bool IsSetDisableExecuteApiEndpoint()
149149
/// <summary>
150150
/// Gets and sets the property EndpointConfiguration.
151151
/// <para>
152-
/// The endpoint configuration of this RestApi showing the endpoint types of the API.
153-
///
152+
/// The endpoint configuration of this RestApi showing the endpoint types and IP address
153+
/// types of the API.
154154
/// </para>
155155
/// </summary>
156156
public EndpointConfiguration EndpointConfiguration

sdk/src/Services/APIGateway/Generated/Model/DomainName.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ internal bool IsSetDomainNameStatusMessage()
236236
/// <summary>
237237
/// Gets and sets the property EndpointConfiguration.
238238
/// <para>
239-
/// The endpoint configuration of this DomainName showing the endpoint types of the domain
240-
/// name.
239+
/// The endpoint configuration of this DomainName showing the endpoint types and IP address
240+
/// types of the domain name.
241241
/// </para>
242242
/// </summary>
243243
public EndpointConfiguration EndpointConfiguration

sdk/src/Services/APIGateway/Generated/Model/EndpointConfiguration.cs

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,35 @@ namespace Amazon.APIGateway.Model
3131
{
3232
/// <summary>
3333
/// The endpoint configuration to indicate the types of endpoints an API (RestApi) or
34-
/// its custom domain name (DomainName) has.
34+
/// its custom domain name (DomainName) has and the IP address types that can invoke it.
3535
/// </summary>
3636
public partial class EndpointConfiguration
3737
{
38+
private IpAddressType _ipAddressType;
3839
private List<string> _types = AWSConfigs.InitializeCollections ? new List<string>() : null;
3940
private List<string> _vpcEndpointIds = AWSConfigs.InitializeCollections ? new List<string>() : null;
4041

42+
/// <summary>
43+
/// Gets and sets the property IpAddressType.
44+
/// <para>
45+
/// The IP address types that can invoke an API (RestApi) or a DomainName. Use <c>ipv4</c>
46+
/// to allow only IPv4 addresses to invoke an API or DomainName, or use <c>dualstack</c>
47+
/// to allow both IPv4 and IPv6 addresses to invoke an API or a DomainName. For the <c>PRIVATE</c>
48+
/// endpoint type, only <c>dualstack</c> is supported.
49+
/// </para>
50+
/// </summary>
51+
public IpAddressType IpAddressType
52+
{
53+
get { return this._ipAddressType; }
54+
set { this._ipAddressType = value; }
55+
}
56+
57+
// Check to see if IpAddressType property is set
58+
internal bool IsSetIpAddressType()
59+
{
60+
return this._ipAddressType != null;
61+
}
62+
4163
/// <summary>
4264
/// Gets and sets the property Types.
4365
/// <para>

sdk/src/Services/APIGateway/Generated/Model/GetDomainNameResponse.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ internal bool IsSetDomainNameStatusMessage()
236236
/// <summary>
237237
/// Gets and sets the property EndpointConfiguration.
238238
/// <para>
239-
/// The endpoint configuration of this DomainName showing the endpoint types of the domain
240-
/// name.
239+
/// The endpoint configuration of this DomainName showing the endpoint types and IP address
240+
/// types of the domain name.
241241
/// </para>
242242
/// </summary>
243243
public EndpointConfiguration EndpointConfiguration

0 commit comments

Comments
 (0)