@aws-sdk/client-ec2 3.451.0 → 3.452.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 (87) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/EC2.js +6 -0
  3. package/dist-cjs/commands/DescribeLockedSnapshotsCommand.js +51 -0
  4. package/dist-cjs/commands/LockSnapshotCommand.js +51 -0
  5. package/dist-cjs/commands/RequestSpotInstancesCommand.js +3 -3
  6. package/dist-cjs/commands/UnlockSnapshotCommand.js +51 -0
  7. package/dist-cjs/commands/index.js +3 -0
  8. package/dist-cjs/models/models_0.js +1 -0
  9. package/dist-cjs/models/models_4.js +8 -2
  10. package/dist-cjs/models/models_6.js +5 -18
  11. package/dist-cjs/models/models_7.js +20 -1
  12. package/dist-cjs/protocols/Aws_ec2.js +285 -20
  13. package/dist-es/EC2.js +6 -0
  14. package/dist-es/commands/DescribeLockedSnapshotsCommand.js +47 -0
  15. package/dist-es/commands/LockSnapshotCommand.js +47 -0
  16. package/dist-es/commands/RequestSpotInstancesCommand.js +1 -1
  17. package/dist-es/commands/UnlockSnapshotCommand.js +47 -0
  18. package/dist-es/commands/index.js +3 -0
  19. package/dist-es/models/models_0.js +1 -0
  20. package/dist-es/models/models_4.js +6 -0
  21. package/dist-es/models/models_6.js +5 -16
  22. package/dist-es/models/models_7.js +17 -0
  23. package/dist-es/protocols/Aws_ec2.js +259 -0
  24. package/dist-types/EC2.d.ts +21 -0
  25. package/dist-types/EC2Client.d.ts +5 -2
  26. package/dist-types/commands/CreateCapacityReservationFleetCommand.d.ts +2 -2
  27. package/dist-types/commands/CreateFleetCommand.d.ts +4 -4
  28. package/dist-types/commands/CreateLaunchTemplateCommand.d.ts +1 -1
  29. package/dist-types/commands/CreateLaunchTemplateVersionCommand.d.ts +2 -2
  30. package/dist-types/commands/DescribeCapacityReservationFleetsCommand.d.ts +1 -1
  31. package/dist-types/commands/DescribeFleetsCommand.d.ts +4 -4
  32. package/dist-types/commands/DescribeInstanceTypeOfferingsCommand.d.ts +1 -1
  33. package/dist-types/commands/DescribeInstanceTypesCommand.d.ts +2 -2
  34. package/dist-types/commands/DescribeInstancesCommand.d.ts +1 -1
  35. package/dist-types/commands/DescribeLaunchTemplateVersionsCommand.d.ts +1 -1
  36. package/dist-types/commands/DescribeLockedSnapshotsCommand.d.ts +99 -0
  37. package/dist-types/commands/DescribeReservedInstancesCommand.d.ts +1 -1
  38. package/dist-types/commands/DescribeReservedInstancesModificationsCommand.d.ts +1 -1
  39. package/dist-types/commands/DescribeReservedInstancesOfferingsCommand.d.ts +2 -2
  40. package/dist-types/commands/DescribeSpotFleetRequestsCommand.d.ts +2 -2
  41. package/dist-types/commands/DescribeSpotInstanceRequestsCommand.d.ts +1 -1
  42. package/dist-types/commands/DescribeSpotPriceHistoryCommand.d.ts +2 -2
  43. package/dist-types/commands/DescribeTransitGatewayMulticastDomainsCommand.d.ts +2 -1
  44. package/dist-types/commands/DescribeTransitGatewayPeeringAttachmentsCommand.d.ts +1 -1
  45. package/dist-types/commands/DescribeTransitGatewayPolicyTablesCommand.d.ts +1 -2
  46. package/dist-types/commands/GetLaunchTemplateDataCommand.d.ts +1 -1
  47. package/dist-types/commands/GetSnapshotBlockPublicAccessStateCommand.d.ts +1 -1
  48. package/dist-types/commands/GetSpotPlacementScoresCommand.d.ts +1 -2
  49. package/dist-types/commands/ImportInstanceCommand.d.ts +1 -1
  50. package/dist-types/commands/LockSnapshotCommand.d.ts +103 -0
  51. package/dist-types/commands/ModifyFleetCommand.d.ts +1 -1
  52. package/dist-types/commands/ModifyReservedInstancesCommand.d.ts +1 -1
  53. package/dist-types/commands/ModifySpotFleetRequestCommand.d.ts +1 -1
  54. package/dist-types/commands/RequestSpotFleetCommand.d.ts +2 -2
  55. package/dist-types/commands/RequestSpotInstancesCommand.d.ts +3 -3
  56. package/dist-types/commands/ResetAddressAttributeCommand.d.ts +1 -1
  57. package/dist-types/commands/ResetEbsDefaultKmsKeyIdCommand.d.ts +1 -1
  58. package/dist-types/commands/RunInstancesCommand.d.ts +2 -2
  59. package/dist-types/commands/UnlockSnapshotCommand.d.ts +76 -0
  60. package/dist-types/commands/index.d.ts +3 -0
  61. package/dist-types/models/models_0.d.ts +1 -0
  62. package/dist-types/models/models_4.d.ts +154 -129
  63. package/dist-types/models/models_5.d.ts +130 -137
  64. package/dist-types/models/models_6.d.ts +309 -210
  65. package/dist-types/models/models_7.d.ts +235 -3
  66. package/dist-types/protocols/Aws_ec2.d.ts +27 -0
  67. package/dist-types/ts3.4/EC2.d.ts +51 -0
  68. package/dist-types/ts3.4/EC2Client.d.ts +18 -0
  69. package/dist-types/ts3.4/commands/DescribeLockedSnapshotsCommand.d.ts +42 -0
  70. package/dist-types/ts3.4/commands/DescribeTransitGatewayMulticastDomainsCommand.d.ts +2 -4
  71. package/dist-types/ts3.4/commands/DescribeTransitGatewayPeeringAttachmentsCommand.d.ts +1 -1
  72. package/dist-types/ts3.4/commands/DescribeTransitGatewayPolicyTablesCommand.d.ts +4 -2
  73. package/dist-types/ts3.4/commands/GetSnapshotBlockPublicAccessStateCommand.d.ts +1 -1
  74. package/dist-types/ts3.4/commands/GetSpotPlacementScoresCommand.d.ts +4 -2
  75. package/dist-types/ts3.4/commands/LockSnapshotCommand.d.ts +35 -0
  76. package/dist-types/ts3.4/commands/RequestSpotInstancesCommand.d.ts +1 -1
  77. package/dist-types/ts3.4/commands/ResetAddressAttributeCommand.d.ts +1 -1
  78. package/dist-types/ts3.4/commands/ResetEbsDefaultKmsKeyIdCommand.d.ts +1 -1
  79. package/dist-types/ts3.4/commands/UnlockSnapshotCommand.d.ts +38 -0
  80. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  81. package/dist-types/ts3.4/models/models_0.d.ts +1 -0
  82. package/dist-types/ts3.4/models/models_4.d.ts +29 -24
  83. package/dist-types/ts3.4/models/models_5.d.ts +24 -23
  84. package/dist-types/ts3.4/models/models_6.d.ts +51 -47
  85. package/dist-types/ts3.4/models/models_7.d.ts +54 -1
  86. package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +36 -0
  87. package/package.json +1 -1
