Skip to content

Commit 75a68fd

Browse files
author
awstools
committed
feat(client-ec2): Adds support for allocating Dedicated Hosts on AWS Outposts. The AllocateHosts API now accepts an OutpostArn request parameter, and the DescribeHosts API now includes an OutpostArn response parameter.
1 parent 0d4912d commit 75a68fd

File tree

6 files changed

+36
-3
lines changed

6 files changed

+36
-3
lines changed

clients/client-ec2/src/EC2.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21291,7 +21291,8 @@ export class EC2 extends EC2Client {
2129121291
}
2129221292

2129321293
/**
21294-
* <p>Stops an Amazon EBS-backed instance.</p>
21294+
* <p>Stops an Amazon EBS-backed instance. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html">Stop and start
21295+
* your instance</a> in the <i>Amazon EC2 User Guide</i>.</p>
2129521296
* <p>You can use the Stop action to hibernate an instance if the instance is <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#enabling-hibernation">enabled for
2129621297
* hibernation</a> and it meets the <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites">hibernation
2129721298
* prerequisites</a>. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html">Hibernate your instance</a> in the

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ export interface StopInstancesCommandInput extends StopInstancesRequest {}
1919
export interface StopInstancesCommandOutput extends StopInstancesResult, __MetadataBearer {}
2020

2121
/**
22-
* <p>Stops an Amazon EBS-backed instance.</p>
22+
* <p>Stops an Amazon EBS-backed instance. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html">Stop and start
23+
* your instance</a> in the <i>Amazon EC2 User Guide</i>.</p>
2324
* <p>You can use the Stop action to hibernate an instance if the instance is <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#enabling-hibernation">enabled for
2425
* hibernation</a> and it meets the <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites">hibernation
2526
* prerequisites</a>. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html">Hibernate your instance</a> in the

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2407,6 +2407,11 @@ export interface AllocateHostsRequest {
24072407
* </p>
24082408
*/
24092409
HostRecovery?: HostRecovery | string;
2410+
2411+
/**
2412+
* <p>The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which to allocate the Dedicated Host.</p>
2413+
*/
2414+
OutpostArn?: string;
24102415
}
24112416

