Skip to content

Commit d7cce1c

Browse files
author
awstools
committed
feat(client-ec2): Added metadata field to CapacityAllocation.
1 parent 8ddd544 commit d7cce1c

20 files changed

+422
-298
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ export interface CreateCapacityReservationBySplittingCommandOutput extends Creat
9494
* // { // CapacityAllocation
9595
* // AllocationType: "used" || "future",
9696
* // Count: Number("int"),
97+
* // AllocationMetadata: [ // CapacityAllocationMetadataList
98+
* // { // CapacityAllocationMetadataEntry
99+
* // Key: "STRING_VALUE",
100+
* // Value: "STRING_VALUE",
101+
* // },
102+
* // ],
97103
* // },
98104
* // ],
99105
* // ReservationType: "default" || "capacity-block",
@@ -149,6 +155,12 @@ export interface CreateCapacityReservationBySplittingCommandOutput extends Creat
149155
* // {
150156
* // AllocationType: "used" || "future",
151157
* // Count: Number("int"),
158+
* // AllocationMetadata: [
159+
* // {
160+
* // Key: "STRING_VALUE",
161+
* // Value: "STRING_VALUE",
162+
* // },
163+
* // ],
152164
* // },
153165
* // ],
154166
* // ReservationType: "default" || "capacity-block",

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,12 @@ export interface CreateCapacityReservationCommandOutput extends CreateCapacityRe
126126
* // { // CapacityAllocation
127127
* // AllocationType: "used" || "future",
128128
* // Count: Number("int"),
129+
* // AllocationMetadata: [ // CapacityAllocationMetadataList
130+
* // { // CapacityAllocationMetadataEntry
131+
* // Key: "STRING_VALUE",
132+
* // Value: "STRING_VALUE",
133+
* // },
134+
* // ],
129135
* // },
130136
* // ],
131137
* // ReservationType: "default" || "capacity-block",

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
55

66
import type { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
77
import { commonParams } from "../endpoint/EndpointParameters";
8-
import type { DeleteTrafficMirrorTargetRequest } from "../models/models_2";
9-
import type { DeleteTrafficMirrorTargetResult } from "../models/models_3";
8+
import type { DeleteTrafficMirrorTargetRequest, DeleteTrafficMirrorTargetResult } from "../models/models_3";
109
import { DeleteTrafficMirrorTarget$ } from "../schemas/schemas_0";
1110

1211
/**

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ export interface DescribeCapacityReservationsCommandOutput extends DescribeCapac
9191
* // { // CapacityAllocation
9292
* // AllocationType: "used" || "future",
9393
* // Count: Number("int"),
94+
* // AllocationMetadata: [ // CapacityAllocationMetadataList
95+
* // { // CapacityAllocationMetadataEntry
96+
* // Key: "STRING_VALUE",
97+
* // Value: "STRING_VALUE",
98+
* // },
99+
* // ],
94100
* // },
95101
* // ],
96102
* // ReservationType: "default" || "capacity-block",

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
55

66
import type { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
77
import { commonParams } from "../endpoint/EndpointParameters";
8-
import type { DescribeTransitGatewayAttachmentsRequest } from "../models/models_4";
9-
import type { DescribeTransitGatewayAttachmentsResult } from "../models/models_5";
8+
import type {
9+
DescribeTransitGatewayAttachmentsRequest,
10+
DescribeTransitGatewayAttachmentsResult,
11+
} from "../models/models_5";
1012
import { DescribeTransitGatewayAttachments$ } from "../schemas/schemas_0";
1113

1214
/**

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
55

66
import type { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
77
import { commonParams } from "../endpoint/EndpointParameters";
8-
import type { ModifyTransitGatewayRequest } from "../models/models_6";
9-
import type { ModifyTransitGatewayResult } from "../models/models_7";
8+
import type { ModifyTransitGatewayRequest, ModifyTransitGatewayResult } from "../models/models_7";
109
import { ModifyTransitGateway$ } from "../schemas/schemas_0";
1110

1211
/**

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ export interface MoveCapacityReservationInstancesCommandOutput extends MoveCapac
104104
* // { // CapacityAllocation
105105
* // AllocationType: "used" || "future",
106106
* // Count: Number("int"),
107+
* // AllocationMetadata: [ // CapacityAllocationMetadataList
108+
* // { // CapacityAllocationMetadataEntry
109+
* // Key: "STRING_VALUE",
110+
* // Value: "STRING_VALUE",
111+
* // },
112+
* // ],
107113
* // },
108114
* // ],
109115
* // ReservationType: "default" || "capacity-block",
@@ -159,6 +165,12 @@ export interface MoveCapacityReservationInstancesCommandOutput extends MoveCapac
159165
* // {
160166
* // AllocationType: "used" || "future",
161167
* // Count: Number("int"),
168+
* // AllocationMetadata: [
169+
* // {
170+
* // Key: "STRING_VALUE",
171+
* // Value: "STRING_VALUE",
172+
* // },
173+
* // ],
162174
* // },
163175
* // ],
164176
* // ReservationType: "default" || "capacity-block",

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ export interface PurchaseCapacityBlockCommandOutput extends PurchaseCapacityBloc
8989
* // { // CapacityAllocation
9090
* // AllocationType: "used" || "future",
9191
* // Count: Number("int"),
92+
* // AllocationMetadata: [ // CapacityAllocationMetadataList
93+
* // { // CapacityAllocationMetadataEntry
94+
* // Key: "STRING_VALUE",
95+
* // Value: "STRING_VALUE",
96+
* // },
97+
* // ],
9298
* // },
9399
* // ],
94100
* // ReservationType: "default" || "capacity-block",

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

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8388,6 +8388,24 @@ export interface CreateCapacityReservationRequest {
83888388
DeliveryPreference?: CapacityReservationDeliveryPreference | undefined;
83898389
}
83908390

8391+
/**
8392+
* <p>A key-value pair that provides additional metadata about a capacity allocation.</p>
8393+
* @public
8394+
*/
8395+
export interface CapacityAllocationMetadataEntry {
8396+
/**
8397+
* <p>The key of the metadata entry.</p>
8398+
* @public
8399+
*/
8400+
Key?: string | undefined;
8401+
8402+
/**
8403+
* <p>The value of the metadata entry.</p>
8404+
* @public
8405+
*/
8406+
Value?: string | undefined;
8407+
}
8408+
83918409
/**
83928410
* <p>Information about instance capacity usage for a Capacity Reservation.</p>
83938411
* @public
@@ -8407,6 +8425,13 @@ export interface CapacityAllocation {
84078425
* @public
84088426
*/
84098427
Count?: number | undefined;
8428+
8429+
/**
8430+
* <p>Additional metadata associated with the capacity allocation. Each entry contains a key-value pair providing context
8431+
* about the allocation.</p>
8432+
* @public
8433+
*/
8434+
AllocationMetadata?: CapacityAllocationMetadataEntry[] | undefined;
84108435
}
84118436