@@ -1,8 +1,135 @@
1
- import { AccessScopeAnalysisFinding, AddressTransfer, AllowedPrincipal, AssociationStatus, CapacityReservationState, CurrencyCodeValues, IamInstanceProfileAssociation, InstanceEventWindow, IpamPoolAllocation, IpamResourceDiscoveryAssociation, NatGatewayAddress, SubnetIpv6CidrBlockAssociation, Tag, TagSpecification, TargetConfigurationRequest, TransitGatewayAssociation, TransitGatewayAttachmentResourceType, TransitGatewayMulticastDomainAssociations, TransitGatewayPolicyTableAssociation, TransitGatewayVpcAttachment, TrunkInterfaceAssociation, VerifiedAccessInstance, VerifiedAccessTrustProvider, VpcCidrBlockAssociation, VpcIpv6CidrBlockAssociation, VpcPeeringConnection } from "./models_0";
2
- import { DiskImageFormat, InstanceRequirementsRequest, IpamResourceTag, NetworkInsightsAccessScopeContent, RequestIpamResourceTag, ResponseLaunchTemplateData, TargetCapacityUnitType, VolumeType, Vpc } from "./models_1";
3
- import { ConnectionNotification, DnsEntry, DnsNameState, IpAddressType, PayerResponsibility, ServiceConfiguration, ServiceConnectivityType, ServiceTypeDetail, SSEType, State, TransitGateway, TransitGatewayPolicyTable, TransitGatewayRouteTable, TransitGatewayRouteTableAnnouncement, VerifiedAccessEndpoint, VerifiedAccessGroup, Volume, VpcEndpoint, VpnConnection, VpnGateway } from "./models_2";
1
+ import { AccessScopeAnalysisFinding, AddressTransfer, AllowedPrincipal, AssociationStatus, CapacityReservationState, CurrencyCodeValues, IamInstanceProfileAssociation, InstanceEventWindow, IpamPoolAllocation, IpamResourceDiscoveryAssociation, NatGatewayAddress, SubnetIpv6CidrBlockAssociation, Tag, TagSpecification, TargetConfigurationRequest, TransitGatewayAssociation, TransitGatewayAttachmentResourceType, TransitGatewayMulticastDomainAssociations, TransitGatewayPeeringAttachment, TransitGatewayPolicyTableAssociation, TransitGatewayVpcAttachment, TrunkInterfaceAssociation, VerifiedAccessInstance, VerifiedAccessTrustProvider, VpcCidrBlockAssociation, VpcIpv6CidrBlockAssociation, VpcPeeringConnection } from "./models_0";
2
+ import { DiskImageFormat, InstanceRequirementsRequest, IpamResourceTag, NetworkInsightsAccessScopeContent, RequestIpamResourceTag, ResponseLaunchTemplateData, VolumeType, Vpc } from "./models_1";
3
+ import { ConnectionNotification, DnsEntry, DnsNameState, IpAddressType, PayerResponsibility, ServiceConfiguration, ServiceConnectivityType, ServiceTypeDetail, SSEType, State, TransitGateway, TransitGatewayMulticastDomain, TransitGatewayPolicyTable, TransitGatewayRouteTable, TransitGatewayRouteTableAnnouncement, VerifiedAccessEndpoint, VerifiedAccessGroup, Volume, VpcEndpoint, VpnConnection, VpnGateway } from "./models_2";
4
4
  import { AttributeBooleanValue, ExportTaskS3Location, FastLaunchLaunchTemplateSpecificationResponse, FastLaunchResourceType, FastLaunchSnapshotConfigurationResponse, FastLaunchStateCode, FastSnapshotRestoreStateCode, Filter, IpamPoolCidr, MetricType, PaymentOption, PeriodType, ProductCode, StatisticType, VirtualizationType } from "./models_3";
