Skip to content

Commit 442403c

Browse files
author
awstools
committed
feat(client-ec2): Allowed AMIs adds support for four new parameters - marketplaceProductCodes, deprecationTimeCondition, creationDateCondition and imageNames
1 parent eb92132 commit 442403c

18 files changed

+744
-198
lines changed

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

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,13 @@ export interface CopySnapshotCommandOutput extends CopySnapshotResult, __Metadat
4747
* <p>If the source snapshot is on an Outpost, you can't copy it.</p>
4848
* </li>
4949
* </ul>
50-
* <p>When copying snapshots to a Region, copies of encrypted EBS snapshots remain encrypted.
51-
* Copies of unencrypted snapshots remain unencrypted, unless you enable encryption for the
52-
* snapshot copy operation. By default, encrypted snapshot copies use the default KMS key;
53-
* however, you can specify a different KMS key. To copy an encrypted
54-
* snapshot that has been shared from another account, you must have permissions for the KMS key
55-
* used to encrypt the snapshot.</p>
56-
* <p>Snapshots copied to an Outpost are encrypted by default using the default encryption key
57-
* 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,
58-
* see <a href="https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html#ami">Amazon EBS
59-
* local snapshots on Outposts</a> in the <i>Amazon EBS User Guide</i>.</p>
50+
* <p>When copying snapshots to a Region, the encryption outcome for the snapshot copy depends on the
51+
* Amazon EBS encryption by default setting for the destination Region, the encryption status of the source
52+
* snapshot, and the encryption parameters you specify in the request. For more information, see <a href="https://docs.aws.amazon.com/ebs/latest/userguide/ebs-copy-snapshot.html#creating-encrypted-snapshots">
53+
* Encryption and snapshot copying</a>.</p>
54+
* <p>Snapshots copied to an Outpost must be encrypted. Unencrypted snapshots are not supported
55+
* on Outposts. For more information, <a href="https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html#considerations">
56+
* Amazon EBS local snapshots on Outposts</a>.</p>
6057
* <note>
6158
* <p>Snapshots copies have an arbitrary source volume ID. Do not use this volume ID for
6259
* any purpose.</p>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ export interface CreateFpgaImageCommandOutput extends CreateFpgaImageResult, __M
2929

