Skip to content

Commit 68aae5b

Browse files
author
awstools
committed
feat(client-ec2): This release adds AvailabilityZoneId support for DescribeFastSnapshotRestores, DisableFastSnapshotRestores, and EnableFastSnapshotRestores APIs.
1 parent 4e481ba commit 68aae5b

File tree

9 files changed

+315
-102
lines changed

9 files changed

+315
-102
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export interface DescribeFastSnapshotRestoresCommandOutput
5959
* // { // DescribeFastSnapshotRestoreSuccessItem
6060
* // SnapshotId: "STRING_VALUE",
6161
* // AvailabilityZone: "STRING_VALUE",
62+
* // AvailabilityZoneId: "STRING_VALUE",
6263
* // State: "enabling" || "optimizing" || "enabled" || "disabling" || "disabled",
6364
* // StateTransitionReason: "STRING_VALUE",
6465
* // OwnerId: "STRING_VALUE",

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ export interface DisableFastSnapshotRestoresCommandOutput extends DisableFastSna
3838
* const config = {}; // type is EC2ClientConfig
3939
* const client = new EC2Client(config);
4040
* const input = { // DisableFastSnapshotRestoresRequest
41-
* AvailabilityZones: [ // AvailabilityZoneStringList // required
41+
* AvailabilityZones: [ // AvailabilityZoneStringList
42+
* "STRING_VALUE",
43+
* ],
44+
* AvailabilityZoneIds: [ // AvailabilityZoneIdStringList
4245
* "STRING_VALUE",
4346
* ],
4447
* SourceSnapshotIds: [ // SnapshotIdStringList // required
@@ -53,6 +56,7 @@ export interface DisableFastSnapshotRestoresCommandOutput extends DisableFastSna
5356
* // { // DisableFastSnapshotRestoreSuccessItem
5457
* // SnapshotId: "STRING_VALUE",
5558
* // AvailabilityZone: "STRING_VALUE",
59+
* // AvailabilityZoneId: "STRING_VALUE",
5660
* // State: "enabling" || "optimizing" || "enabled" || "disabling" || "disabled",
5761
* // StateTransitionReason: "STRING_VALUE",
5862
* // OwnerId: "STRING_VALUE",
@@ -70,6 +74,7 @@ export interface DisableFastSnapshotRestoresCommandOutput extends DisableFastSna
7074
* // FastSnapshotRestoreStateErrors: [ // DisableFastSnapshotRestoreStateErrorSet
7175
* // { // DisableFastSnapshotRestoreStateErrorItem
7276
* // AvailabilityZone: "STRING_VALUE",
77+
* // AvailabilityZoneId: "STRING_VALUE",
7378
* // Error: { // DisableFastSnapshotRestoreStateError
7479
* // Code: "STRING_VALUE",
7580
* // Message: "STRING_VALUE",

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ export interface EnableFastSnapshotRestoresCommandOutput extends EnableFastSnaps
4141
* const config = {}; // type is EC2ClientConfig
4242
* const client = new EC2Client(config);
4343
* const input = { // EnableFastSnapshotRestoresRequest
44-
* AvailabilityZones: [ // AvailabilityZoneStringList // required
44+
* AvailabilityZones: [ // AvailabilityZoneStringList
45+
* "STRING_VALUE",
46+
* ],
47+
* AvailabilityZoneIds: [ // AvailabilityZoneIdStringList
4548
* "STRING_VALUE",
4649
* ],
4750
* SourceSnapshotIds: [ // SnapshotIdStringList // required
@@ -56,6 +59,7 @@ export interface EnableFastSnapshotRestoresCommandOutput extends EnableFastSnaps
5659
* // { // EnableFastSnapshotRestoreSuccessItem
5760
* // SnapshotId: "STRING_VALUE",
5861
* // AvailabilityZone: "STRING_VALUE",
62+
* // AvailabilityZoneId: "STRING_VALUE",
5963
* // State: "enabling" || "optimizing" || "enabled" || "disabling" || "disabled",
6064
* // StateTransitionReason: "STRING_VALUE",
6165
* // OwnerId: "STRING_VALUE",
@@ -73,6 +77,7 @@ export interface EnableFastSnapshotRestoresCommandOutput extends EnableFastSnaps
7377
* // FastSnapshotRestoreStateErrors: [ // EnableFastSnapshotRestoreStateErrorSet
7478
* // { // EnableFastSnapshotRestoreStateErrorItem
7579
* // AvailabilityZone: "STRING_VALUE",
80+
* // AvailabilityZoneId: "STRING_VALUE",
7681
* // Error: { // EnableFastSnapshotRestoreStateError
7782
* // Code: "STRING_VALUE",
7883
* // Message: "STRING_VALUE",

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

Lines changed: 90 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -10651,61 +10651,78 @@ export type IpamPrefixListResolverRuleConditionOperation =
1065110651
/**
1065210652
* <p>Describes a condition used when creating or modifying resolver rules.</p>
1065310653
* <p>CIDR selection rules define the business logic for selecting CIDRs from IPAM. If a CIDR matches any of the rules, it will be included. If a rule has multiple conditions, the CIDR has to match every condition of that rule. You can create a prefix list resolver without any CIDR selection rules, but it will generate empty versions (containing no CIDRs) until you add rules.</p>
10654-
* <p>There are three rule types:</p>
10654+
* <p>There are three rule types. Only 2 of the 3 rule types support conditions - <b>IPAM pool CIDR</b> and <b>Scope resource CIDR</b>. <b>Static CIDR</b> rules cannot have conditions.</p>
1065510655
* <ul>
1065610656
* <li>
1065710657
* <p>
10658-
* <b>Static CIDR</b>: A fixed list of CIDRs that do not change (like a manual list replicated across Regions).</p>
10658+
* <b>Static CIDR</b>: A fixed list of CIDRs that do not change (like a manual list replicated across Regions)</p>
1065910659
* </li>
1066010660
* <li>
1066110661
* <p>
10662-
* <b>IPAM pool CIDR</b>: CIDRs from specific IPAM pools (like all CIDRs from your IPAM production pool).</p>
10663-
* </li>
10664-
* <li>
10665-
* <p>
10666-
* <b>Scope resource CIDR</b>: CIDRs for Amazon Web Services resources like VPCs, subnets, and EIPs within a specific IPAM scope.</p>
10667-
* </li>
10668-
* </ul>
10669-
* <p>Condition availability by resource type:</p>
10670-
* <ul>
10671-
* <li>
10672-
* <p>Only 2 of the 3 rule types support conditions - <b>IPAM pool CIDR</b> and <b>Scope resource CIDR</b>. <b>Static CIDR</b> rules cannot have conditions.</p>
10662+
* <b>IPAM pool CIDR</b>: CIDRs from specific IPAM pools (like all CIDRs from your IPAM production pool)</p>
10663+
* <p>If you choose this option, choose the following:</p>
1067310664
* <ul>
1067410665
* <li>
10675-
* <p>Condition available for the <b>IPAM pool CIDR</b> resource type:</p>
10666+
* <p>
10667+
* <b>IPAM scope</b>: Select the IPAM scope to search for resources</p>
10668+
* </li>
10669+
* <li>
10670+
* <p>
10671+
* <b>Conditions:</b>
10672+
* </p>
1067610673
* <ul>
1067710674
* <li>
10678-
* <p>Property:</p>
10675+
* <p>
10676+
* <b>Property</b>
10677+
* </p>
1067910678
* <ul>
1068010679
* <li>
10681-
* <p>IPAM Pool ID</p>
10680+
* <p>
10681+
* <b>IPAM pool ID</b>: Select an IPAM pool that contains the resources</p>
1068210682
* </li>
1068310683
* <li>
10684-
* <p>CIDR (like 10.24.34.0/23)</p>
10684+
* <p>
10685+
* <b>CIDR</b> (like 10.24.34.0/23)</p>
1068510686
* </li>
1068610687
* </ul>
1068710688
* </li>
1068810689
* <li>
10689-
* <p>Operation: Equals/Not equals</p>
10690+
* <p>
10691+
* <b>Operation</b>: Equals/Not equals</p>
1069010692
* </li>
1069110693
* <li>
10692-
* <p>Value: The value on which to match the condition</p>
10694+
* <p>
10695+
* <b>Value</b>: The value on which to match the condition</p>
1069310696
* </li>
1069410697
* </ul>
1069510698
* </li>
10699+
* </ul>
10700+
* </li>
10701+
* <li>
10702+
* <p>
10703+
* <b>Scope resource CIDR</b>: CIDRs from Amazon Web Services resources like VPCs, subnets, EIPs within an IPAM scope</p>
10704+
* <p>If you choose this option, choose the following:</p>
10705+
* <ul>
1069610706
* <li>
10697-
* <p>Conditions for the <b>Scope resource CIDR</b> resource type:</p>
10707+
* <p>
10708+
* <b>IPAM scope</b>: Select the IPAM scope to search for resources</p>
10709+
* </li>
10710+
* <li>
10711+
* <p>
10712+
* <b>Resource type</b>: Select a resource, like a VPC or subnet.</p>
10713+
* </li>
10714+
* <li>
10715+
* <p>
10716+
* <b>Conditions</b>:</p>
1069810717
* <ul>
1069910718
* <li>
10700-
* <p>Property:</p>
10719+
* <p>
10720+
* <b>Property</b>:</p>
1070110721
* <ul>
1070210722
* <li>
1070310723
* <p>Resource ID: The unique ID of a resource (like vpc-1234567890abcdef0)</p>
1070410724
* </li>
1070510725
* <li>
10706-
* <p>Resource type (like VPC or Subnet)</p>
10707-
* </li>
10708-
* <li>
1070910726
* <p>Resource owner (like 111122223333)</p>
1071010727
* </li>
1071110728
* <li>
@@ -10720,16 +10737,15 @@ export type IpamPrefixListResolverRuleConditionOperation =
1072010737
* </ul>
1072110738
* </li>
1072210739
* <li>
10723-
* <p>Operation: Equals/Not equals</p>
10740+
* <p>
10741+
* <b>Operation</b>: Equals/Not equals</p>
1072410742
* </li>
1072510743
* <li>
10726-
* <p>Value: The value on which to match the condition</p>
10744+
* <p>
10745+
* <b>Value</b>: The value on which to match the condition</p>
1072710746
* </li>
1072810747
* </ul>
1072910748
* </li>
10730-
* <li>
10731-
* <p>When setting conditions for a rule, one or more conditions is required.</p>
10732-
* </li>
1073310749
* </ul>
1073410750
* </li>
1073510751
* </ul>
@@ -10816,61 +10832,78 @@ export type IpamPrefixListResolverRuleType =
1081610832
/**
1081710833
* <p>Describes a CIDR selection rule to include in a request. This is used when creating or modifying resolver rules.</p>
1081810834
* <p>CIDR selection rules define the business logic for selecting CIDRs from IPAM. If a CIDR matches any of the rules, it will be included. If a rule has multiple conditions, the CIDR has to match every condition of that rule. You can create a prefix list resolver without any CIDR selection rules, but it will generate empty versions (containing no CIDRs) until you add rules.</p>
10819-
* <p>There are three rule types:</p>
10835+
* <p>There are three rule types. Only 2 of the 3 rule types support conditions - <b>IPAM pool CIDR</b> and <b>Scope resource CIDR</b>. <b>Static CIDR</b> rules cannot have conditions.</p>
1082010836
* <ul>
1082110837
* <li>
1082210838
* <p>
10823-
* <b>Static CIDR</b>: A fixed list of CIDRs that do not change (like a manual list replicated across Regions).</p>
10839+
* <b>Static CIDR</b>: A fixed list of CIDRs that do not change (like a manual list replicated across Regions)</p>
1082410840
* </li>
1082510841
* <li>
1082610842
* <p>
10827-
* <b>IPAM pool CIDR</b>: CIDRs from specific IPAM pools (like all CIDRs from your IPAM production pool).</p>
10828-
* </li>
10829-
* <li>
10830-
* <p>
10831-
* <b>Scope resource CIDR</b>: CIDRs for Amazon Web Services resources like VPCs, subnets, and EIPs within a specific IPAM scope.</p>
10832-
* </li>
10833-
* </ul>
10834-
* <p>Condition availability by resource type:</p>
10835-
* <ul>
10836-
* <li>
10837-
* <p>Only 2 of the 3 rule types support conditions - <b>IPAM pool CIDR</b> and <b>Scope resource CIDR</b>. <b>Static CIDR</b> rules cannot have conditions.</p>
10843+
* <b>IPAM pool CIDR</b>: CIDRs from specific IPAM pools (like all CIDRs from your IPAM production pool)</p>
10844+
* <p>If you choose this option, choose the following:</p>
1083810845
* <ul>
1083910846
* <li>
10840-
* <p>Condition available for the <b>IPAM pool CIDR</b> resource type:</p>
10847+
* <p>
10848+
* <b>IPAM scope</b>: Select the IPAM scope to search for resources</p>
10849+
* </li>
10850+
* <li>
10851+
* <p>
10852+
* <b>Conditions:</b>
10853+
* </p>
1084110854
* <ul>
1084210855
* <li>
10843-
* <p>Property:</p>
10856+
* <p>
10857+
* <b>Property</b>
10858+
* </p>
1084410859
* <ul>
1084510860
* <li>
10846-
* <p>IPAM Pool ID</p>
10861+
* <p>
10862+
* <b>IPAM pool ID</b>: Select an IPAM pool that contains the resources</p>
1084710863
* </li>
1084810864
* <li>
10849-
* <p>CIDR (like 10.24.34.0/23)</p>
10865+
* <p>
10866+
* <b>CIDR</b> (like 10.24.34.0/23)</p>
1085010867
* </li>
1085110868
* </ul>
1085210869
* </li>
1085310870
* <li>
10854-
* <p>Operation: Equals/Not equals</p>
10871+
* <p>
10872+
* <b>Operation</b>: Equals/Not equals</p>
1085510873
* </li>
1085610874
* <li>
10857-
* <p>Value: The value on which to match the condition</p>
10875+
* <p>
10876+
* <b>Value</b>: The value on which to match the condition</p>
1085810877
* </li>
1085910878
* </ul>
1086010879
* </li>
10880+
* </ul>
10881+
* </li>
10882+
* <li>
10883+
* <p>
10884+
* <b>Scope resource CIDR</b>: CIDRs from Amazon Web Services resources like VPCs, subnets, EIPs within an IPAM scope</p>
10885+
* <p>If you choose this option, choose the following:</p>
10886+
* <ul>
1086110887
* <li>
10862-
* <p>Conditions for the <b>Scope resource CIDR</b> resource type:</p>
10888+
* <p>
10889+
* <b>IPAM scope</b>: Select the IPAM scope to search for resources</p>
10890+
* </li>
10891+
* <li>
10892+
* <p>
10893+
* <b>Resource type</b>: Select a resource, like a VPC or subnet.</p>
10894+
* </li>
10895+
* <li>
10896+
* <p>
10897+
* <b>Conditions</b>:</p>
1086310898
* <ul>
1086410899
* <li>
10865-
* <p>Property:</p>
10900+
* <p>
10901+
* <b>Property</b>:</p>
1086610902
* <ul>
1086710903
* <li>
1086810904
* <p>Resource ID: The unique ID of a resource (like vpc-1234567890abcdef0)</p>
1086910905
* </li>
1087010906
* <li>
10871-
* <p>Resource type (like VPC or Subnet)</p>
10872-
* </li>
10873-
* <li>
1087410907
* <p>Resource owner (like 111122223333)</p>
1087510908
* </li>
1087610909
* <li>
@@ -10885,16 +10918,15 @@ export type IpamPrefixListResolverRuleType =
1088510918
* </ul>
1088610919
* </li>
1088710920
* <li>
10888-
* <p>Operation: Equals/Not equals</p>
10921+
* <p>
10922+
* <b>Operation</b>: Equals/Not equals</p>
1088910923
* </li>
1089010924
* <li>
10891-
* <p>Value: The value on which to match the condition</p>
10925+
* <p>
10926+
* <b>Value</b>: The value on which to match the condition</p>
1089210927
* </li>
1089310928
* </ul>
1089410929
* </li>
10895-
* <li>
10896-
* <p>When setting conditions for a rule, one or more conditions is required.</p>
10897-
* </li>
1089810930
* </ul>
1089910931
* </li>
1090010932
* </ul>

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4528,7 +4528,11 @@ export interface DescribeFastSnapshotRestoresRequest {
45284528
* <ul>
45294529
* <li>
45304530
* <p>
4531-
* <code>availability-zone</code>: The Availability Zone of the snapshot.</p>
4531+
* <code>availability-zone</code>: The Availability Zone of the snapshot. For example, <code>us-east-2a</code>.</p>
4532+
* </li>
4533+
* <li>
4534+
* <p>
4535+
* <code>availability-zone-id</code>: The ID of the Availability Zone of the snapshot. For example, <code>use2-az1</code>.</p>
45324536
* </li>
45334537
* <li>
45344538
* <p>
@@ -4611,6 +4615,12 @@ export interface DescribeFastSnapshotRestoreSuccessItem {
46114615
*/
46124616
AvailabilityZone?: string | undefined;
46134617

4618+
/**
4619+
* <p>The ID of the Availability Zone.</p>
4620+
* @public
4621+
*/
4622+
AvailabilityZoneId?: string | undefined;
4623+
46144624
/**
46154625
* <p>The state of fast snapshot restores.</p>
46164626
* @public

0 commit comments

Comments
 (0)