Skip to content

Commit bc91aa6

Browse files
author
awstools
committed
feat(client-ec2): The ModifyInstanceAttribute API now supports modification of EnclaveOptions for the instance as a typed parameter.
1 parent 4513296 commit bc91aa6

11 files changed

Lines changed: 502 additions & 73 deletions

File tree

clients/client-ec2/README.md

Lines changed: 52 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,58 @@
77
AWS SDK for JavaScript EC2 Client for Node.js, Browser and React Native.
88

99
<fullname>Amazon Elastic Compute Cloud</fullname>
10-
<p>You can access the features of Amazon Elastic Compute Cloud (Amazon EC2) programmatically. For more information,
11-
see the <a href="https://docs.aws.amazon.com/ec2/latest/devguide">Amazon EC2 Developer Guide</a>.</p>
10+
<p>This is the <i>Amazon EC2 API Reference</i>. It provides descriptions, API request
11+
parameters, and the XML response for each of the Amazon EC2 Query API actions. Note that the
12+
Amazon EC2 API includes actions for Amazon EC2 plus additional services, such as Amazon EBS and Amazon VPC.</p>
13+
<p class="title">
14+
<b>Learn more</b>
15+
</p>
16+
<ul>
17+
<li>
18+
<p>To learn about using the Query API, see
19+
<a href="https://docs.aws.amazon.com/ec2/latest/devguide/ec2-low-level-api.html">Using the API for Amazon EC2</a>.</p>
20+
</li>
21+
<li>
22+
<p>To learn about the permissions required to call an Amazon EC2 API action, see
23+
<a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonec2.html">Actions, resources, and condition keys for Amazon EC2</a>.</p>
24+
</li>
25+
<li>
26+
<p>To get the list of API actions by service and resource, see
27+
<a href="https://docs.aws.amazon.com/ec2/latest/devguide/OperationList-query.html">Actions by service</a>.</p>
28+
</li>
29+
<li>
30+
<p>To get the alphabetical list of API actions, see
31+
.</p>
32+
</li>
33+
<li>
34+
<p>To get descriptions of the API error codes, see
35+
<a href="https://docs.aws.amazon.com/ec2/latest/devguide/errors-overview.html">Error codes for the Amazon EC2 API</a>.</p>
36+
</li>
37+
</ul>
38+
<p>Alternatively, use one of the following methods to access the Amazon EC2 API, instead of using
39+
the Query API directly:</p>
40+
<ul>
41+
<li>
42+
<p>
43+
<a href="https://docs.aws.amazon.com/cli/latest/reference/ec2/">Amazon Web Services CLI Command Reference - ec2 commands</a>
44+
</p>
45+
</li>
46+
<li>
47+
<p>
48+
<a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/AWS_EC2.html">CloudFormation - Amazon EC2 resource type reference</a>
49+
</p>
50+
</li>
51+
<li>
52+
<p>
53+
<a href="https://docs.aws.amazon.com/powershell/v5/reference/items/EC2_cmdlets.html">Amazon Web Services Tools for PowerShell Cmdlet Reference - Amazon EC2 cmdlets</a>
54+
</p>
55+
</li>
56+
<li>
57+
<p>
58+
<a href="https://builder.aws.com/build/tools">Amazon Web Services SDKs</a>
59+
</p>
60+
</li>
61+
</ul>
1262

1363
## Installing
1464

clients/client-ec2/src/EC2.ts

