Skip to content

Commit 9b98cef

Browse files
author
awstools
committed
feat(client-ec2): Add support for DisconnectOnSessionTimeout flag in CreateClientVpnEndpoint and ModifyClientVpnEndpoint requests and DescribeClientVpnEndpoints responses
1 parent c23e188 commit 9b98cef

17 files changed

+106
-25
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ export interface CancelCapacityReservationCommandOutput extends CancelCapacityRe
4343
* duration has elapsed. You can't cancel a future-dated Capacity Reservation during the commitment duration.</p>
4444
* </li>
4545
* </ul>
46+
* <note>
47+
* <p>You can't modify or cancel a Capacity Block. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-capacity-blocks.html">Capacity Blocks for ML</a>.</p>
48+
* </note>
4649
* <p>If a future-dated Capacity Reservation enters the <code>delayed</code> state, the commitment
4750
* duration is waived, and you can cancel it as soon as it enters the <code>active</code> state.</p>
4851
* <p>Instances running in the reserved capacity continue running until you stop them. Stopped

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/CreateClientVpnEndpointCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ export interface CreateClientVpnEndpointCommandOutput extends CreateClientVpnEnd
9494
* Enabled: true || false,
9595
* BannerText: "STRING_VALUE",
9696
* },
97+
* DisconnectOnSessionTimeout: true || false,
9798
* };
9899
* const command = new CreateClientVpnEndpointCommand(input);
99100
* const response = await client.send(command);

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

Lines changed: 3 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.

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/DescribeCapacityBlockOfferingsCommand.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,20 @@ export interface DescribeCapacityBlockOfferingsCommandOutput
3535
/**
3636
* <p>Describes Capacity Block offerings available for purchase in the Amazon Web Services Region that you're currently using. With Capacity Blocks, you purchase a
3737
* specific instance type for a period of time.</p>
38+
* <p>To search for an available Capacity Block offering, you specify a reservation duration
39+
* and instance count. You must select one of the following options.</p>
40+
* <ul>
41+
* <li>
42+
* <p>For reservation durations<b> 1-day increments
43+
* up 14 days and 7-day increments up to 182 days total</b>
44+
* </p>
45+
* </li>
46+
* <li>
47+
* <p>For instance count<b> 1, 2, 4, 8, 16, 32, or
48+
* 64 instances</b>
49+
* </p>
50+
* </li>
51+
* </ul>
3852
* @example
3953
* Use a bare-bones client and the command you need to make an API call.
4054
* ```javascript

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ export interface DescribeClientVpnEndpointsCommandOutput extends DescribeClientV
124124
* // Enabled: true || false,
125125
* // BannerText: "STRING_VALUE",
126126
* // },
127+
* // DisconnectOnSessionTimeout: true || false,
127128
* // },
128129
* // ],
129130
* // NextToken: "STRING_VALUE",

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ export interface DescribeInstanceTopologyCommandOutput extends DescribeInstanceT
6969
* <li>
7070
* <p>
7171
* <code>trn1.2xlarge</code> | <code>trn1.32xlarge</code> |
72-
* <code>trn1n.32xlarge</code>
72+
* <code>trn1n.32xlarge</code> | <code>trn2.48xlarge</code> |
73+
* <code>trn2u.48xlarge</code>
7374
* </p>
7475
* </li>
7576
* </ul>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ export interface ModifyClientVpnEndpointCommandOutput extends ModifyClientVpnEnd
6767
* Enabled: true || false,
6868
* BannerText: "STRING_VALUE",
6969
* },
70+
* DisconnectOnSessionTimeout: true || false,
7071
* };
7172
* const command = new ModifyClientVpnEndpointCommand(input);
7273
* const response = await client.send(command);

0 commit comments

Comments
 (0)