3030
/**
3131
* <p>Creates an Amazon FPGA Image (AFI) from the specified design checkpoint (DCP).</p>
32-
* <p>The create operation is asynchronous. To verify that the AFI is ready for use,
33-
* check the output logs.</p>
32+
* <p>The create operation is asynchronous. To verify that the AFI was successfully
33+
* created and is ready for use, check the output logs.</p>
3434
* <p>An AFI contains the FPGA bitstream that is ready to download to an FPGA.
3535
* You can securely deploy an AFI on multiple FPGA-accelerated instances.
3636
* For more information, see the <a href="https://github.com/aws/aws-fpga/">Amazon Web Services FPGA Hardware Development Kit</a>.</p>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export interface DescribeImageUsageReportEntriesCommandOutput
3636
* <p>Describes the entries in image usage reports, showing how your images are used across
3737
* other Amazon Web Services accounts.</p>
3838
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/your-ec2-ami-usage.html">View your AMI usage</a> in the
39-
* <i>Amazon EC2 User Guide</i>.</p>
39+
* <i>Amazon EC2 User Guide</i>.</p>
4040
* @example
4141
* Use a bare-bones client and the command you need to make an API call.
4242
* ```javascript

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ export interface DisableImageBlockPublicAccessCommandOutput
3434
* specified Amazon Web Services Region. This removes the <i>block public access</i> restriction
3535
* from your account. With the restriction removed, you can publicly share your AMIs in the
3636
* specified Amazon Web Services Region.</p>
37-
* <p>The API can take up to 10 minutes to configure this setting. During this time, if you run
38-
* <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetImageBlockPublicAccessState.html">GetImageBlockPublicAccessState</a>, the response will be
39-
* <code>block-new-sharing</code>. When the API has completed the configuration, the response
40-
* will be <code>unblocked</code>.</p>
4137
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-public-access-to-amis.html">Block
4238
* public access to your AMIs</a> in the <i>Amazon EC2 User Guide</i>.</p>
4339
* @example

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,18 @@ export interface GetAllowedImagesSettingsCommandOutput extends GetAllowedImagesS
5858
* // ImageProviders: [ // ImageProviderList
5959
* // "STRING_VALUE",
6060
* // ],
61+
* // MarketplaceProductCodes: [ // MarketplaceProductCodeList
62+
* // "STRING_VALUE",
63+
* // ],
64+
* // ImageNames: [ // ImageNameList
65+
* // "STRING_VALUE",
66+
* // ],
67+
* // DeprecationTimeCondition: { // DeprecationTimeCondition
68+
* // MaximumDaysSinceDeprecated: Number("int"),
69+
* // },
70+
* // CreationDateCondition: { // CreationDateCondition
71+
* // MaximumDaysSinceCreated: Number("int"),
72+
* // },
6173
* // },
6274
* // ],
6375
* // ManagedBy: "account" || "declarative-policy",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export interface GetInstanceMetadataDefaultsCommandOutput extends GetInstanceMet
3131
* <p>Gets the default instance metadata service (IMDS) settings that are set at the account
3232
* level in the specified Amazon Web Services
 Region.</p>
3333
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-options.html#instance-metadata-options-order-of-precedence">Order of precedence for instance metadata options</a> in the
34-
* <i>Amazon EC2 User Guide</i>.</p>
34+
* <i>Amazon EC2 User Guide</i>.</p>
3535
* @example
3636
* Use a bare-bones client and the command you need to make an API call.
3737
* ```javascript

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import {
10-
GetNetworkInsightsAccessScopeAnalysisFindingsRequest,
11-
GetNetworkInsightsAccessScopeAnalysisFindingsResult,
12-
} from "../models/models_6";
9+
import { GetNetworkInsightsAccessScopeAnalysisFindingsRequest } from "../models/models_6";
10+
import { GetNetworkInsightsAccessScopeAnalysisFindingsResult } from "../models/models_7";
1311
import {
1412
de_GetNetworkInsightsAccessScopeAnalysisFindingsCommand,
1513
se_GetNetworkInsightsAccessScopeAnalysisFindingsCommand,

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { GetNetworkInsightsAccessScopeContentRequest } from "../models/models_6";
10-
import { GetNetworkInsightsAccessScopeContentResult } from "../models/models_7";
9+
import {
10+
GetNetworkInsightsAccessScopeContentRequest,
11+
GetNetworkInsightsAccessScopeContentResult,
12+
} from "../models/models_7";
1113
import {
1214
de_GetNetworkInsightsAccessScopeContentCommand,
1315
se_GetNetworkInsightsAccessScopeContentCommand,

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ export interface ModifyInstanceMetadataDefaultsCommandOutput
3737
* the specified Amazon Web Services
 Region.</p>
3838
* <note>
3939
* <p>To remove a parameter's account-level default setting, specify
40-
* <code>no-preference</code>. If an account-level setting is cleared with
41-
* <code>no-preference</code>, then the instance launch considers the other
40+
* <code>no-preference</code>. If an account-level setting is cleared with
41+
* <code>no-preference</code>, then the instance launch considers the other
4242
* instance metadata settings. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-options.html#instance-metadata-options-order-of-precedence">Order of precedence for instance metadata options</a> in the
43-
* <i>Amazon EC2 User Guide</i>.</p>
43+
* <i>Amazon EC2 User Guide</i>.</p>
4444
* </note>
4545
* @example
4646
* Use a bare-bones client and the command you need to make an API call.

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,18 @@ export interface ReplaceImageCriteriaInAllowedImagesSettingsCommandOutput
6060
* ImageProviders: [ // ImageProviderRequestList
6161
* "STRING_VALUE",
6262
* ],
63+
* MarketplaceProductCodes: [ // MarketplaceProductCodeRequestList
64+
* "STRING_VALUE",
65+
* ],
66+
* ImageNames: [ // ImageNameRequestList
67+
* "STRING_VALUE",
68+
* ],
69+
* DeprecationTimeCondition: { // DeprecationTimeConditionRequest
70+
* MaximumDaysSinceDeprecated: Number("int"),
71+
* },
72+
* CreationDateCondition: { // CreationDateConditionRequest
73+
* MaximumDaysSinceCreated: Number("int"),
74+
* },
6375
* },
6476
* ],
6577
* DryRun: true || false,

0 commit comments

Comments
 (0)