24122417
export namespace AllocateHostsRequest {

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3695,6 +3695,11 @@ export interface Host {
36953695
* <code>true</code>, the host is in a host resource group; otherwise, it is not.</p>
36963696
*/
36973697
MemberOfServiceLinkedResourceGroup?: boolean;
3698+
3699+
/**
3700+
* <p>The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which the Dedicated Host is allocated.</p>
3701+
*/
3702+
OutpostArn?: string;
36983703
}
36993704

37003705
export namespace Host {

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32859,6 +32859,9 @@ const serializeAws_ec2AllocateHostsRequest = (input: AllocateHostsRequest, conte
3285932859
if (input.HostRecovery !== undefined && input.HostRecovery !== null) {
3286032860
entries["HostRecovery"] = input.HostRecovery;
3286132861
}
32862+
if (input.OutpostArn !== undefined && input.OutpostArn !== null) {
32863+
entries["OutpostArn"] = input.OutpostArn;
32864+
}
3286232865
return entries;
3286332866
};
3286432867

@@ -65522,6 +65525,7 @@ const deserializeAws_ec2Host = (output: any, context: __SerdeContext): Host => {
6552265525
OwnerId: undefined,
6552365526
AvailabilityZoneId: undefined,
6552465527
MemberOfServiceLinkedResourceGroup: undefined,
65528+
OutpostArn: undefined,
6552565529
};
6552665530
if (output["autoPlacement"] !== undefined) {
6552765531
contents.AutoPlacement = __expectString(output["autoPlacement"]);
@@ -65583,6 +65587,9 @@ const deserializeAws_ec2Host = (output: any, context: __SerdeContext): Host => {
6558365587
if (output["memberOfServiceLinkedResourceGroup"] !== undefined) {
6558465588
contents.MemberOfServiceLinkedResourceGroup = __parseBoolean(output["memberOfServiceLinkedResourceGroup"]);
6558565589
}
65590+
if (output["outpostArn"] !== undefined) {
65591+
contents.OutpostArn = __expectString(output["outpostArn"]);
65592+
}
6558665593
return contents;
6558765594
};
6558865595

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

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1363,6 +1363,12 @@
13631363
"traits": {
13641364
"smithy.api#documentation": "<p>Indicates whether to enable or disable host recovery for the Dedicated Host. \n\t\t\tHost recovery is disabled by default. For more information, see \n\t\t\t<a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-recovery.html\">\n\t\t\tHost recovery</a> in the <i>Amazon EC2 User Guide</i>.</p>\n\t\t <p>Default: <code>off</code>\n </p>"
13651365
}
1366+
},
1367+
"OutpostArn": {
1368+
"target": "com.amazonaws.ec2#String",
1369+
"traits": {
1370+
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which to allocate the Dedicated Host.</p>"
1371+
}
13661372
}
13671373
}
13681374
},
@@ -39951,6 +39957,14 @@
3995139957
"smithy.api#documentation": "<p>Indicates whether the Dedicated Host is in a host resource group. If \n\t\t\t<b>memberOfServiceLinkedResourceGroup</b> is \n\t\t\t<code>true</code>, the host is in a host resource group; otherwise, it is not.</p>",
3995239958
"smithy.api#xmlName": "memberOfServiceLinkedResourceGroup"
3995339959
}
39960+
},
39961+
"OutpostArn": {
39962+
"target": "com.amazonaws.ec2#String",
39963+
"traits": {
39964+
"aws.protocols#ec2QueryName": "OutpostArn",
39965+
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which the Dedicated Host is allocated.</p>",
39966+
"smithy.api#xmlName": "outpostArn"
39967+
}
3995439968
}
3995539969
},
3995639970
"traits": {
@@ -72081,7 +72095,7 @@
7208172095
"target": "com.amazonaws.ec2#StopInstancesResult"
7208272096
},
7208372097
"traits": {
72084-
"smithy.api#documentation": "<p>Stops an Amazon EBS-backed instance.</p>\n <p>You can use the Stop action to hibernate an instance if the instance is <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#enabling-hibernation\">enabled for\n hibernation</a> and it meets the <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites\">hibernation\n prerequisites</a>. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html\">Hibernate your instance</a> in the\n <i>Amazon EC2 User Guide</i>.</p>\n <p>We don't charge usage for a stopped instance, or data transfer fees; however, your\n root partition Amazon EBS volume remains and continues to persist your data, and you are\n charged for Amazon EBS volume usage. Every time you start your instance, Amazon EC2\n charges a one-minute minimum for instance usage, and thereafter charges per second for\n instance usage.</p>\n <p>You can't stop or hibernate instance store-backed instances. You can't use the Stop\n action to hibernate Spot Instances, but you can specify that Amazon EC2 should hibernate\n Spot Instances when they are interrupted. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-interruptions.html#hibernate-spot-instances\">Hibernating interrupted Spot Instances</a> in the\n <i>Amazon EC2 User Guide</i>.</p>\n <p>When you stop or hibernate an instance, we shut it down. You can restart your instance\n at any time. Before stopping or hibernating an instance, make sure it is in a state from\n which it can be restarted. Stopping an instance does not preserve data stored in RAM,\n but hibernating an instance does preserve data stored in RAM. If an instance cannot\n hibernate successfully, a normal shutdown occurs.</p>\n <p>Stopping and hibernating an instance is different to rebooting or terminating it. For\n example, when you stop or hibernate an instance, the root device and any other devices\n attached to the instance persist. When you terminate an instance, the root device and\n any other devices attached during the instance launch are automatically deleted. For\n more information about the differences between rebooting, stopping, hibernating, and\n terminating instances, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html\">Instance lifecycle</a>\n in the <i>Amazon EC2 User Guide</i>.</p>\n <p>When you stop an instance, we attempt to shut it down forcibly after a short while. If\n your instance appears stuck in the stopping state after a period of time, there may be\n an issue with the underlying host computer. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesStopping.html\">Troubleshoot\n stopping your instance</a> in the <i>Amazon EC2 User Guide</i>.</p>"
72098+
"smithy.api#documentation": "<p>Stops an Amazon EBS-backed instance. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html\">Stop and start\n your instance</a> in the <i>Amazon EC2 User Guide</i>.</p>\n <p>You can use the Stop action to hibernate an instance if the instance is <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#enabling-hibernation\">enabled for\n hibernation</a> and it meets the <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites\">hibernation\n prerequisites</a>. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html\">Hibernate your instance</a> in the\n <i>Amazon EC2 User Guide</i>.</p>\n <p>We don't charge usage for a stopped instance, or data transfer fees; however, your\n root partition Amazon EBS volume remains and continues to persist your data, and you are\n charged for Amazon EBS volume usage. Every time you start your instance, Amazon EC2\n charges a one-minute minimum for instance usage, and thereafter charges per second for\n instance usage.</p>\n <p>You can't stop or hibernate instance store-backed instances. You can't use the Stop\n action to hibernate Spot Instances, but you can specify that Amazon EC2 should hibernate\n Spot Instances when they are interrupted. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-interruptions.html#hibernate-spot-instances\">Hibernating interrupted Spot Instances</a> in the\n <i>Amazon EC2 User Guide</i>.</p>\n <p>When you stop or hibernate an instance, we shut it down. You can restart your instance\n at any time. Before stopping or hibernating an instance, make sure it is in a state from\n which it can be restarted. Stopping an instance does not preserve data stored in RAM,\n but hibernating an instance does preserve data stored in RAM. If an instance cannot\n hibernate successfully, a normal shutdown occurs.</p>\n <p>Stopping and hibernating an instance is different to rebooting or terminating it. For\n example, when you stop or hibernate an instance, the root device and any other devices\n attached to the instance persist. When you terminate an instance, the root device and\n any other devices attached during the instance launch are automatically deleted. For\n more information about the differences between rebooting, stopping, hibernating, and\n terminating instances, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html\">Instance lifecycle</a>\n in the <i>Amazon EC2 User Guide</i>.</p>\n <p>When you stop an instance, we attempt to shut it down forcibly after a short while. If\n your instance appears stuck in the stopping state after a period of time, there may be\n an issue with the underlying host computer. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesStopping.html\">Troubleshoot\n stopping your instance</a> in the <i>Amazon EC2 User Guide</i>.</p>"
7208572099
}
7208672100
},
7208772101
"com.amazonaws.ec2#StopInstancesRequest": {

0 commit comments

Comments
 (0)