Lines changed: 52 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20620,8 +20620,58 @@ export interface EC2 {
2062020620

2062120621
/**
2062220622
* <fullname>Amazon Elastic Compute Cloud</fullname>
20623-
* <p>You can access the features of Amazon Elastic Compute Cloud (Amazon EC2) programmatically. For more information,
20624-
* see the <a href="https://docs.aws.amazon.com/ec2/latest/devguide">Amazon EC2 Developer Guide</a>.</p>
20623+
* <p>This is the <i>Amazon EC2 API Reference</i>. It provides descriptions, API request
20624+
* parameters, and the XML response for each of the Amazon EC2 Query API actions. Note that the
20625+
* Amazon EC2 API includes actions for Amazon EC2 plus additional services, such as Amazon EBS and Amazon VPC.</p>
20626+
* <p class="title">
20627+
* <b>Learn more</b>
20628+
* </p>
20629+
* <ul>
20630+
* <li>
20631+
* <p>To learn about using the Query API, see
20632+
* <a href="https://docs.aws.amazon.com/ec2/latest/devguide/ec2-low-level-api.html">Using the API for Amazon EC2</a>.</p>
20633+
* </li>
20634+
* <li>
20635+
* <p>To learn about the permissions required to call an Amazon EC2 API action, see
20636+
* <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonec2.html">Actions, resources, and condition keys for Amazon EC2</a>.</p>
20637+
* </li>
20638+
* <li>
20639+
* <p>To get the list of API actions by service and resource, see
20640+
* <a href="https://docs.aws.amazon.com/ec2/latest/devguide/OperationList-query.html">Actions by service</a>.</p>
20641+
* </li>
20642+
* <li>
20643+
* <p>To get the alphabetical list of API actions, see
20644+
* .</p>
20645+
* </li>
20646+
* <li>
20647+
* <p>To get descriptions of the API error codes, see
20648+
* <a href="https://docs.aws.amazon.com/ec2/latest/devguide/errors-overview.html">Error codes for the Amazon EC2 API</a>.</p>
20649+
* </li>
20650+
* </ul>
20651+
* <p>Alternatively, use one of the following methods to access the Amazon EC2 API, instead of using
20652+
* the Query API directly:</p>
20653+
* <ul>
20654+
* <li>
20655+
* <p>
20656+
* <a href="https://docs.aws.amazon.com/cli/latest/reference/ec2/">Amazon Web Services CLI Command Reference - ec2 commands</a>
20657+
* </p>
20658+
* </li>
20659+
* <li>
20660+
* <p>
20661+
* <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/AWS_EC2.html">CloudFormation - Amazon EC2 resource type reference</a>
20662+
* </p>
20663+
* </li>
20664+
* <li>
20665+
* <p>
20666+
* <a href="https://docs.aws.amazon.com/powershell/v5/reference/items/EC2_cmdlets.html">Amazon Web Services Tools for PowerShell Cmdlet Reference - Amazon EC2 cmdlets</a>
20667+
* </p>
20668+
* </li>
20669+
* <li>
20670+
* <p>
20671+
* <a href="https://builder.aws.com/build/tools">Amazon Web Services SDKs</a>
20672+
* </p>
20673+
* </li>
20674+
* </ul>
2062520675
* @public
2062620676
*/
2062720677
export class EC2 extends EC2Client implements EC2 {}

clients/client-ec2/src/EC2Client.ts

Lines changed: 52 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4527,8 +4527,58 @@ export interface EC2ClientResolvedConfig extends EC2ClientResolvedConfigType {}
45274527

45284528
/**
45294529
* <fullname>Amazon Elastic Compute Cloud</fullname>
4530-
* <p>You can access the features of Amazon Elastic Compute Cloud (Amazon EC2) programmatically. For more information,
4531-
* see the <a href="https://docs.aws.amazon.com/ec2/latest/devguide">Amazon EC2 Developer Guide</a>.</p>
4530+
* <p>This is the <i>Amazon EC2 API Reference</i>. It provides descriptions, API request
4531+
* parameters, and the XML response for each of the Amazon EC2 Query API actions. Note that the
4532+
* Amazon EC2 API includes actions for Amazon EC2 plus additional services, such as Amazon EBS and Amazon VPC.</p>
4533+
* <p class="title">
4534+
* <b>Learn more</b>
4535+
* </p>
4536+
* <ul>
4537+
* <li>
4538+
* <p>To learn about using the Query API, see
4539+
* <a href="https://docs.aws.amazon.com/ec2/latest/devguide/ec2-low-level-api.html">Using the API for Amazon EC2</a>.</p>
4540+
* </li>
4541+
* <li>
4542+
* <p>To learn about the permissions required to call an Amazon EC2 API action, see
4543+
* <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonec2.html">Actions, resources, and condition keys for Amazon EC2</a>.</p>
4544+
* </li>
4545+
* <li>
4546+
* <p>To get the list of API actions by service and resource, see
4547+
* <a href="https://docs.aws.amazon.com/ec2/latest/devguide/OperationList-query.html">Actions by service</a>.</p>
4548+
* </li>
4549+
* <li>
4550+
* <p>To get the alphabetical list of API actions, see
4551+
* .</p>
4552+
* </li>
4553+
* <li>
4554+
* <p>To get descriptions of the API error codes, see
4555+
* <a href="https://docs.aws.amazon.com/ec2/latest/devguide/errors-overview.html">Error codes for the Amazon EC2 API</a>.</p>
4556+
* </li>
4557+
* </ul>
4558+
* <p>Alternatively, use one of the following methods to access the Amazon EC2 API, instead of using
4559+
* the Query API directly:</p>
4560+
* <ul>
4561+
* <li>
4562+
* <p>
4563+
* <a href="https://docs.aws.amazon.com/cli/latest/reference/ec2/">Amazon Web Services CLI Command Reference - ec2 commands</a>
4564+
* </p>
4565+
* </li>
4566+
* <li>
4567+
* <p>
4568+
* <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/AWS_EC2.html">CloudFormation - Amazon EC2 resource type reference</a>
4569+
* </p>
4570+
* </li>
4571+
* <li>
4572+
* <p>
4573+
* <a href="https://docs.aws.amazon.com/powershell/v5/reference/items/EC2_cmdlets.html">Amazon Web Services Tools for PowerShell Cmdlet Reference - Amazon EC2 cmdlets</a>
4574+
* </p>
4575+
* </li>
4576+
* <li>
4577+
* <p>
4578+
* <a href="https://builder.aws.com/build/tools">Amazon Web Services SDKs</a>
4579+
* </p>
4580+
* </li>
4581+
* </ul>
45324582
* @public
45334583
*/
45344584
export class EC2Client extends __Client<

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ export interface ModifyInstanceAttributeCommandOutput extends __MetadataBearer {
5050
* SourceDestCheck: { // AttributeBooleanValue
5151
* Value: true || false,
5252
* },
53+
* EnclaveOptions: { // EnclaveOptionsRequest
54+
* Enabled: true || false,
55+
* },
5356
* DisableApiStop: {
5457
* Value: true || false,
5558
* },

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
55

66
import type { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
77
import { commonParams } from "../endpoint/EndpointParameters";
8-
import type { ModifyPublicIpDnsNameOptionsRequest } from "../models/models_6";
9-
import type { ModifyPublicIpDnsNameOptionsResult } from "../models/models_7";
8+
import type { ModifyPublicIpDnsNameOptionsRequest, ModifyPublicIpDnsNameOptionsResult } from "../models/models_7";
109
import { ModifyPublicIpDnsNameOptions$ } from "../schemas/schemas_0";
1110

1211
/**

clients/client-ec2/src/index.ts

Lines changed: 52 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,58 @@
22
/* eslint-disable */
33
/**
44
* <fullname>Amazon Elastic Compute Cloud</fullname>
5-
* <p>You can access the features of Amazon Elastic Compute Cloud (Amazon EC2) programmatically. For more information,
6-
* see the <a href="https://docs.aws.amazon.com/ec2/latest/devguide">Amazon EC2 Developer Guide</a>.</p>
5+
* <p>This is the <i>Amazon EC2 API Reference</i>. It provides descriptions, API request
6+
* parameters, and the XML response for each of the Amazon EC2 Query API actions. Note that the
7+
* Amazon EC2 API includes actions for Amazon EC2 plus additional services, such as Amazon EBS and Amazon VPC.</p>
8+
* <p class="title">
9+
* <b>Learn more</b>
10+
* </p>
11+
* <ul>
12+
* <li>
13+
* <p>To learn about using the Query API, see
14+
* <a href="https://docs.aws.amazon.com/ec2/latest/devguide/ec2-low-level-api.html">Using the API for Amazon EC2</a>.</p>
15+
* </li>
16+
* <li>
17+
* <p>To learn about the permissions required to call an Amazon EC2 API action, see
18+
* <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonec2.html">Actions, resources, and condition keys for Amazon EC2</a>.</p>
19+
* </li>
20+
* <li>
21+
* <p>To get the list of API actions by service and resource, see
22+
* <a href="https://docs.aws.amazon.com/ec2/latest/devguide/OperationList-query.html">Actions by service</a>.</p>
23+
* </li>
24+
* <li>
25+
* <p>To get the alphabetical list of API actions, see
26+
* .</p>
27+
* </li>
28+
* <li>
29+
* <p>To get descriptions of the API error codes, see
30+
* <a href="https://docs.aws.amazon.com/ec2/latest/devguide/errors-overview.html">Error codes for the Amazon EC2 API</a>.</p>
31+
* </li>
32+
* </ul>
33+
* <p>Alternatively, use one of the following methods to access the Amazon EC2 API, instead of using
34+
* the Query API directly:</p>
35+
* <ul>
36+
* <li>
37+
* <p>
38+
* <a href="https://docs.aws.amazon.com/cli/latest/reference/ec2/">Amazon Web Services CLI Command Reference - ec2 commands</a>
39+
* </p>
40+
* </li>
41+
* <li>
42+
* <p>
43+
* <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/AWS_EC2.html">CloudFormation - Amazon EC2 resource type reference</a>
44+
* </p>
45+
* </li>
46+
* <li>
47+
* <p>
48+
* <a href="https://docs.aws.amazon.com/powershell/v5/reference/items/EC2_cmdlets.html">Amazon Web Services Tools for PowerShell Cmdlet Reference - Amazon EC2 cmdlets</a>
49+
* </p>
50+
* </li>
51+
* <li>
52+
* <p>
53+
* <a href="https://builder.aws.com/build/tools">Amazon Web Services SDKs</a>
54+
* </p>
55+
* </li>
56+
* </ul>
757
*
858
* @packageDocumentation
959
*/

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

Lines changed: 24 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ import type {
6363
PaymentOption,
6464
PermissionGroup,
6565
PlatformValues,
66-
PublicIpDnsOption,
6766
RouteServerRouteInstallationStatus,
6867
RouteServerRouteStatus,
6968
SelfServicePortal,
@@ -7845,6 +7844,22 @@ export interface InstanceBlockDeviceMappingSpecification {
78457844
NoDevice?: string | undefined;
78467845
}
78477846

7847+
/**
7848+
* <p>Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves. For
7849+
* more information, see <a href="https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html"> What is Amazon Web Services Nitro
7850+
* Enclaves?</a> in the <i>Amazon Web Services Nitro Enclaves User
7851+
* Guide</i>.</p>
7852+
* @public
7853+
*/
7854+
export interface EnclaveOptionsRequest {
7855+
/**
7856+
* <p>To enable the instance for Amazon Web Services Nitro Enclaves, set this parameter to
7857+
* <code>true</code>.</p>
7858+
* @public
7859+
*/
7860+
Enabled?: boolean | undefined;
7861+
}
7862+
78487863
/**
78497864
* @public
78507865
*/
@@ -7867,6 +7882,14 @@ export interface ModifyInstanceAttributeRequest {
78677882
*/
78687883
SourceDestCheck?: AttributeBooleanValue | undefined;
78697884

7885+
/**
7886+
* <p>Enables or disables the instance for Amazon Web Services Nitro Enclaves. For more
7887+
* information, see the <a href="https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html">Amazon Web Services Nitro Enclaves User
7888+
* Guide</a>.</p>
7889+
* @public
7890+
*/
7891+
EnclaveOptions?: EnclaveOptionsRequest | undefined;
7892+
78707893
/**
78717894
* <p>Indicates whether an instance is enabled for stop protection. For more information,
78727895
* see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-stop-protection.html">Enable stop
@@ -9908,42 +9931,3 @@ export interface ModifyPrivateDnsNameOptionsResult {
99089931
*/
99099932
Return?: boolean | undefined;
99109933
}
9911-
9912-
/**
9913-
* @public
9914-
*/
9915-
export interface ModifyPublicIpDnsNameOptionsRequest {
9916-
/**
9917-
* <p>A network interface ID.</p>
9918-
* @public
9919-
*/
9920-
NetworkInterfaceId: string | undefined;
9921-
9922-
/**
9923-
* <p>The public hostname type. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-naming.html">EC2 instance hostnames, DNS names, and domains</a> in the <i>Amazon EC2 User Guide</i>.</p>
9924-
* <ul>
9925-
* <li>
9926-
* <p>
9927-
* <code>public-dual-stack-dns-name</code>: A dual-stack public hostname for a network interface. Requests from within the VPC resolve to both the private IPv4 address and the IPv6 Global Unicast Address of the network interface. Requests from the internet resolve to both the public IPv4 and the IPv6 GUA address of the network interface.</p>
9928-
* </li>
9929-
* <li>
9930-
* <p>
9931-
* <code>public-ipv4-dns-name</code>: An IPv4-enabled public hostname for a network interface. Requests from within the VPC resolve to the private primary IPv4 address of the network interface. Requests from the internet resolve to the public IPv4 address of the network interface.</p>
9932-
* </li>
9933-
* <li>
9934-
* <p>
9935-
* <code>public-ipv6-dns-name</code>: An IPv6-enabled public hostname for a network interface. Requests from within the VPC or from the internet resolve to the IPv6 GUA of the network interface. </p>
9936-
* </li>
9937-
* </ul>
9938-
* @public
9939-
*/
9940-
HostnameType: PublicIpDnsOption | undefined;
9941-
9942-
/**
9943-
* <p>Checks whether you have the required permissions for the operation, without actually making the
9944-
* request, and provides an error response. If you have the required permissions, the error response is
9945-
* <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
9946-
* @public
9947-
*/
9948-
DryRun?: boolean | undefined;
9949-
}

0 commit comments

Comments
 (0)