5
5
  import { AnalysisStatus, ArchitectureType } from "./models_4";
6
+ /**
7
+ * @public
8
+ */
9
+ export interface DescribeTransitGatewayMulticastDomainsResult {
10
+ /**
11
+ * @public
12
+ * <p>Information about the transit gateway multicast domains.</p>
13
+ */
14
+ TransitGatewayMulticastDomains?: TransitGatewayMulticastDomain[];
15
+ /**
16
+ * @public
17
+ * <p>The token to use to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.</p>
18
+ */
19
+ NextToken?: string;
20
+ }
21
+ /**
22
+ * @public
23
+ */
24
+ export interface DescribeTransitGatewayPeeringAttachmentsRequest {
25
+ /**
26
+ * @public
27
+ * <p>One or more IDs of the transit gateway peering attachments.</p>
28
+ */
29
+ TransitGatewayAttachmentIds?: string[];
30
+ /**
31
+ * @public
32
+ * <p>One or more filters. The possible values are:</p>
33
+ * <ul>
34
+ * <li>
35
+ * <p>
36
+ * <code>transit-gateway-attachment-id</code> - The ID of the transit gateway attachment.</p>
37
+ * </li>
38
+ * <li>
39
+ * <p>
40
+ * <code>local-owner-id</code> - The ID of your Amazon Web Services account.</p>
41
+ * </li>
42
+ * <li>
43
+ * <p>
44
+ * <code>remote-owner-id</code> - The ID of the Amazon Web Services account in the remote Region that owns the transit gateway.</p>
45
+ * </li>
46
+ * <li>
47
+ * <p>
48
+ * <code>state</code> - The state of the peering attachment. Valid values are <code>available</code> | <code>deleted</code> | <code>deleting</code> | <code>failed</code> | <code>failing</code> | <code>initiatingRequest</code> | <code>modifying</code> | <code>pendingAcceptance</code> | <code>pending</code> | <code>rollingBack</code> | <code>rejected</code> | <code>rejecting</code>).</p>
49
+ * </li>
50
+ * <li>
51
+ * <p>
52
+ * <code>tag</code>:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value.
53
+ * For example, to find all resources that have a tag with the key <code>Owner</code> and the value <code>TeamA</code>, specify <code>tag:Owner</code> for the filter name and <code>TeamA</code> for the filter value.</p>
54
+ * </li>
55
+ * <li>
56
+ * <p>
57
+ * <code>tag-key</code> - The key of a tag assigned to the resource. Use this filter to find all resources that have a tag with a specific key, regardless of the tag value.</p>
58
+ * </li>
59
+ * <li>
60
+ * <p>
61
+ * <code>transit-gateway-id</code> - The ID of the transit gateway.</p>
62
+ * </li>
63
+ * </ul>
64
+ */
65
+ Filters?: Filter[];
66
+ /**
67
+ * @public
68
+ * <p>The maximum number of results to return with a single call.
69
+ * To retrieve the remaining results, make another call with the returned <code>nextToken</code> value.</p>
70
+ */
71
+ MaxResults?: number;
72
+ /**
73
+ * @public
74
+ * <p>The token for the next page of results.</p>
75
+ */
76
+ NextToken?: string;
77
+ /**
78
+ * @public
79
+ * <p>Checks whether you have the required permissions for the action, without actually making the request,
80
+ * and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
81
+ * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
82
+ */
83
+ DryRun?: boolean;
84
+ }
85
+ /**
86
+ * @public
87
+ */
88
+ export interface DescribeTransitGatewayPeeringAttachmentsResult {
89
+ /**
90
+ * @public
91
+ * <p>The transit gateway peering attachments.</p>
92
+ */
93
+ TransitGatewayPeeringAttachments?: TransitGatewayPeeringAttachment[];
94
+ /**
95
+ * @public
96
+ * <p>The token to use to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.</p>
97
+ */
98
+ NextToken?: string;
99
+ }
100
+ /**
101
+ * @public
102
+ */
103
+ export interface DescribeTransitGatewayPolicyTablesRequest {
104
+ /**
105
+ * @public
106
+ * <p>The IDs of the transit gateway policy tables.</p>
107
+ */
108
+ TransitGatewayPolicyTableIds?: string[];
109
+ /**
110
+ * @public
111
+ * <p>The filters associated with the transit gateway policy table.</p>
112
+ */
113
+ Filters?: Filter[];
114
+ /**
115
+ * @public
116
+ * <p>The maximum number of results to return with a single call.
117
+ * To retrieve the remaining results, make another call with the returned <code>nextToken</code> value.</p>
118
+ */
119
+ MaxResults?: number;
120
+ /**
121
+ * @public
122
+ * <p>The token for the next page of results.</p>
123
+ */
124
+ NextToken?: string;
125
+ /**
126
+ * @public
127
+ * <p>Checks whether you have the required permissions for the action, without actually making the request,
128
+ * and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
129
+ * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
130
+ */
131
+ DryRun?: boolean;
132
+ }
6
133
  /**
7
134
  * @public
8
135
  */
