Skip to content

Commit 027515e

Browse files
author
awstools
committed
feat(client-ec2): Adds support for time-based EBS-backed AMI copy operations. Time-based copy ensures that EBS-backed AMIs are copied within and across Regions in a specified timeframe.
1 parent 6702dbb commit 027515e

File tree

6 files changed

+30
-9
lines changed

6 files changed

+30
-9
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export interface CopyImageCommandOutput extends CopyImageResult, __MetadataBeare
6666
* ],
6767
* },
6868
* ],
69+
* SnapshotCopyCompletionDurationMinutes: Number("long"),
6970
* DryRun: true || false,
7071
* };
7172
* const command = new CopyImageCommand(input);

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8374,6 +8374,19 @@ export interface CopyImageRequest {
83748374
*/
83758375
TagSpecifications?: TagSpecification[] | undefined;
83768376

8377+
/**
8378+
* <p>Specify a completion duration, in 15 minute increments, to initiate a time-based
8379+
* AMI copy. The specified completion duration applies to each of the snapshots associated
8380+
* with the AMI. Each snapshot associated with the AMI will be completed within the
8381+
* specified completion duration, regardless of their size.</p>
8382+
* <p>If you do not specify a value, the AMI copy operation is completed on a best-effort
8383+
* basis.</p>
8384+
* <p>For more information, see <a href="https://docs.aws.amazon.com/ebs/latest/userguide/time-based-copies.html">
8385+
* Time-based copies</a>.</p>
8386+
* @public
8387+
*/
8388+
SnapshotCopyCompletionDurationMinutes?: number | undefined;
8389+
83778390
/**
83788391
* <p>Checks whether you have the required permissions for the action, without actually making the request,
83798392
* and provides an error response. If you have the required permissions, the error response is

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6422,7 +6422,7 @@ export interface CreateVerifiedAccessEndpointLoadBalancerOptions {
64226422
LoadBalancerArn?: string | undefined;
64236423

64246424
/**
6425-
* <p>The IDs of the subnets.</p>
6425+
* <p>The IDs of the subnets. You can specify only one subnet per Availability Zone.</p>
64266426
* @public
64276427
*/
64286428
SubnetIds?: string[] | undefined;
@@ -6507,7 +6507,7 @@ export interface CreateVerifiedAccessEndpointRdsOptions {
65076507
RdsEndpoint?: string | undefined;
65086508

65096509
/**
6510-
* <p>The IDs of the subnets.</p>
6510+
* <p>The IDs of the subnets. You can specify only one subnet per Availability Zone.</p>
65116511
* @public
65126512
*/
65136513
SubnetIds?: string[] | undefined;

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1701,10 +1701,7 @@ export interface SecurityGroupReference {
17011701
VpcPeeringConnectionId?: string | undefined;
17021702

17031703
/**
1704-
* <note>
1705-
* <p>This parameter is in preview and may not be available for your account.</p>
1706-
* </note>
1707-
* <p>The ID of the transit gateway (if applicable).</p>
1704+
* <p>The ID of the transit gateway (if applicable).</p>
17081705
* @public
17091706
*/
17101707
TransitGatewayId?: string | undefined;

clients/client-ec2/src/protocols/Aws_ec2.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31030,6 +31030,9 @@ const se_CopyImageRequest = (input: CopyImageRequest, context: __SerdeContext):
3103031030
entries[loc] = value;
3103131031
});
3103231032
}
31033+
if (input[_SCCDM] != null) {
31034+
entries[_SCCDM] = input[_SCCDM];
31035+
}
3103331036
if (input[_DRr] != null) {
3103431037
entries[_DRr] = input[_DRr];
3103531038
}
@@ -89504,6 +89507,7 @@ const _SC = "SubnetConfigurations";
8950489507
const _SCA = "ServerCertificateArn";
8950589508
const _SCAE = "SerialConsoleAccessEnabled";
8950689509
const _SCB = "SourceCidrBlock";
89510+
const _SCCDM = "SnapshotCopyCompletionDurationMinutes";
8950789511
const _SCR = "SourceCapacityReservation";
8950889512
const _SCRI = "SourceCapacityReservationId";
8950989513
const _SCRIu = "SubnetCidrReservationId";

codegen/sdk-codegen/aws-models/ec2.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14689,6 +14689,12 @@
1468914689
"smithy.api#xmlName": "TagSpecification"
1469014690
}
1469114691
},
14692+
"SnapshotCopyCompletionDurationMinutes": {
14693+
"target": "com.amazonaws.ec2#Long",
14694+
"traits": {
14695+
"smithy.api#documentation": "<p>Specify a completion duration, in 15 minute increments, to initiate a time-based \n AMI copy. The specified completion duration applies to each of the snapshots associated \n with the AMI. Each snapshot associated with the AMI will be completed within the \n specified completion duration, regardless of their size.</p>\n <p>If you do not specify a value, the AMI copy operation is completed on a best-effort \n basis.</p>\n <p>For more information, see <a href=\"https://docs.aws.amazon.com/ebs/latest/userguide/time-based-copies.html\">\n Time-based copies</a>.</p>"
14696+
}
14697+
},
1469214698
"DryRun": {
1469314699
"target": "com.amazonaws.ec2#Boolean",
1469414700
"traits": {
@@ -21749,7 +21755,7 @@
2174921755
"SubnetIds": {
2175021756
"target": "com.amazonaws.ec2#CreateVerifiedAccessEndpointSubnetIdList",
2175121757
"traits": {
21752-
"smithy.api#documentation": "<p>The IDs of the subnets.</p>",
21758+
"smithy.api#documentation": "<p>The IDs of the subnets. You can specify only one subnet per Availability Zone.</p>",
2175321759
"smithy.api#xmlName": "SubnetId"
2175421760
}
2175521761
},
@@ -21836,7 +21842,7 @@
2183621842
"SubnetIds": {
2183721843
"target": "com.amazonaws.ec2#CreateVerifiedAccessEndpointSubnetIdList",
2183821844
"traits": {
21839-
"smithy.api#documentation": "<p>The IDs of the subnets.</p>",
21845+
"smithy.api#documentation": "<p>The IDs of the subnets. You can specify only one subnet per Availability Zone.</p>",
2184021846
"smithy.api#xmlName": "SubnetId"
2184121847
}
2184221848
}
@@ -99725,7 +99731,7 @@
9972599731
"target": "com.amazonaws.ec2#String",
9972699732
"traits": {
9972799733
"aws.protocols#ec2QueryName": "TransitGatewayId",
99728-
"smithy.api#documentation": "<note>\n <p>This parameter is in preview and may not be available for your account.</p>\n </note>\n <p>The ID of the transit gateway (if applicable).</p>",
99734+
"smithy.api#documentation": "<p>The ID of the transit gateway (if applicable).</p>",
9972999735
"smithy.api#xmlName": "transitGatewayId"
9973099736
}
9973199737
}

0 commit comments

Comments
 (0)