Skip to content

Commit 2962b1b

Browse files
author
awstools
committed
feat(client-ec2): Adding support for the new fullSnapshotSizeInBytes field in the response of the EC2 EBS DescribeSnapshots API. This field represents the size of all the blocks that were written to the source volume at the time the snapshot was created.
1 parent 4a66449 commit 2962b1b

22 files changed

+192
-117
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ export interface AssignIpv6AddressesCommandInput extends AssignIpv6AddressesRequ
2828
export interface AssignIpv6AddressesCommandOutput extends AssignIpv6AddressesResult, __MetadataBearer {}
2929

3030
/**
31-
* <p>Assigns one or more IPv6 addresses to the specified network interface. You can
32-
* specify one or more specific IPv6 addresses, or you can specify the number of IPv6
33-
* addresses to be automatically assigned from within the subnet's IPv6 CIDR block range.
31+
* <p>Assigns the specified IPv6 addresses to the specified network interface. You can
32+
* specify specific IPv6 addresses, or you can specify the number of IPv6
33+
* addresses to be automatically assigned from the subnet's IPv6 CIDR block range.
3434
* You can assign as many IPv6 addresses to a network interface as you can assign private
35-
* IPv4 addresses, and the limit varies per instance type.</p>
35+
* IPv4 addresses, and the limit varies by instance type.</p>
3636
* <p>You must specify either the IPv6 addresses or the IPv6 address count in the request. </p>
3737
* <p>You can optionally use Prefix Delegation on the network interface. You must specify
3838
* either the IPV6 Prefix Delegation prefixes, or the IPv6 Prefix Delegation count. For

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ export interface AssignPrivateIpAddressesCommandInput extends AssignPrivateIpAdd
2828
export interface AssignPrivateIpAddressesCommandOutput extends AssignPrivateIpAddressesResult, __MetadataBearer {}
2929

3030
/**
31-
* <p>Assigns one or more secondary private IP addresses to the specified network interface.</p>
32-
* <p>You can specify one or more specific secondary IP addresses, or you can specify the number
33-
* of secondary IP addresses to be automatically assigned within the subnet's CIDR block range.
31+
* <p>Assigns the specified secondary private IP addresses to the specified network interface.</p>
32+
* <p>You can specify specific secondary IP addresses, or you can specify the number
33+
* of secondary IP addresses to be automatically assigned from the subnet's CIDR block range.
3434
* The number of secondary IP addresses that you can assign to an instance varies by instance type.
3535
* For more information about Elastic IP addresses, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html">Elastic IP Addresses</a> in the <i>Amazon EC2 User Guide</i>.</p>
3636
* <p>When you move a secondary private IP address to another network interface, any Elastic IP address

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,10 @@ export interface CopySnapshotCommandOutput extends CopySnapshotResult, __Metadat
4040
* however, you can specify a different KMS key. To copy an encrypted
4141
* snapshot that has been shared from another account, you must have permissions for the KMS key
4242
* used to encrypt the snapshot.</p>
43-
* <p>Snapshots copied to an Outpost are encrypted by default using the default
44-
* encryption key for the Region, or a different key that you specify in the request using
45-
* <b>KmsKeyId</b>. Outposts do not support unencrypted
46-
* snapshots. For more information, <a href="https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html#ami">
47-
* Amazon EBS local snapshots on Outposts</a> in the <i>Amazon EBS User Guide</i>.</p>
43+
* <p>Snapshots copied to an Outpost are encrypted by default using the default encryption key
44+
* for the Region, or a different key that you specify in the request using <b>KmsKeyId</b>. Outposts do not support unencrypted snapshots. For more information,
45+
* see <a href="https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html#ami">Amazon EBS
46+
* local snapshots on Outposts</a> in the <i>Amazon EBS User Guide</i>.</p>
4847
* <p>Snapshots created by copying another snapshot have an arbitrary volume ID that should not
4948
* be used for any purpose.</p>
5049
* <p>For more information, see <a href="https://docs.aws.amazon.com/ebs/latest/userguide/ebs-copy-snapshot.html">Copy an Amazon EBS snapshot</a> in the

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface CreateManagedPrefixListCommandInput extends CreateManagedPrefix
2828
export interface CreateManagedPrefixListCommandOutput extends CreateManagedPrefixListResult, __MetadataBearer {}
2929

3030
/**
31-
* <p>Creates a managed prefix list. You can specify one or more entries for the prefix list.
31+
* <p>Creates a managed prefix list. You can specify entries for the prefix list.
3232
* Each entry consists of a CIDR block and an optional description.</p>
3333
* @example
3434
* Use a bare-bones client and the command you need to make an API call.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ export interface CreateSnapshotCommandOutput extends Snapshot, __MetadataBearer
3838
* Region as the volume.</p>
3939
* </li>
4040
* <li>
41-
* <p>If the source volume is in a Local Zone, you can create the snapshot in the same
42-
* Local Zone or in parent Amazon Web Services Region.</p>
41+
* <p>If the source volume is in a Local Zone, you can create the snapshot in the same Local
42+
* Zone or in its parent Amazon Web Services Region.</p>
4343
* </li>
4444
* <li>
4545
* <p>If the source volume is on an Outpost, you can create the snapshot on the same
@@ -60,8 +60,7 @@ export interface CreateSnapshotCommandOutput extends Snapshot, __MetadataBearer
6060
* that you stop the instance before taking the snapshot.</p>
6161
* <p>Snapshots that are taken from encrypted volumes are automatically encrypted. Volumes that
6262
* are created from encrypted snapshots are also automatically encrypted. Your encrypted volumes
63-
* and any associated snapshots always remain protected. For more information,
64-
* <a href="https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption.html">Amazon EBS encryption</a>
63+
* and any associated snapshots always remain protected. For more information, see <a href="https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption.html">Amazon EBS encryption</a>
6564
* in the <i>Amazon EBS User Guide</i>.</p>
6665
* @example
6766
* Use a bare-bones client and the command you need to make an API call.
@@ -105,6 +104,7 @@ export interface CreateSnapshotCommandOutput extends Snapshot, __MetadataBearer
105104
* // TransferType: "time-based" || "standard",
106105
* // CompletionDurationMinutes: Number("int"),
107106
* // CompletionTime: new Date("TIMESTAMP"),
107+
* // FullSnapshotSizeInBytes: Number("long"),
108108
* // SnapshotId: "STRING_VALUE",
109109
* // VolumeId: "STRING_VALUE",
110110
* // State: "pending" || "completed" || "error" || "recoverable" || "recovering",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export interface CreateSnapshotsCommandOutput extends CreateSnapshotsResult, __M
4141
* </li>
4242
* <li>
4343
* <p>If the source instance is in a Local Zone, you can create the snapshots in the same
44-
* Local Zone or in parent Amazon Web Services Region.</p>
44+
* Local Zone or in its parent Amazon Web Services Region.</p>
4545
* </li>
4646
* <li>
4747
* <p>If the source instance is on an Outpost, you can create the snapshots on the same

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export interface DeleteSnapshotCommandOutput extends __MetadataBearer {}
3535
* regardless of which prior snapshots have been deleted, all active snapshots will have access
3636
* to all the information needed to restore the volume.</p>
3737
* <p>You cannot delete a snapshot of the root device of an EBS volume used by a registered AMI.
38-
* You must first de-register the AMI before you can delete the snapshot.</p>
38+
* You must first deregister the AMI before you can delete the snapshot.</p>
3939
* <p>For more information, see <a href="https://docs.aws.amazon.com/ebs/latest/userguide/ebs-deleting-snapshot.html">Delete an Amazon EBS snapshot</a> in the
4040
* <i>Amazon EBS User Guide</i>.</p>
4141
* @example

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,8 @@ export interface DescribeInstanceAttributeCommandOutput extends InstanceAttribut
2929

3030
/**
3131
* <p>Describes the specified attribute of the specified instance. You can specify only one
32-
* attribute at a time. Valid attribute values are: <code>instanceType</code> |
33-
* <code>kernel</code> | <code>ramdisk</code> | <code>userData</code> |
34-
* <code>disableApiTermination</code> | <code>instanceInitiatedShutdownBehavior</code>
35-
* | <code>rootDeviceName</code> | <code>blockDeviceMapping</code> |
36-
* <code>productCodes</code> | <code>sourceDestCheck</code> | <code>groupSet</code> |
37-
* <code>ebsOptimized</code> | <code>sriovNetSupport</code>
38-
* </p>
32+
* attribute at a time.
33+
* </p>
3934
* @example
4035
* Use a bare-bones client and the command you need to make an API call.
4136
* ```javascript

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface DescribeNetworkInterfacesCommandInput extends DescribeNetworkIn
2828
export interface DescribeNetworkInterfacesCommandOutput extends DescribeNetworkInterfacesResult, __MetadataBearer {}
2929

3030
/**
31-
* <p>Describes one or more of your network interfaces.</p>
31+
* <p>Describes the specified network interfaces or all your network interfaces.</p>
3232
* <p>If you have a large number of network interfaces, the operation fails unless
3333
* you use pagination or one of the following filters: <code>group-id</code>,
3434
* <code>mac-address</code>, <code>private-dns-name</code>, <code>private-ip-address</code>,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ export interface DescribeSnapshotsCommandOutput extends DescribeSnapshotsResult,
124124
* // TransferType: "time-based" || "standard",
125125
* // CompletionDurationMinutes: Number("int"),
126126
* // CompletionTime: new Date("TIMESTAMP"),
127+
* // FullSnapshotSizeInBytes: Number("long"),
127128
* // SnapshotId: "STRING_VALUE",
128129
* // VolumeId: "STRING_VALUE",
129130
* // State: "pending" || "completed" || "error" || "recoverable" || "recovering",

0 commit comments

Comments
 (0)