Skip to content

Commit 1be7eb2

Browse files
author
awstools
committed
feat(client-ec2): Providing support to accept BgpAsnExtended attribute
1 parent 0fb710a commit 1be7eb2

File tree

5 files changed

+60
-10
lines changed

5 files changed

+60
-10
lines changed

clients/client-ec2/src/commands/CreateCustomerGatewayCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export interface CreateCustomerGatewayCommandOutput extends CreateCustomerGatewa
6666
* DeviceName: "STRING_VALUE",
6767
* IpAddress: "STRING_VALUE",
6868
* DryRun: true || false,
69+
* BgpAsnExtended: Number("long"),
6970
* };
7071
* const command = new CreateCustomerGatewayCommand(input);
7172
* const response = await client.send(command);
@@ -84,6 +85,7 @@ export interface CreateCustomerGatewayCommandOutput extends CreateCustomerGatewa
8485
* // Value: "STRING_VALUE",
8586
* // },
8687
* // ],
88+
* // BgpAsnExtended: "STRING_VALUE",
8789
* // },
8890
* // };
8991
*

clients/client-ec2/src/commands/DescribeCustomerGatewaysCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ export interface DescribeCustomerGatewaysCommandOutput extends DescribeCustomerG
6868
* // Value: "STRING_VALUE",
6969
* // },
7070
* // ],
71+
* // BgpAsnExtended: "STRING_VALUE",
7172
* // },
7273
* // ],
7374
* // };

