@aws-sdk/client-ec2 3.183.0 → 3.184.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/models/models_4.js +1 -0
- package/dist-cjs/protocols/Aws_ec2.js +11 -0
- package/dist-es/models/models_4.js +1 -0
- package/dist-es/protocols/Aws_ec2.js +11 -0
- package/dist-types/models/models_4.d.ts +6 -1
- package/dist-types/models/models_5.d.ts +4 -0
- package/dist-types/ts3.4/models/models_4.d.ts +2 -0
- package/dist-types/ts3.4/models/models_5.d.ts +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.184.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.183.0...v3.184.0) (2022-10-04)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-ec2:** Added EnableNetworkAddressUsageMetrics flag for ModifyVpcAttribute, DescribeVpcAttribute APIs. ([cbd2640](https://github.com/aws/aws-sdk-js-v3/commit/cbd2640efb3ace31a5abb75d603599324c413f57))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -136,6 +136,7 @@ var VpcAttributeName;
|
|
|
136
136
|
(function (VpcAttributeName) {
|
|
137
137
|
VpcAttributeName["enableDnsHostnames"] = "enableDnsHostnames";
|
|
138
138
|
VpcAttributeName["enableDnsSupport"] = "enableDnsSupport";
|
|
139
|
+
VpcAttributeName["enableNetworkAddressUsageMetrics"] = "enableNetworkAddressUsageMetrics";
|
|
139
140
|
})(VpcAttributeName = exports.VpcAttributeName || (exports.VpcAttributeName = {}));
|
|
140
141
|
var TransitGatewayPropagationState;
|
|
141
142
|
(function (TransitGatewayPropagationState) {
|
|
@@ -35770,6 +35770,13 @@ const serializeAws_ec2ModifyVpcAttributeRequest = (input, context) => {
|
|
|
35770
35770
|
if (input.VpcId != null) {
|
|
35771
35771
|
entries["VpcId"] = input.VpcId;
|
|
35772
35772
|
}
|
|
35773
|
+
if (input.EnableNetworkAddressUsageMetrics != null) {
|
|
35774
|
+
const memberEntries = serializeAws_ec2AttributeBooleanValue(input.EnableNetworkAddressUsageMetrics, context);
|
|
35775
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
35776
|
+
const loc = `EnableNetworkAddressUsageMetrics.${key}`;
|
|
35777
|
+
entries[loc] = value;
|
|
35778
|
+
});
|
|
35779
|
+
}
|
|
35773
35780
|
return entries;
|
|
35774
35781
|
};
|
|
35775
35782
|
const serializeAws_ec2ModifyVpcEndpointConnectionNotificationRequest = (input, context) => {
|
|
@@ -47134,6 +47141,7 @@ const deserializeAws_ec2DescribeVpcAttributeResult = (output, context) => {
|
|
|
47134
47141
|
VpcId: undefined,
|
|
47135
47142
|
EnableDnsHostnames: undefined,
|
|
47136
47143
|
EnableDnsSupport: undefined,
|
|
47144
|
+
EnableNetworkAddressUsageMetrics: undefined,
|
|
47137
47145
|
};
|
|
47138
47146
|
if (output["vpcId"] !== undefined) {
|
|
47139
47147
|
contents.VpcId = (0, smithy_client_1.expectString)(output["vpcId"]);
|
|
@@ -47144,6 +47152,9 @@ const deserializeAws_ec2DescribeVpcAttributeResult = (output, context) => {
|
|
|
47144
47152
|
if (output["enableDnsSupport"] !== undefined) {
|
|
47145
47153
|
contents.EnableDnsSupport = deserializeAws_ec2AttributeBooleanValue(output["enableDnsSupport"], context);
|
|
47146
47154
|
}
|
|
47155
|
+
if (output["enableNetworkAddressUsageMetrics"] !== undefined) {
|
|
47156
|
+
contents.EnableNetworkAddressUsageMetrics = deserializeAws_ec2AttributeBooleanValue(output["enableNetworkAddressUsageMetrics"], context);
|
|
47157
|
+
}
|
|
47147
47158
|
return contents;
|
|
47148
47159
|
};
|
|
47149
47160
|
const deserializeAws_ec2DescribeVpcClassicLinkDnsSupportResult = (output, context) => {
|
|
@@ -128,6 +128,7 @@ export var VpcAttributeName;
|
|
|
128
128
|
(function (VpcAttributeName) {
|
|
129
129
|
VpcAttributeName["enableDnsHostnames"] = "enableDnsHostnames";
|
|
130
130
|
VpcAttributeName["enableDnsSupport"] = "enableDnsSupport";
|
|
131
|
+
VpcAttributeName["enableNetworkAddressUsageMetrics"] = "enableNetworkAddressUsageMetrics";
|
|
131
132
|
})(VpcAttributeName || (VpcAttributeName = {}));
|
|
132
133
|
export var TransitGatewayPropagationState;
|
|
133
134
|
(function (TransitGatewayPropagationState) {
|
|
@@ -34662,6 +34662,13 @@ const serializeAws_ec2ModifyVpcAttributeRequest = (input, context) => {
|
|
|
34662
34662
|
if (input.VpcId != null) {
|
|
34663
34663
|
entries["VpcId"] = input.VpcId;
|
|
34664
34664
|
}
|
|
34665
|
+
if (input.EnableNetworkAddressUsageMetrics != null) {
|
|
34666
|
+
const memberEntries = serializeAws_ec2AttributeBooleanValue(input.EnableNetworkAddressUsageMetrics, context);
|
|
34667
|
+
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
34668
|
+
const loc = `EnableNetworkAddressUsageMetrics.${key}`;
|
|
34669
|
+
entries[loc] = value;
|
|
34670
|
+
});
|
|
34671
|
+
}
|
|
34665
34672
|
return entries;
|
|
34666
34673
|
};
|
|
34667
34674
|
const serializeAws_ec2ModifyVpcEndpointConnectionNotificationRequest = (input, context) => {
|
|
@@ -46026,6 +46033,7 @@ const deserializeAws_ec2DescribeVpcAttributeResult = (output, context) => {
|
|
|
46026
46033
|
VpcId: undefined,
|
|
46027
46034
|
EnableDnsHostnames: undefined,
|
|
46028
46035
|
EnableDnsSupport: undefined,
|
|
46036
|
+
EnableNetworkAddressUsageMetrics: undefined,
|
|
46029
46037
|
};
|
|
46030
46038
|
if (output["vpcId"] !== undefined) {
|
|
46031
46039
|
contents.VpcId = __expectString(output["vpcId"]);
|
|
@@ -46036,6 +46044,9 @@ const deserializeAws_ec2DescribeVpcAttributeResult = (output, context) => {
|
|
|
46036
46044
|
if (output["enableDnsSupport"] !== undefined) {
|
|
46037
46045
|
contents.EnableDnsSupport = deserializeAws_ec2AttributeBooleanValue(output["enableDnsSupport"], context);
|
|
46038
46046
|
}
|
|
46047
|
+
if (output["enableNetworkAddressUsageMetrics"] !== undefined) {
|
|
46048
|
+
contents.EnableNetworkAddressUsageMetrics = deserializeAws_ec2AttributeBooleanValue(output["enableNetworkAddressUsageMetrics"], context);
|
|
46049
|
+
}
|
|
46039
46050
|
return contents;
|
|
46040
46051
|
};
|
|
46041
46052
|
const deserializeAws_ec2DescribeVpcClassicLinkDnsSupportResult = (output, context) => {
|
|
@@ -6640,7 +6640,8 @@ export interface DescribeVolumeStatusResult {
|
|
|
6640
6640
|
}
|
|
6641
6641
|
export declare enum VpcAttributeName {
|
|
6642
6642
|
enableDnsHostnames = "enableDnsHostnames",
|
|
6643
|
-
enableDnsSupport = "enableDnsSupport"
|
|
6643
|
+
enableDnsSupport = "enableDnsSupport",
|
|
6644
|
+
enableNetworkAddressUsageMetrics = "enableNetworkAddressUsageMetrics"
|
|
6644
6645
|
}
|
|
6645
6646
|
export interface DescribeVpcAttributeRequest {
|
|
6646
6647
|
/**
|
|
@@ -6676,6 +6677,10 @@ export interface DescribeVpcAttributeResult {
|
|
|
6676
6677
|
* IP addresses; otherwise, it does not.</p>
|
|
6677
6678
|
*/
|
|
6678
6679
|
EnableDnsSupport?: AttributeBooleanValue;
|
|
6680
|
+
/**
|
|
6681
|
+
* <p>Indicates whether Network Address Usage metrics are enabled for your VPC.</p>
|
|
6682
|
+
*/
|
|
6683
|
+
EnableNetworkAddressUsageMetrics?: AttributeBooleanValue;
|
|
6679
6684
|
}
|
|
6680
6685
|
export interface DescribeVpcClassicLinkRequest {
|
|
6681
6686
|
/**
|
|
@@ -5453,6 +5453,10 @@ export interface ModifyVpcAttributeRequest {
|
|
|
5453
5453
|
* <p>The ID of the VPC.</p>
|
|
5454
5454
|
*/
|
|
5455
5455
|
VpcId: string | undefined;
|
|
5456
|
+
/**
|
|
5457
|
+
* <p>Indicates whether Network Address Usage metrics are enabled for your VPC.</p>
|
|
5458
|
+
*/
|
|
5459
|
+
EnableNetworkAddressUsageMetrics?: AttributeBooleanValue;
|
|
5456
5460
|
}
|
|
5457
5461
|
/**
|
|
5458
5462
|
* <p>Contains the parameters for ModifyVpcEndpoint.</p>
|
|
@@ -1424,6 +1424,7 @@ export interface DescribeVolumeStatusResult {
|
|
|
1424
1424
|
export declare enum VpcAttributeName {
|
|
1425
1425
|
enableDnsHostnames = "enableDnsHostnames",
|
|
1426
1426
|
enableDnsSupport = "enableDnsSupport",
|
|
1427
|
+
enableNetworkAddressUsageMetrics = "enableNetworkAddressUsageMetrics",
|
|
1427
1428
|
}
|
|
1428
1429
|
export interface DescribeVpcAttributeRequest {
|
|
1429
1430
|
Attribute: VpcAttributeName | string | undefined;
|
|
@@ -1434,6 +1435,7 @@ export interface DescribeVpcAttributeResult {
|
|
|
1434
1435
|
VpcId?: string;
|
|
1435
1436
|
EnableDnsHostnames?: AttributeBooleanValue;
|
|
1436
1437
|
EnableDnsSupport?: AttributeBooleanValue;
|
|
1438
|
+
EnableNetworkAddressUsageMetrics?: AttributeBooleanValue;
|
|
1437
1439
|
}
|
|
1438
1440
|
export interface DescribeVpcClassicLinkRequest {
|
|
1439
1441
|
Filters?: Filter[];
|
|
@@ -1628,6 +1628,7 @@ export interface ModifyVpcAttributeRequest {
|
|
|
1628
1628
|
EnableDnsHostnames?: AttributeBooleanValue;
|
|
1629
1629
|
EnableDnsSupport?: AttributeBooleanValue;
|
|
1630
1630
|
VpcId: string | undefined;
|
|
1631
|
+
EnableNetworkAddressUsageMetrics?: AttributeBooleanValue;
|
|
1631
1632
|
}
|
|
1632
1633
|
export interface ModifyVpcEndpointRequest {
|
|
1633
1634
|
DryRun?: boolean;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ec2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ec2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.184.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|