@@ -7292,140 +7419,6 @@ export interface GetSerialConsoleAccessStatusResult {
7292
7419
  */
7293
7420
  SerialConsoleAccessEnabled?: boolean;
7294
7421
  }
7295
- /**
7296
- * @public
7297
- */
7298
- export interface GetSnapshotBlockPublicAccessStateRequest {
7299
- /**
7300
- * @public
7301
- * <p>Checks whether you have the required permissions for the action, without actually making the request,
7302
- * and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
7303
- * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
7304
- */
7305
- DryRun?: boolean;
7306
- }
7307
- /**
7308
- * @public
7309
- */
7310
- export interface GetSnapshotBlockPublicAccessStateResult {
7311
- /**
7312
- * @public
7313
- * <p>The current state of block public access for snapshots. Possible values include:</p>
7314
- * <ul>
7315
- * <li>
7316
- * <p>
7317
- * <code>block-all-sharing</code> - All public sharing of snapshots is blocked. Users in
7318
- * the account can't request new public sharing. Additionally, snapshots that were already
7319
- * publicly shared are treated as private and are not publicly available.</p>
7320
- * </li>
7321
- * <li>
7322
- * <p>
7323
- * <code>block-new-sharing</code> - Only new public sharing of snapshots is blocked.
7324
- * Users in the account can't request new public sharing. However, snapshots that were
7325
- * already publicly shared, remain publicly available.</p>
7326
- * </li>
7327
- * <li>
7328
- * <p>
7329
- * <code>unblocked</code> - Public sharing is not blocked. Users can publicly share
7330
- * snapshots.</p>
7331
- * </li>
7332
- * </ul>
7333
- */
7334
- State?: SnapshotBlockPublicAccessState;
7335
- }
7336
- /**
7337
- * @public
7338
- * <p>The architecture type, virtualization type, and other attributes for the instance types.
7339
- * When you specify instance attributes, Amazon EC2 will identify instance types with those
7340
- * attributes.</p>
7341
- * <p>If you specify <code>InstanceRequirementsWithMetadataRequest</code>, you can't specify
7342
- * <code>InstanceTypes</code>.</p>
7343
- */
7344
- export interface InstanceRequirementsWithMetadataRequest {
7345
- /**
7346
- * @public
7347
- * <p>The architecture type.</p>
7348
- */
7349
- ArchitectureTypes?: ArchitectureType[];
7350
- /**
7351
- * @public
7352
- * <p>The virtualization type.</p>
7353
- */
7354
- VirtualizationTypes?: VirtualizationType[];
7355
- /**
7356
- * @public
7357
- * <p>The attributes for the instance types. When you specify instance attributes, Amazon EC2 will
7358
- * identify instance types with those attributes.</p>
7359
- */
7360
- InstanceRequirements?: InstanceRequirementsRequest;
7361
- }
7362
- /**
7363
- * @public
7364
- */
7365
- export interface GetSpotPlacementScoresRequest {
7366
- /**
7367
- * @public
7368
- * <p>The instance types. We recommend that you specify at least three instance types. If you
7369
- * specify one or two instance types, or specify variations of a single instance type (for
7370
- * example, an <code>m3.xlarge</code> with and without instance storage), the returned
7371
- * placement score will always be low. </p>
7372
- * <p>If you specify <code>InstanceTypes</code>, you can't specify
7373
- * <code>InstanceRequirementsWithMetadata</code>.</p>
7374
- */
7375
- InstanceTypes?: string[];
7376
- /**
7377
- * @public
7378
- * <p>The target capacity.</p>
7379
- */
7380
- TargetCapacity: number | undefined;
7381
- /**
7382
- * @public
7383
- * <p>The unit for the target capacity.</p>
7384
- * <p>Default: <code>units</code> (translates to number of instances)</p>
7385
- */
7386
- TargetCapacityUnitType?: TargetCapacityUnitType;
7387
- /**
7388
- * @public
7389
- * <p>Specify <code>true</code> so that the response returns a list of scored Availability Zones.
7390
- * Otherwise, the response returns a list of scored Regions.</p>
7391
- * <p>A list of scored Availability Zones is useful if you want to launch all of your Spot
7392
- * capacity into a single Availability Zone.</p>
7393
- */
7394
- SingleAvailabilityZone?: boolean;
7395
- /**
7396
- * @public
7397
- * <p>The Regions used to narrow down the list of Regions to be scored. Enter the Region code,
7398
- * for example, <code>us-east-1</code>.</p>
7399
- */
7400
- RegionNames?: string[];
7401
- /**
7402
- * @public
7403
- * <p>The attributes for the instance types. When you specify instance attributes, Amazon EC2 will
7404
- * identify instance types with those attributes.</p>
7405
- * <p>If you specify <code>InstanceRequirementsWithMetadata</code>, you can't specify
7406
- * <code>InstanceTypes</code>.</p>
7407
- */
7408
- InstanceRequirementsWithMetadata?: InstanceRequirementsWithMetadataRequest;
7409
- /**
7410
- * @public
7411
- * <p>Checks whether you have the required permissions for the action, without actually making the request,
7412
- * and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
7413
- * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
7414
- */
7415
- DryRun?: boolean;
7416
- /**
7417
- * @public
7418
- * <p>The maximum number of items to return for this request.
7419
- * To get the next page of items, make another request with the token returned in the output.
7420
- * For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
7421
- */
7422
- MaxResults?: number;
7423
- /**
7424
- * @public
7425
- * <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
7426
- */
7427
- NextToken?: string;
7428
- }
7429
7422
  /**
7430
7423
  * @internal
7431
7424
  */