@aws-sdk/client-ec2 3.891.0 → 3.892.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist-cjs/index.js +123 -5
  2. package/dist-es/models/models_7.js +0 -4
  3. package/dist-es/models/models_8.js +4 -0
  4. package/dist-es/protocols/Aws_ec2.js +124 -0
  5. package/dist-types/commands/CopySnapshotCommand.d.ts +7 -10
  6. package/dist-types/commands/CreateFpgaImageCommand.d.ts +2 -2
  7. package/dist-types/commands/DescribeImageUsageReportEntriesCommand.d.ts +1 -1
  8. package/dist-types/commands/DisableImageBlockPublicAccessCommand.d.ts +0 -4
  9. package/dist-types/commands/GetAllowedImagesSettingsCommand.d.ts +12 -0
  10. package/dist-types/commands/GetInstanceMetadataDefaultsCommand.d.ts +1 -1
  11. package/dist-types/commands/GetNetworkInsightsAccessScopeAnalysisFindingsCommand.d.ts +2 -1
  12. package/dist-types/commands/GetNetworkInsightsAccessScopeContentCommand.d.ts +1 -2
  13. package/dist-types/commands/ModifyInstanceMetadataDefaultsCommand.d.ts +3 -3
  14. package/dist-types/commands/ReplaceImageCriteriaInAllowedImagesSettingsCommand.d.ts +12 -0
  15. package/dist-types/models/models_1.d.ts +4 -4
  16. package/dist-types/models/models_2.d.ts +4 -0
  17. package/dist-types/models/models_4.d.ts +11 -11
  18. package/dist-types/models/models_6.d.ts +100 -65
  19. package/dist-types/models/models_7.d.ts +45 -31
  20. package/dist-types/models/models_8.d.ts +149 -22
  21. package/dist-types/ts3.4/commands/GetNetworkInsightsAccessScopeAnalysisFindingsCommand.d.ts +2 -4
  22. package/dist-types/ts3.4/commands/GetNetworkInsightsAccessScopeContentCommand.d.ts +4 -2
  23. package/dist-types/ts3.4/models/models_6.d.ts +11 -12
  24. package/dist-types/ts3.4/models/models_7.d.ts +12 -10
  25. package/dist-types/ts3.4/models/models_8.d.ts +20 -2
  26. package/package.json +2 -2
