Skip to content

Commit 6121a23

Browse files
author
awstools
committed
feat(client-ec2): Launching capability for customers to enable or disable automatic assignment of public IPv4 addresses to their network interface
1 parent 349915b commit 6121a23

File tree

6 files changed

+44
-1
lines changed

6 files changed

+44
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export interface DescribeNetworkInterfaceAttributeCommandOutput
4040
* // const { EC2Client, DescribeNetworkInterfaceAttributeCommand } = require("@aws-sdk/client-ec2"); // CommonJS import
4141
* const client = new EC2Client(config);
4242
* const input = { // DescribeNetworkInterfaceAttributeRequest
43-
* Attribute: "description" || "groupSet" || "sourceDestCheck" || "attachment",
43+
* Attribute: "description" || "groupSet" || "sourceDestCheck" || "attachment" || "associatePublicIpAddress",
4444
* DryRun: true || false,
4545
* NetworkInterfaceId: "STRING_VALUE", // required
4646
* };
@@ -76,6 +76,7 @@ export interface DescribeNetworkInterfaceAttributeCommandOutput
7676
* // SourceDestCheck: { // AttributeBooleanValue
7777
* // Value: true || false,
7878
* // },
79+
* // AssociatePublicIpAddress: true || false,
7980
* // };
8081
*
8182
* ```

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ export interface ModifyNetworkInterfaceAttributeCommandOutput extends __Metadata
6767
* UdpStreamTimeout: Number("int"),
6868
* UdpTimeout: Number("int"),
6969
* },
70+
* AssociatePublicIpAddress: true || false,
7071
* };
7172
* const command = new ModifyNetworkInterfaceAttributeCommand(input);
7273
* const response = await client.send(command);

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7539,6 +7539,7 @@ export interface DescribeNetworkInsightsPathsResult {
75397539
* @enum
75407540
*/
75417541
export const NetworkInterfaceAttribute = {
7542+
associatePublicIpAddress: "associatePublicIpAddress",
75427543
attachment: "attachment",
75437544
description: "description",
75447545
groupSet: "groupSet",
@@ -7610,6 +7611,13 @@ export interface DescribeNetworkInterfaceAttributeResult {
76107611
* @public
76117612
*/
76127613
SourceDestCheck?: AttributeBooleanValue;
7614+
7615+
/**
7616+
* <p>Indicates whether to assign a public IPv4 address to a network interface.
7617+
* This option can be enabled for any network interface but will only apply to the primary network interface (eth0).</p>
7618+
* @public
7619+
*/
7620+
AssociatePublicIpAddress?: boolean;
76137621
}
76147622

76157623
/**

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6443,6 +6443,13 @@ export interface ModifyNetworkInterfaceAttributeRequest {
64436443
* @public
64446444
*/
64456445
ConnectionTrackingSpecification?: ConnectionTrackingSpecificationRequest;
6446+
6447+
/**
6448+
* <p>Indicates whether to assign a public IPv4 address to a network interface.
6449+
* This option can be enabled for any network interface but will only apply to the primary network interface (eth0).</p>
6450+
* @public
6451+
*/
6452+
AssociatePublicIpAddress?: boolean;
64466453
}
64476454

64486455
/**

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47489,6 +47489,9 @@ const se_ModifyNetworkInterfaceAttributeRequest = (
4748947489
entries[loc] = value;
4749047490
});
4749147491
}
47492+
if (input[_APIAs] != null) {
47493+
entries[_APIAs] = input[_APIAs];
47494+
}
4749247495
return entries;
4749347496
};
4749447497

@@ -62722,6 +62725,9 @@ const de_DescribeNetworkInterfaceAttributeResult = (
6272262725
if (output[_sDC] != null) {
6272362726
contents[_SDC] = de_AttributeBooleanValue(output[_sDC], context);
6272462727
}
62728+
if (output[_aPIA] != null) {
62729+
contents[_APIAs] = __parseBoolean(output[_aPIA]);
62730+
}
6272562731
return contents;
6272662732
};
6272762733

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35162,6 +35162,14 @@
3516235162
"smithy.api#documentation": "<p>Indicates whether source/destination checking is enabled.</p>",
3516335163
"smithy.api#xmlName": "sourceDestCheck"
3516435164
}
35165+
},
35166+
"AssociatePublicIpAddress": {
35167+
"target": "com.amazonaws.ec2#Boolean",
35168+
"traits": {
35169+
"aws.protocols#ec2QueryName": "AssociatePublicIpAddress",
35170+
"smithy.api#documentation": "<p>Indicates whether to assign a public IPv4 address to a network interface. \n This option can be enabled for any network interface but will only apply to the primary network interface (eth0).</p>",
35171+
"smithy.api#xmlName": "associatePublicIpAddress"
35172+
}
3516535173
}
3516635174
},
3516735175
"traits": {
@@ -76259,6 +76267,12 @@
7625976267
"traits": {
7626076268
"smithy.api#documentation": "<p>A connection tracking specification.</p>"
7626176269
}
76270+
},
76271+
"AssociatePublicIpAddress": {
76272+
"target": "com.amazonaws.ec2#Boolean",
76273+
"traits": {
76274+
"smithy.api#documentation": "<p>Indicates whether to assign a public IPv4 address to a network interface. \n This option can be enabled for any network interface but will only apply to the primary network interface (eth0).</p>"
76275+
}
7626276276
}
7626376277
},
7626476278
"traits": {
@@ -81182,6 +81196,12 @@
8118281196
"traits": {
8118381197
"smithy.api#enumValue": "attachment"
8118481198
}
81199+
},
81200+
"associatePublicIpAddress": {
81201+
"target": "smithy.api#Unit",
81202+
"traits": {
81203+
"smithy.api#enumValue": "associatePublicIpAddress"
81204+
}
8118581205
}
8118681206
}
8118781207
},

0 commit comments

Comments
 (0)