clients/client-ec2/src/models/models_1.ts

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -811,8 +811,10 @@ export type GatewayType = (typeof GatewayType)[keyof typeof GatewayType];
811811
*/
812812
export interface CreateCustomerGatewayRequest {
813813
/**
814-
* <p>For devices that support BGP, the customer gateway's BGP ASN.</p>
814+
* <p>For customer gateway devices that support BGP, specify the device's ASN. You must specify either <code>BgpAsn</code> or <code>BgpAsnExtended</code> when creating the customer gateway. If the ASN is larger than <code>2,147,483,647</code>, you must use <code>BgpAsnExtended</code>.</p>
815815
* <p>Default: 65000</p>
816+
* <p>Valid values: <code>1</code> to <code>2,147,483,647</code>
817+
* </p>
816818
* @public
817819
*/
818820
BgpAsn?: number;
@@ -852,9 +854,11 @@ export interface CreateCustomerGatewayRequest {
852854
DeviceName?: string;
853855

854856
/**
855-
* <p>
856-
* IPv4 address for the customer gateway device's outside interface. The address must be static.
857-
* </p>
857+
* <p>IPv4 address for the customer gateway device's outside interface. The address must be
858+
* static. If <code>OutsideIpAddressType</code> in your VPN connection options is set to
859+
* <code>PrivateIpv4</code>, you can use an RFC6598 or RFC1918 private IPv4 address. If
860+
* <code>OutsideIpAddressType</code> is set to <code>PublicIpv4</code>, you can use a
861+
* public IPv4 address. </p>
858862
* @public
859863
*/
860864
IpAddress?: string;
@@ -867,6 +871,14 @@ export interface CreateCustomerGatewayRequest {
867871
* @public
868872
*/
869873
DryRun?: boolean;
874+
875+
/**
876+
* <p>For customer gateway devices that support BGP, specify the device's ASN. You must specify either <code>BgpAsn</code> or <code>BgpAsnExtended</code> when creating the customer gateway. If the ASN is larger than <code>2,147,483,647</code>, you must use <code>BgpAsnExtended</code>.</p>
877+
* <p>Valid values: <code>2,147,483,648</code> to <code>4,294,967,295</code>
878+
* </p>
879+
* @public
880+
*/
881+
BgpAsnExtended?: number;
870882
}
871883

872884
/**
@@ -875,8 +887,10 @@ export interface CreateCustomerGatewayRequest {
875887
*/
876888
export interface CustomerGateway {
877889
/**
878-
* <p>The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number
890+
* <p>The customer gateway device's Border Gateway Protocol (BGP) Autonomous System Number
879891
* (ASN).</p>
892+
* <p>Valid values: <code>1</code> to <code>2,147,483,647</code>
893+
* </p>
880894
* @public
881895
*/
882896
BgpAsn?: string;
@@ -888,7 +902,9 @@ export interface CustomerGateway {
888902
CustomerGatewayId?: string;
889903

890904
/**
891-
* <p>The IP address of the customer gateway device's outside interface.</p>
905+
* <p>
906+
* IPv4 address for the customer gateway device's outside interface. The address must be static. If <code>OutsideIpAddressType</code> in your VPN connection options is set to <code>PrivateIpv4</code>, you can use an RFC6598 or RFC1918 private IPv4 address. If <code>OutsideIpAddressType</code> is set to <code>PublicIpv4</code>, you can use a public IPv4 address.
907+
* </p>
892908
* @public
893909
*/
894910
IpAddress?: string;
@@ -924,6 +940,15 @@ export interface CustomerGateway {
924940
* @public
925941
*/
926942
Tags?: Tag[];
943+
944+
/**
945+
* <p>The customer gateway device's Border Gateway Protocol (BGP) Autonomous System Number
946+
* (ASN).</p>
947+
* <p>Valid values: <code>2,147,483,648</code> to <code>4,294,967,295</code>
948+
* </p>
949+
* @public
950+
*/
951+
BgpAsnExtended?: string;
927952
}
928953

929954
/**

clients/client-ec2/src/protocols/Aws_ec2.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29642,6 +29642,9 @@ const se_CreateCustomerGatewayRequest = (input: CreateCustomerGatewayRequest, co
2964229642
if (input[_DRr] != null) {
2964329643
entries[_DRr] = input[_DRr];
2964429644
}
29645+
if (input[_BAE] != null) {
29646+
entries[_BAE] = input[_BAE];
29647+
}
2964529648
return entries;
2964629649
};
2964729650

@@ -58190,6 +58193,9 @@ const de_CustomerGateway = (output: any, context: __SerdeContext): CustomerGatew
5819058193
} else if (output[_tS] != null && output[_tS][_i] != null) {
5819158194
contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context);
5819258195
}
58196+
if (output[_bAE] != null) {
58197+
contents[_BAE] = __expectString(output[_bAE]);
58198+
}
5819358199
return contents;
5819458200
};
5819558201

@@ -82013,6 +82019,7 @@ const _Att = "Attachment";
8201382019
const _Atta = "Attachments";
8201482020
const _B = "Bucket";
8201582021
const _BA = "BgpAsn";
82022+
const _BAE = "BgpAsnExtended";
8201682023
const _BBIG = "BaselineBandwidthInGbps";
8201782024
const _BBIM = "BaselineBandwidthInMbps";
8201882025
const _BC = "ByoipCidr";
@@ -84480,6 +84487,7 @@ const _at = "attachment";
8448084487
const _att = "attachments";
8448184488
const _b = "byoasn";
8448284489
const _bA = "bgpAsn";
84490+
const _bAE = "bgpAsnExtended";
8448384491
const _bBIG = "baselineBandwidthInGbps";
8448484492
const _bBIM = "baselineBandwidthInMbps";
8448584493
const _bC = "byoipCidr";

codegen/sdk-codegen/aws-models/ec2.json

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14659,7 +14659,7 @@
1465914659
"BgpAsn": {
1466014660
"target": "com.amazonaws.ec2#Integer",
1466114661
"traits": {
14662-
"smithy.api#documentation": "<p>For devices that support BGP, the customer gateway's BGP ASN.</p>\n <p>Default: 65000</p>"
14662+
"smithy.api#documentation": "<p>For customer gateway devices that support BGP, specify the device's ASN. You must specify either <code>BgpAsn</code> or <code>BgpAsnExtended</code> when creating the customer gateway. If the ASN is larger than <code>2,147,483,647</code>, you must use <code>BgpAsnExtended</code>.</p>\n <p>Default: 65000</p>\n <p>Valid values: <code>1</code> to <code>2,147,483,647</code>\n </p>"
1466314663
}
1466414664
},
1466514665
"PublicIp": {
@@ -14698,7 +14698,7 @@
1469814698
"IpAddress": {
1469914699
"target": "com.amazonaws.ec2#String",
1470014700
"traits": {
14701-
"smithy.api#documentation": "<p>\n IPv4 address for the customer gateway device's outside interface. The address must be static.\n </p>"
14701+
"smithy.api#documentation": "<p>IPv4 address for the customer gateway device's outside interface. The address must be\n static. If <code>OutsideIpAddressType</code> in your VPN connection options is set to\n <code>PrivateIpv4</code>, you can use an RFC6598 or RFC1918 private IPv4 address. If\n <code>OutsideIpAddressType</code> is set to <code>PublicIpv4</code>, you can use a\n public IPv4 address. </p>"
1470214702
}
1470314703
},
1470414704
"DryRun": {
@@ -14708,6 +14708,12 @@
1470814708
"smithy.api#documentation": "<p>Checks whether you have the required permissions for the action, without actually\n making the request, and provides an error response. If you have the required\n permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is\n <code>UnauthorizedOperation</code>.</p>",
1470914709
"smithy.api#xmlName": "dryRun"
1471014710
}
14711+
},
14712+
"BgpAsnExtended": {
14713+
"target": "com.amazonaws.ec2#Long",
14714+
"traits": {
14715+
"smithy.api#documentation": "<p>For customer gateway devices that support BGP, specify the device's ASN. You must specify either <code>BgpAsn</code> or <code>BgpAsnExtended</code> when creating the customer gateway. If the ASN is larger than <code>2,147,483,647</code>, you must use <code>BgpAsnExtended</code>.</p>\n <p>Valid values: <code>2,147,483,648</code> to <code>4,294,967,295</code>\n </p>"
14716+
}
1471114717
}
1471214718
},
1471314719
"traits": {
@@ -21791,7 +21797,7 @@
2179121797
"target": "com.amazonaws.ec2#String",
2179221798
"traits": {
2179321799
"aws.protocols#ec2QueryName": "BgpAsn",
21794-
"smithy.api#documentation": "<p>The customer gateway's Border Gateway Protocol (BGP) Autonomous System Number\n (ASN).</p>",
21800+
"smithy.api#documentation": "<p>The customer gateway device's Border Gateway Protocol (BGP) Autonomous System Number\n (ASN).</p>\n <p>Valid values: <code>1</code> to <code>2,147,483,647</code>\n </p>",
2179521801
"smithy.api#xmlName": "bgpAsn"
2179621802
}
2179721803
},
@@ -21807,7 +21813,7 @@
2180721813
"target": "com.amazonaws.ec2#String",
2180821814
"traits": {
2180921815
"aws.protocols#ec2QueryName": "IpAddress",
21810-
"smithy.api#documentation": "<p>The IP address of the customer gateway device's outside interface.</p>",
21816+
"smithy.api#documentation": "<p>\n IPv4 address for the customer gateway device's outside interface. The address must be static. If <code>OutsideIpAddressType</code> in your VPN connection options is set to <code>PrivateIpv4</code>, you can use an RFC6598 or RFC1918 private IPv4 address. If <code>OutsideIpAddressType</code> is set to <code>PublicIpv4</code>, you can use a public IPv4 address.\n </p>",
2181121817
"smithy.api#xmlName": "ipAddress"
2181221818
}
2181321819
},
@@ -21850,6 +21856,14 @@
2185021856
"smithy.api#documentation": "<p>Any tags assigned to the customer gateway.</p>",
2185121857
"smithy.api#xmlName": "tagSet"
2185221858
}
21859+
},
21860+
"BgpAsnExtended": {
21861+
"target": "com.amazonaws.ec2#String",
21862+
"traits": {
21863+
"aws.protocols#ec2QueryName": "BgpAsnExtended",
21864+
"smithy.api#documentation": "<p>The customer gateway device's Border Gateway Protocol (BGP) Autonomous System Number\n (ASN).</p>\n <p>Valid values: <code>2,147,483,648</code> to <code>4,294,967,295</code>\n </p>",
21865+
"smithy.api#xmlName": "bgpAsnExtended"
21866+
}
2185321867
}
2185421868
},
2185521869
"traits": {

0 commit comments

Comments
 (0)