84128437
/**
@@ -10793,21 +10818,3 @@ export interface CreateDelegateMacVolumeOwnershipTaskResult {
1079310818
*/
1079410819
MacModificationTask?: MacModificationTask | undefined;
1079510820
}
10796-
10797-
/**
10798-
* <p>Describes a DHCP configuration option.</p>
10799-
* @public
10800-
*/
10801-
export interface NewDhcpConfiguration {
10802-
/**
10803-
* <p>The name of a DHCP option.</p>
10804-
* @public
10805-
*/
10806-
Key?: string | undefined;
10807-
10808-
/**
10809-
* <p>The values for the DHCP option.</p>
10810-
* @public
10811-
*/
10812-
Values?: string[] | undefined;
10813-
}

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

Lines changed: 18 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ import {
106106
SecondaryNetworkCidrBlockAssociationState,
107107
SecondaryNetworkState,
108108
SecondaryNetworkType,
109-
SecondarySubnetCidrBlockAssociationState,
110109
ShutdownBehavior,
111110
SnapshotLocationEnum,
112111
SpotAllocationStrategy,
@@ -136,13 +135,30 @@ import {
136135
AddPrefixListEntry,
137136
Ipv4PrefixSpecification,
138137
NatGatewayAddress,
139-
NewDhcpConfiguration,
140138
ReservedInstancesListing,
141139
Tag,
142140
TagSpecification,
143141
UnsuccessfulItem,
144142
} from "./models_0";
145143

144+
/**
145+
* <p>Describes a DHCP configuration option.</p>
146+
* @public
147+
*/
148+
export interface NewDhcpConfiguration {
149+
/**
150+
* <p>The name of a DHCP option.</p>
151+
* @public
152+
*/
153+
Key?: string | undefined;
154+
155+
/**
156+
* <p>The values for the DHCP option.</p>
157+
* @public
158+
*/
159+
Values?: string[] | undefined;
160+
}
161+
146162
/**
147163
* @public
148164
*/
@@ -14155,33 +14171,3 @@ export interface CreateSecondarySubnetRequest {
1415514171
*/
1415614172
TagSpecifications?: TagSpecification[] | undefined;
1415714173
}
14158-
14159-
/**
14160-
* <p>Describes an IPv4 CIDR block associated with a secondary subnet.</p>
14161-
* @public
14162-
*/
14163-
export interface SecondarySubnetIpv4CidrBlockAssociation {
14164-
/**
14165-
* <p>The association ID for the IPv4 CIDR block.</p>
14166-
* @public
14167-
*/
14168-
AssociationId?: string | undefined;
14169-
14170-
/**
14171-
* <p>The IPv4 CIDR block.</p>
14172-
* @public
14173-
*/
14174-
CidrBlock?: string | undefined;
14175-
14176-
/**
14177-
* <p>The state of the CIDR block association.</p>
14178-
* @public
14179-
*/
14180-
State?: SecondarySubnetCidrBlockAssociationState | undefined;
14181-
14182-
/**
14183-
* <p>The reason for the current state of the CIDR block association.</p>
14184-
* @public
14185-
*/
14186-
StateReason?: string | undefined;
14187-
}

0 commit comments

Comments
 (0)