@@ -5,7 +5,35 @@ import { CapacityBlock, CapacityBlockExtension, Filter, InstanceTagNotificationA
5
5
  import { ArchitectureValues, BootModeValues, ClientVpnConnectionStatus, HttpTokensState, ImdsSupportValues, InstanceAttributeName, InstanceAutoRecoveryState, InstanceMetadataEndpointState, InstanceMetadataProtocolState, InstanceMetadataTagsState, InstanceState, TpmSupportValues } from "./models_4";
6
6
  import { InstanceNetworkInterfaceSpecification, NetworkInsightsAccessScopeAnalysis, NetworkInsightsAnalysis, PublicIpv4PoolRange, RunInstancesMonitoringEnabled, ScheduledInstance, SnapshotAttributeName, SpotFleetRequestConfigData, SpotInstanceRequest, SpotPlacement } from "./models_5";
7
7
  import { Purchase } from "./models_6";
8
- import { CapacityReservationSpecification, InstanceMonitoring, IpamCidrAuthorizationContext, Status, VerificationMethod } from "./models_7";
8
+ import { CapacityReservationSpecification, InstanceMonitoring, Status } from "./models_7";
9
+ /**
10
+ * <p>A signed document that proves that you are authorized to bring the specified IP address range to Amazon using BYOIP.</p>
11
+ * @public
12
+ */
13
+ export interface IpamCidrAuthorizationContext {
14
+ /**
15
+ * <p>The plain-text authorization message for the prefix and account.</p>
16
+ * @public
17
+ */
18
+ Message?: string | undefined;
19
+ /**
20
+ * <p>The signed authorization message for the prefix and account.</p>
21
+ * @public
22
+ */
23
+ Signature?: string | undefined;
24
+ }
25
+ /**
26
+ * @public
27
+ * @enum
28
+ */
29
+ export declare const VerificationMethod: {
30
+ readonly dns_token: "dns-token";
31
+ readonly remarks_x509: "remarks-x509";
32
+ };
33
+ /**
34
+ * @public
35
+ */
36
+ export type VerificationMethod = (typeof VerificationMethod)[keyof typeof VerificationMethod];
9
37
  /**
10
38
  * @public
11
39
  */
@@ -1003,35 +1031,134 @@ export interface ReplaceIamInstanceProfileAssociationResult {
1003
1031
  IamInstanceProfileAssociation?: IamInstanceProfileAssociation | undefined;
1004
1032
  }
1005
1033
  /**
1006
- * <p>The list of criteria that are evaluated to determine whch AMIs are discoverable and usable
1007
- * in the account in the specified Amazon Web Services Region. Currently, the only criteria that can be
1008
- * specified are AMI providers. </p>
1009
- * <p>Up to 10 <code>imageCriteria</code> objects can be specified, and up to a total of 200
1010
- * values for all <code>imageProviders</code>. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-allowed-amis.html#allowed-amis-json-configuration">JSON
1011
- * configuration for the Allowed AMIs criteria</a> in the
1012
- * <i>Amazon EC2 User Guide</i>.</p>
1034
+ * <p>The maximum age for allowed images.</p>
1035
+ * @public
1036
+ */
1037
+ export interface CreationDateConditionRequest {
1038
+ /**
1039
+ * <p>The maximum number of days that have elapsed since the image was created. For example, a
1040
+ * value of <code>300</code> allows images that were created within the last 300 days.</p>
1041
+ * @public
1042
+ */
1043
+ MaximumDaysSinceCreated?: number | undefined;
1044
+ }
1045
+ /**
1046
+ * <p>The maximum period since deprecation for allowed images.</p>
1047
+ * @public
1048
+ */
1049
+ export interface DeprecationTimeConditionRequest {
1050
+ /**
1051
+ * <p>The maximum number of days that have elapsed since the image was deprecated. Set to
1052
+ * <code>0</code> to exclude all deprecated images.</p>
1053
+ * @public
1054
+ */
1055
+ MaximumDaysSinceDeprecated?: number | undefined;
1056
+ }
1057
+ /**
1058
+ * <p>The criteria that are evaluated to determine which AMIs are discoverable and usable in
1059
+ * your account for the specified Amazon Web Services Region.</p>
1060
+ * <p>The <code>ImageCriteria</code> can include up to:</p>
1061
+ * <ul>
1062
+ * <li>
1063
+ * <p>10 <code>ImageCriterion</code>
1064
+ * </p>
1065
+ * </li>
1066
+ * </ul>
1067
+ * <p>Each <code>ImageCriterion</code> can include up to:</p>
1068
+ * <ul>
1069
+ * <li>
1070
+ * <p>200 values for <code>ImageProviders</code>
1071
+ * </p>
1072
+ * </li>
1073
+ * <li>
1074
+ * <p>50 values for <code>ImageNames</code>
1075
+ * </p>
1076
+ * </li>
1077
+ * <li>
1078
+ * <p>50 values for <code>MarketplaceProductCodes</code>
1079
+ * </p>
1080
+ * </li>
1081
+ * </ul>
1082
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-allowed-amis.html#how-allowed-amis-works">How Allowed AMIs
1083
+ * works</a> in the <i>Amazon EC2 User Guide</i>.</p>
1013
1084
  * @public
1014
1085
  */
1015
1086
  export interface ImageCriterionRequest {
1016
1087
  /**
1017
- * <p>A list of image providers whose AMIs are discoverable and useable in the account. Up to a
1018
- * total of 200 values can be specified.</p>
1088
+ * <p>The image providers whose images are allowed.</p>
1019
1089
  * <p>Possible values:</p>
1020
- * <p>
1021
- * <code>amazon</code>: Allow AMIs created by Amazon Web Services.</p>
1022
- * <p>
1023
- * <code>aws-marketplace</code>: Allow AMIs created by verified providers in the Amazon Web Services
1024
- * Marketplace.</p>
1025
- * <p>
1026
- * <code>aws-backup-vault</code>: Allow AMIs created by Amazon Web Services Backup. </p>
1027
- * <p>12-digit account ID: Allow AMIs created by this account. One or more account IDs can be
1028
- * specified.</p>
1029
- * <p>
1030
- * <code>none</code>: Allow AMIs created by your own account only. When <code>none</code> is
1031
- * specified, no other values can be specified.</p>
1090
+ * <ul>
1091
+ * <li>
1092
+ * <p>
1093
+ * <code>amazon</code>: Allow AMIs created by Amazon or verified providers.</p>
1094
+ * </li>
1095
+ * <li>
1096
+ * <p>
1097
+ * <code>aws-marketplace</code>: Allow AMIs created by verified providers in the Amazon Web Services
1098
+ * Marketplace.</p>
1099
+ * </li>
1100
+ * <li>
1101
+ * <p>
1102
+ * <code>aws-backup-vault</code>: Allow AMIs created by Amazon Web Services Backup. </p>
1103
+ * </li>
1104
+ * <li>
1105
+ * <p>12-digit account ID: Allow AMIs created by the specified accounts. One or more account IDs can be
1106
+ * specified.</p>
1107
+ * </li>
1108
+ * <li>
1109
+ * <p>
1110
+ * <code>none</code>: Allow AMIs created by your own account only. When <code>none</code> is
1111
+ * specified, no other values can be specified.</p>
1112
+ * </li>
1113
+ * </ul>
1114
+ * <p>Maximum: 200 values</p>
1032
1115
  * @public
1033
1116
  */
1034
1117
  ImageProviders?: string[] | undefined;
1118
+ /**
1119
+ * <p>The Amazon Web Services Marketplace product codes for allowed images.</p>
1120
+ * <p>Length: 1-25 characters</p>
1121
+ * <p>Valid characters: Letters (<code>A–Z, a–z</code>) and numbers (<code>0–9</code>)</p>
1122
+ * <p>Maximum: 50 values</p>
1123
+ * @public
1124
+ */
1125
+ MarketplaceProductCodes?: string[] | undefined;
1126
+ /**
1127
+ * <p>The names of allowed images. Names can include wildcards (<code>?</code> and
1128
+ * <code>*</code>).</p>
1129
+ * <p>Length: 1–128 characters. With <code>?</code>, the minimum is 3 characters.</p>
1130
+ * <p>Valid characters:</p>
1131
+ * <ul>
1132
+ * <li>
1133
+ * <p>Letters: <code>A–Z, a–z</code>
1134
+ * </p>
1135
+ * </li>
1136
+ * <li>
1137
+ * <p>Numbers: <code>0–9</code>
1138
+ * </p>
1139
+ * </li>
1140
+ * <li>
1141
+ * <p>Special characters: <code>( ) [ ] . / - ' @ _ * ?</code>
1142
+ * </p>
1143
+ * </li>
1144
+ * <li>
1145
+ * <p>Spaces</p>
1146
+ * </li>
1147
+ * </ul>
1148
+ * <p>Maximum: 50 values</p>
1149
+ * @public
1150
+ */
1151
+ ImageNames?: string[] | undefined;
1152
+ /**
1153
+ * <p>The maximum period since deprecation for allowed images.</p>
1154
+ * @public
1155
+ */
1156
+ DeprecationTimeCondition?: DeprecationTimeConditionRequest | undefined;
1157
+ /**
1158
+ * <p>The maximum age for allowed images.</p>
1159
+ * @public
1160
+ */
1161
+ CreationDateCondition?: CreationDateConditionRequest | undefined;
1035
1162
  }
1036
1163
  /**
1037
1164
  * @public
@@ -5,10 +5,8 @@ import {
5
5
  ServiceInputTypes,
6
6
  ServiceOutputTypes,
7
7
  } from "../EC2Client";
8
- import {
9
- GetNetworkInsightsAccessScopeAnalysisFindingsRequest,
10
- GetNetworkInsightsAccessScopeAnalysisFindingsResult,
11
- } from "../models/models_6";
8
+ import { GetNetworkInsightsAccessScopeAnalysisFindingsRequest } from "../models/models_6";
9
+ import { GetNetworkInsightsAccessScopeAnalysisFindingsResult } from "../models/models_7";
12
10
  export { __MetadataBearer };
13
11
  export { $Command };
14
12
  export interface GetNetworkInsightsAccessScopeAnalysisFindingsCommandInput
@@ -5,8 +5,10 @@ import {
5
5
  ServiceInputTypes,
6
6
  ServiceOutputTypes,
7
7
  } from "../EC2Client";
8
- import { GetNetworkInsightsAccessScopeContentRequest } from "../models/models_6";
9
- import { GetNetworkInsightsAccessScopeContentResult } from "../models/models_7";
8
+ import {
9
+ GetNetworkInsightsAccessScopeContentRequest,
10
+ GetNetworkInsightsAccessScopeContentResult,
11
+ } from "../models/models_7";
10
12
  export { __MetadataBearer };
11
13
  export { $Command };
12
14
  export interface GetNetworkInsightsAccessScopeContentCommandInput
@@ -1,5 +1,4 @@
1
1
  import {
2
- AccessScopeAnalysisFinding,
3
2
  ActiveVpnTunnelStatus,
4
3
  AddressTransfer,
5
4
  AllowedImagesSettingsDisabledState,
@@ -76,7 +75,7 @@ import {
76
75
  PaymentOption,
77
76
  VirtualizationType,
78
77
  } from "./models_4";
79
- import { AnalysisStatus, ArchitectureType, VpcAttributeName } from "./models_5";
78
+ import { ArchitectureType, VpcAttributeName } from "./models_5";
80
79
  export interface DescribeVpcAttributeRequest {
81
80
  Attribute: VpcAttributeName | undefined;
82
81
  VpcId: string | undefined;
@@ -1019,8 +1018,18 @@ export interface GetActiveVpnTunnelStatusResult {
1019
1018
  export interface GetAllowedImagesSettingsRequest {
1020
1019
  DryRun?: boolean | undefined;
1021
1020
  }
1021
+ export interface CreationDateCondition {
1022
+ MaximumDaysSinceCreated?: number | undefined;
1023
+ }
1024
+ export interface DeprecationTimeCondition {
1025
+ MaximumDaysSinceDeprecated?: number | undefined;
1026
+ }
1022
1027
  export interface ImageCriterion {
1023
1028
  ImageProviders?: string[] | undefined;
1029
+ MarketplaceProductCodes?: string[] | undefined;
1030
+ ImageNames?: string[] | undefined;
1031
+ DeprecationTimeCondition?: DeprecationTimeCondition | undefined;
1032
+ CreationDateCondition?: CreationDateCondition | undefined;
1024
1033
  }
1025
1034
  export interface GetAllowedImagesSettingsResult {
1026
1035
  State?: string | undefined;
@@ -1650,16 +1659,6 @@ export interface GetNetworkInsightsAccessScopeAnalysisFindingsRequest {
1650
1659
  NextToken?: string | undefined;
1651
1660
  DryRun?: boolean | undefined;
1652
1661
  }
1653
- export interface GetNetworkInsightsAccessScopeAnalysisFindingsResult {
1654
- NetworkInsightsAccessScopeAnalysisId?: string | undefined;
1655
- AnalysisStatus?: AnalysisStatus | undefined;
1656
- AnalysisFindings?: AccessScopeAnalysisFinding[] | undefined;
1657
- NextToken?: string | undefined;
1658
- }
1659
- export interface GetNetworkInsightsAccessScopeContentRequest {
1660
- NetworkInsightsAccessScopeId: string | undefined;
1661
- DryRun?: boolean | undefined;
1662
- }
1663
1662
  export declare const DescribeVpnConnectionsResultFilterSensitiveLog: (
1664
1663
  obj: DescribeVpnConnectionsResult
1665
1664
  ) => any;
@@ -1,4 +1,5 @@
1
1
  import {
2
+ AccessScopeAnalysisFinding,
2
3
  AddedPrincipal,
3
4
  AddIpamOperatingRegion,
4
5
  AddIpamOrganizationalUnitExclusion,
@@ -134,6 +135,7 @@ import {
134
135
  VirtualizationType,
135
136
  } from "./models_4";
136
137
  import {
138
+ AnalysisStatus,
137
139
  ArchitectureType,
138
140
  CreateVolumePermission,
139
141
  ExcessCapacityTerminationPolicy,
@@ -155,6 +157,16 @@ import {
155
157
  UnlimitedSupportedInstanceFamily,
156
158
  VpcBlockPublicAccessOptions,
157
159
  } from "./models_6";
160
+ export interface GetNetworkInsightsAccessScopeAnalysisFindingsResult {
161
+ NetworkInsightsAccessScopeAnalysisId?: string | undefined;
162
+ AnalysisStatus?: AnalysisStatus | undefined;
163
+ AnalysisFindings?: AccessScopeAnalysisFinding[] | undefined;
164
+ NextToken?: string | undefined;
165
+ }
166
+ export interface GetNetworkInsightsAccessScopeContentRequest {
167
+ NetworkInsightsAccessScopeId: string | undefined;
168
+ DryRun?: boolean | undefined;
169
+ }
158
170
  export interface GetNetworkInsightsAccessScopeContentResult {
159
171
  NetworkInsightsAccessScopeContent?:
160
172
  | NetworkInsightsAccessScopeContent
@@ -1903,16 +1915,6 @@ export interface ProvisionIpamByoasnRequest {
1903
1915
  export interface ProvisionIpamByoasnResult {
1904
1916
  Byoasn?: Byoasn | undefined;
1905
1917
  }
1906
- export interface IpamCidrAuthorizationContext {
1907
- Message?: string | undefined;
1908
- Signature?: string | undefined;
1909
- }
1910
- export declare const VerificationMethod: {
1911
- readonly dns_token: "dns-token";
1912
- readonly remarks_x509: "remarks-x509";
1913
- };
1914
- export type VerificationMethod =
1915
- (typeof VerificationMethod)[keyof typeof VerificationMethod];
1916
1918
  export declare const GetPasswordDataResultFilterSensitiveLog: (
1917
1919
  obj: GetPasswordDataResult
1918
1920
  ) => any;
@@ -81,10 +81,18 @@ import { Purchase } from "./models_6";
81
81
  import {
82
82
  CapacityReservationSpecification,
83
83
  InstanceMonitoring,
84
- IpamCidrAuthorizationContext,
85
84
  Status,
86
- VerificationMethod,
87
85
  } from "./models_7";
86
+ export interface IpamCidrAuthorizationContext {
87
+ Message?: string | undefined;
88
+ Signature?: string | undefined;
89
+ }
90
+ export declare const VerificationMethod: {
91
+ readonly dns_token: "dns-token";
92
+ readonly remarks_x509: "remarks-x509";
93
+ };
94
+ export type VerificationMethod =
95
+ (typeof VerificationMethod)[keyof typeof VerificationMethod];
88
96
  export interface ProvisionIpamPoolCidrRequest {
89
97
  DryRun?: boolean | undefined;
90
98
  IpamPoolId: string | undefined;
@@ -312,8 +320,18 @@ export interface ReplaceIamInstanceProfileAssociationRequest {
312
320
  export interface ReplaceIamInstanceProfileAssociationResult {
313
321
  IamInstanceProfileAssociation?: IamInstanceProfileAssociation | undefined;
314
322
  }
323
+ export interface CreationDateConditionRequest {
324
+ MaximumDaysSinceCreated?: number | undefined;
325
+ }
326
+ export interface DeprecationTimeConditionRequest {
327
+ MaximumDaysSinceDeprecated?: number | undefined;
328
+ }
315
329
  export interface ImageCriterionRequest {
316
330
  ImageProviders?: string[] | undefined;
331
+ MarketplaceProductCodes?: string[] | undefined;
332
+ ImageNames?: string[] | undefined;
333
+ DeprecationTimeCondition?: DeprecationTimeConditionRequest | undefined;
334
+ CreationDateCondition?: CreationDateConditionRequest | undefined;
317
335
  }
318
336
  export interface ReplaceImageCriteriaInAllowedImagesSettingsRequest {
319
337
  ImageCriteria?: ImageCriterionRequest[] | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ec2",
3
3
  "description": "AWS SDK for JavaScript Ec2 Client for Node.js, Browser and React Native",
4
- "version": "3.891.0",
4
+ "version": "3.892.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-ec2",
@@ -25,7 +25,7 @@
25
25
  "@aws-sdk/middleware-host-header": "3.891.0",
26
26
  "@aws-sdk/middleware-logger": "3.891.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.891.0",
28
- "@aws-sdk/middleware-sdk-ec2": "3.890.0",
28
+ "@aws-sdk/middleware-sdk-ec2": "3.892.0",
29
29
  "@aws-sdk/middleware-user-agent": "3.891.0",
30
30
  "@aws-sdk/region-config-resolver": "3.890.0",
31
31
  "@aws-sdk/types": "3.887.0",