@aws-sdk/client-ec2 3.1065.0 → 3.1067.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 (65) hide show
  1. package/README.md +14 -0
  2. package/dist-cjs/index.js +28 -0
  3. package/dist-cjs/schemas/schemas_0.js +127 -66
  4. package/dist-es/EC2.js +4 -0
  5. package/dist-es/commands/AttachImageWatermarkCommand.js +16 -0
  6. package/dist-es/commands/DetachImageWatermarkCommand.js +16 -0
  7. package/dist-es/commands/index.js +2 -0
  8. package/dist-es/schemas/schemas_0.js +65 -4
  9. package/dist-types/EC2.d.ts +14 -0
  10. package/dist-types/EC2Client.d.ts +4 -2
  11. package/dist-types/commands/AttachImageWatermarkCommand.d.ts +84 -0
  12. package/dist-types/commands/CreateDefaultSubnetCommand.d.ts +2 -1
  13. package/dist-types/commands/CreateDefaultVpcCommand.d.ts +1 -2
  14. package/dist-types/commands/CreateRouteServerPeerCommand.d.ts +2 -1
  15. package/dist-types/commands/DeleteSecurityGroupCommand.d.ts +2 -1
  16. package/dist-types/commands/DeleteSnapshotCommand.d.ts +1 -1
  17. package/dist-types/commands/DescribeImagesCommand.d.ts +9 -0
  18. package/dist-types/commands/DescribeImportSnapshotTasksCommand.d.ts +1 -2
  19. package/dist-types/commands/DescribeInstanceImageMetadataCommand.d.ts +9 -0
  20. package/dist-types/commands/DescribeSpotInstanceRequestsCommand.d.ts +2 -1
  21. package/dist-types/commands/DescribeSpotPriceHistoryCommand.d.ts +1 -2
  22. package/dist-types/commands/DetachImageWatermarkCommand.d.ts +82 -0
  23. package/dist-types/commands/GetCapacityManagerAttributesCommand.d.ts +1 -1
  24. package/dist-types/commands/GetCapacityManagerMetricDataCommand.d.ts +1 -2
  25. package/dist-types/commands/ModifyIpamScopeCommand.d.ts +2 -1
  26. package/dist-types/commands/ModifyLaunchTemplateCommand.d.ts +1 -1
  27. package/dist-types/commands/ModifyLocalGatewayRouteCommand.d.ts +1 -1
  28. package/dist-types/commands/index.d.ts +2 -0
  29. package/dist-types/models/models_0.d.ts +37 -22
  30. package/dist-types/models/models_1.d.ts +24 -100
  31. package/dist-types/models/models_2.d.ts +100 -34
  32. package/dist-types/models/models_3.d.ts +73 -120
  33. package/dist-types/models/models_4.d.ts +128 -172
  34. package/dist-types/models/models_5.d.ts +204 -183
  35. package/dist-types/models/models_6.d.ts +186 -119
  36. package/dist-types/models/models_7.d.ts +115 -1
  37. package/dist-types/schemas/schemas_0.d.ts +7 -0
  38. package/dist-types/ts3.4/EC2.d.ts +34 -0
  39. package/dist-types/ts3.4/EC2Client.d.ts +12 -0
  40. package/dist-types/ts3.4/commands/AttachImageWatermarkCommand.d.ts +53 -0
  41. package/dist-types/ts3.4/commands/CreateDefaultSubnetCommand.d.ts +2 -4
  42. package/dist-types/ts3.4/commands/CreateDefaultVpcCommand.d.ts +4 -2
  43. package/dist-types/ts3.4/commands/CreateRouteServerPeerCommand.d.ts +2 -4
  44. package/dist-types/ts3.4/commands/DeleteSecurityGroupCommand.d.ts +2 -4
  45. package/dist-types/ts3.4/commands/DeleteSnapshotCommand.d.ts +1 -1
  46. package/dist-types/ts3.4/commands/DescribeImportSnapshotTasksCommand.d.ts +4 -2
  47. package/dist-types/ts3.4/commands/DescribeSpotInstanceRequestsCommand.d.ts +2 -4
  48. package/dist-types/ts3.4/commands/DescribeSpotPriceHistoryCommand.d.ts +4 -2
  49. package/dist-types/ts3.4/commands/DetachImageWatermarkCommand.d.ts +53 -0
  50. package/dist-types/ts3.4/commands/GetCapacityManagerAttributesCommand.d.ts +1 -1
  51. package/dist-types/ts3.4/commands/GetCapacityManagerMetricDataCommand.d.ts +4 -2
  52. package/dist-types/ts3.4/commands/ModifyIpamScopeCommand.d.ts +2 -4
  53. package/dist-types/ts3.4/commands/ModifyLaunchTemplateCommand.d.ts +1 -1
  54. package/dist-types/ts3.4/commands/ModifyLocalGatewayRouteCommand.d.ts +1 -1
  55. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  56. package/dist-types/ts3.4/models/models_0.d.ts +8 -6
  57. package/dist-types/ts3.4/models/models_1.d.ts +7 -20
  58. package/dist-types/ts3.4/models/models_2.d.ts +23 -9
  59. package/dist-types/ts3.4/models/models_3.d.ts +16 -26
  60. package/dist-types/ts3.4/models/models_4.d.ts +30 -26
  61. package/dist-types/ts3.4/models/models_5.d.ts +35 -37
  62. package/dist-types/ts3.4/models/models_6.d.ts +37 -29
  63. package/dist-types/ts3.4/models/models_7.d.ts +26 -0
  64. package/dist-types/ts3.4/schemas/schemas_0.d.ts +7 -0
  65. package/package.json +2 -2
@@ -1,8 +1,128 @@
1
1
  import type { _InstanceType, ActivityStatus, AllocationStrategy, AmdSevSnpSpecification, AnalysisStatus, ArchitectureType, ArchitectureValues, AttachmentLimitType, AttachmentStatus, BandwidthWeightingType, BatchState, BootModeType, BootModeValues, CapacityReservationPreference, CurrencyCodeValues, DeviceType, DiskType, EbsEncryptionSupport, EbsNvmeSupport, EbsOptimizedSupport, EnaSupport, EphemeralNvmeSupport, EventCode, EventType, ExcessCapacityTerminationPolicy, FindingsFound, FleetType, FlexibleEnaQueuesSupport, HaStatus, HostnameType, HttpTokensState, HypervisorType, ImageState, InstanceAttributeName, InstanceAutoRecoveryState, InstanceBandwidthWeighting, InstanceBootModeValues, InstanceInterruptionBehavior, InstanceLifecycleType, InstanceMetadataEndpointState, InstanceMetadataOptionsState, InstanceMetadataProtocolState, InstanceMetadataTagsState, InstanceRebootMigrationState, InstanceStateName, InstanceStorageEncryptionSupport, InstanceTypeHypervisor, KeyType, LocationType, LockState, MonitoringState, MoveStatus, NestedVirtualizationSpecification, NetworkInterfaceAttribute, NetworkInterfaceStatus, NitroEnclavesSupport, NitroTpmSupport, OfferingClassType, OfferingTypeValues, OnDemandAllocationStrategy, PermissionGroup, PhcSupport, PlacementGroupStrategy, PlatformValues, RebootMigrationSupport, RecurringChargeFrequency, ReplacementStrategy, ReservedInstanceState, ResourceType, RIProductDescription, RootDeviceType, Scope, SecondaryInterfaceStatus, SecondaryInterfaceType, SecondaryNetworkType, SecurityGroupVpcAssociationState, ServiceLinkVirtualInterfaceConfigurationState, SnapshotAttributeName, SnapshotState, SpotInstanceState, SpotInstanceType, SqlServerLicenseUsage, StatusName, StatusType, StorageTier, SummaryStatus, SupportedAdditionalProcessorFeature, TargetCapacityUnitType, Tenancy, TieringOperationStatus, UsageClassType, VirtualizationType } from "./enums";
2
2
  import type { ActiveInstance, AlternatePathHint, Explanation, IamInstanceProfile, IamInstanceProfileSpecification, InstanceEventWindow, IpamPoolAllocation, IpamResourceDiscoveryAssociation, IpPermission, OperatorResponse, PathComponent, ReservedInstancesListing, SecurityGroupRule, Tag, TagSpecification } from "./models_0";
3
- import type { AttributeValue, BlockDeviceMapping, CapacityReservationTargetResponse, ConnectionTrackingSpecificationRequest, Ec2InstanceConnectEndpoint, EnaSrdSpecificationRequest, FleetLaunchTemplateSpecification, GroupIdentifier, InstanceIpv6Address, InstanceRequirements, InternetGateway, Ipam, IpamExternalResourceVerificationToken, IpamPolicy, IpamPool, IpamPrefixListResolver, IpamPrefixListResolverTarget, IpamResourceDiscovery, IpamScope, Ipv4PrefixSpecificationRequest, Ipv6PrefixSpecificationRequest, LaunchTemplate, LaunchTemplateVersion, LocalGatewayRouteTable, LocalGatewayRouteTableVirtualInterfaceGroupAssociation, LocalGatewayRouteTableVpcAssociation, LocalGatewayVirtualInterface, LocalGatewayVirtualInterfaceGroup, MacModificationTask, ManagedPrefixList, NatGateway, NetworkAcl, NetworkInsightsAccessScope, NetworkInsightsPath, NetworkInterface, NetworkInterfaceAttachment, NetworkInterfacePermission, Placement, PlacementGroup, PrivateIpAddressSpecification, ReplaceRootVolumeTask, RouteServer, RouteServerEndpoint, RouteServerPeer, StateReason } from "./models_1";
4
- import type { RouteTable, SecondaryNetwork, SecondarySubnet, Snapshot, SpotDatafeedSubscription, SpotInstanceStateFault } from "./models_2";
5
- import type { Byoasn, EventInformation, Filter, IdFormat, ImportSnapshotTask, InstanceTagNotificationAttribute, ProductCode } from "./models_3";
3
+ import type { AttributeValue, BlockDeviceMapping, CapacityReservationTargetResponse, ConnectionTrackingSpecificationRequest, Ec2InstanceConnectEndpoint, EnaSrdSpecificationRequest, FleetLaunchTemplateSpecification, GroupIdentifier, InstanceIpv6Address, InstanceRequirements, InternetGateway, Ipam, IpamExternalResourceVerificationToken, IpamPolicy, IpamPool, IpamPrefixListResolver, IpamPrefixListResolverTarget, IpamResourceDiscovery, IpamScope, Ipv4PrefixSpecificationRequest, Ipv6PrefixSpecificationRequest, LaunchTemplate, LaunchTemplateVersion, LocalGatewayRouteTable, LocalGatewayRouteTableVirtualInterfaceGroupAssociation, LocalGatewayRouteTableVpcAssociation, LocalGatewayVirtualInterface, LocalGatewayVirtualInterfaceGroup, MacModificationTask, ManagedPrefixList, NatGateway, NetworkAcl, NetworkInsightsAccessScope, NetworkInsightsPath, NetworkInterface, NetworkInterfaceAttachment, NetworkInterfacePermission, Placement, PlacementGroup, PrivateIpAddressSpecification, ReplaceRootVolumeTask, RouteServer, RouteServerEndpoint, StateReason } from "./models_1";
4
+ import type { RouteServerPeer, RouteTable, SecondaryNetwork, SecondarySubnet, Snapshot, SpotDatafeedSubscription, SpotInstanceStateFault } from "./models_2";
5
+ import type { Byoasn, EventInformation, Filter, IdFormat, ImageWatermark, InstanceTagNotificationAttribute, ProductCode, UserBucketDetails } from "./models_3";
6
+ /**
7
+ * @public
8
+ */
9
+ export interface DescribeImportSnapshotTasksRequest {
10
+ /**
11
+ * <p>Checks whether you have the required permissions for the action, without actually making the request,
12
+ * and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
13
+ * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
14
+ * @public
15
+ */
16
+ DryRun?: boolean | undefined;
17
+ /**
18
+ * <p>The filters.</p>
19
+ * @public
20
+ */
21
+ Filters?: Filter[] | undefined;
22
+ /**
23
+ * <p>A list of import snapshot task IDs.</p>
24
+ * @public
25
+ */
26
+ ImportTaskIds?: string[] | undefined;
27
+ /**
28
+ * <p>The maximum number of results to return in a single call. To retrieve the remaining results, make another call
29
+ * with the returned <code>NextToken</code> value.</p>
30
+ * @public
31
+ */
32
+ MaxResults?: number | undefined;
33
+ /**
34
+ * <p>A token that indicates the next page of results.</p>
35
+ * @public
36
+ */
37
+ NextToken?: string | undefined;
38
+ }
39
+ /**
40
+ * <p>Details about the import snapshot task.</p>
41
+ * @public
42
+ */
43
+ export interface SnapshotTaskDetail {
44
+ /**
45
+ * <p>The description of the disk image being imported.</p>
46
+ * @public
47
+ */
48
+ Description?: string | undefined;
49
+ /**
50
+ * <p>The size of the disk in the snapshot, in GiB.</p>
51
+ * @public
52
+ */
53
+ DiskImageSize?: number | undefined;
54
+ /**
55
+ * <p>Indicates whether the snapshot is encrypted.</p>
56
+ * @public
57
+ */
58
+ Encrypted?: boolean | undefined;
59
+ /**
60
+ * <p>The format of the disk image from which the snapshot is created.</p>
61
+ * @public
62
+ */
63
+ Format?: string | undefined;
64
+ /**
65
+ * <p>The identifier for the KMS key that was used to create the encrypted snapshot.</p>
66
+ * @public
67
+ */
68
+ KmsKeyId?: string | undefined;
69
+ /**
70
+ * <p>The percentage of completion for the import snapshot task.</p>
71
+ * @public
72
+ */
73
+ Progress?: string | undefined;
74
+ /**
75
+ * <p>The snapshot ID of the disk being imported.</p>
76
+ * @public
77
+ */
78
+ SnapshotId?: string | undefined;
79
+ /**
80
+ * <p>A brief status for the import snapshot task.</p>
81
+ * @public
82
+ */
83
+ Status?: string | undefined;
84
+ /**
85
+ * <p>A detailed status message for the import snapshot task.</p>
86
+ * @public
87
+ */
88
+ StatusMessage?: string | undefined;
89
+ /**
90
+ * <p>The URL of the disk image from which the snapshot is created.</p>
91
+ * @public
92
+ */
93
+ Url?: string | undefined;
94
+ /**
95
+ * <p>The Amazon S3 bucket for the disk image.</p>
96
+ * @public
97
+ */
98
+ UserBucket?: UserBucketDetails | undefined;
99
+ }
100
+ /**
101
+ * <p>Describes an import snapshot task.</p>
102
+ * @public
103
+ */
104
+ export interface ImportSnapshotTask {
105
+ /**
106
+ * <p>A description of the import snapshot task.</p>
107
+ * @public
108
+ */
109
+ Description?: string | undefined;
110
+ /**
111
+ * <p>The ID of the import snapshot task.</p>
112
+ * @public
113
+ */
114
+ ImportTaskId?: string | undefined;
115
+ /**
116
+ * <p>Describes an import snapshot task.</p>
117
+ * @public
118
+ */
119
+ SnapshotTaskDetail?: SnapshotTaskDetail | undefined;
120
+ /**
121
+ * <p>The tags for the import snapshot task.</p>
122
+ * @public
123
+ */
124
+ Tags?: Tag[] | undefined;
125
+ }
6
126
  /**
7
127
  * @public
8
128
  */
@@ -679,6 +799,11 @@ export interface ImageMetadata {
679
799
  * @public
680
800
  */
681
801
  IsPublic?: boolean | undefined;
802
+ /**
803
+ * <p>The watermarks attached to the AMI.</p>
804
+ * @public
805
+ */
806
+ ImageWatermarks?: ImageWatermark[] | undefined;
682
807
  }
683
808
  /**
684
809
  * <p>Describes the current state of an instance.</p>
@@ -13028,172 +13153,3 @@ export interface SpotInstanceRequest {
13028
13153
  */
13029
13154
  InstanceInterruptionBehavior?: InstanceInterruptionBehavior | undefined;
13030
13155
  }
13031
- /**
13032
- * <p>Contains the output of DescribeSpotInstanceRequests.</p>
13033
- * @public
13034
- */
13035
- export interface DescribeSpotInstanceRequestsResult {
13036
- /**
13037
- * <p>The Spot Instance requests.</p>
13038
- * @public
13039
- */
13040
- SpotInstanceRequests?: SpotInstanceRequest[] | undefined;
13041
- /**
13042
- * <p>The token to include in another request to get the next page of items. This value is <code>null</code> when there
13043
- * are no more items to return.</p>
13044
- * @public
13045
- */
13046
- NextToken?: string | undefined;
13047
- }
13048
- /**
13049
- * <p>Contains the parameters for DescribeSpotPriceHistory.</p>
13050
- * @public
13051
- */
13052
- export interface DescribeSpotPriceHistoryRequest {
13053
- /**
13054
- * <p>Filters the results by the specified ID of the Availability Zone.</p>
13055
- * <p>Either <code>AvailabilityZone</code> or <code>AvailabilityZoneId</code> can be specified, but not both</p>
13056
- * @public
13057
- */
13058
- AvailabilityZoneId?: string | undefined;
13059
- /**
13060
- * <p>Checks whether you have the required permissions for the action, without actually
13061
- * making the request, and provides an error response. If you have the required
13062
- * permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is
13063
- * <code>UnauthorizedOperation</code>.</p>
13064
- * @public
13065
- */
13066
- DryRun?: boolean | undefined;
13067
- /**
13068
- * <p>The date and time, up to the past 90 days, from which to start retrieving the price
13069
- * history data, in UTC format (for example,
13070
- * <i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>HH</i>:<i>MM</i>:<i>SS</i>Z).</p>
13071
- * @public
13072
- */
13073
- StartTime?: Date | undefined;
13074
- /**
13075
- * <p>The date and time, up to the current date, from which to stop retrieving the price
13076
- * history data, in UTC format (for example,
13077
- * <i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>HH</i>:<i>MM</i>:<i>SS</i>Z).</p>
13078
- * @public
13079
- */
13080
- EndTime?: Date | undefined;
13081
- /**
13082
- * <p>Filters the results by the specified instance types.</p>
13083
- * @public
13084
- */
13085
- InstanceTypes?: _InstanceType[] | undefined;
13086
- /**
13087
- * <p>Filters the results by the specified basic product descriptions.</p>
13088
- * @public
13089
- */
13090
- ProductDescriptions?: string[] | undefined;
13091
- /**
13092
- * <p>The filters.</p>
13093
- * <ul>
13094
- * <li>
13095
- * <p>
13096
- * <code>availability-zone</code> - The Availability Zone for which prices should
13097
- * be returned.</p>
13098
- * </li>
13099
- * <li>
13100
- * <p>
13101
- * <code>availability-zone-id</code> - The ID of the Availability Zone for which
13102
- * prices should be returned.</p>
13103
- * </li>
13104
- * <li>
13105
- * <p>
13106
- * <code>instance-type</code> - The type of instance (for example,
13107
- * <code>m3.medium</code>).</p>
13108
- * </li>
13109
- * <li>
13110
- * <p>
13111
- * <code>product-description</code> - The product description for the Spot price
13112
- * (<code>Linux/UNIX</code> | <code>Red Hat Enterprise Linux</code> |
13113
- * <code>SUSE Linux</code> | <code>Windows</code> | <code>Linux/UNIX (Amazon
13114
- * VPC)</code> | <code>Red Hat Enterprise Linux (Amazon VPC)</code> |
13115
- * <code>SUSE Linux (Amazon VPC)</code> | <code>Windows (Amazon
13116
- * VPC)</code>).</p>
13117
- * </li>
13118
- * <li>
13119
- * <p>
13120
- * <code>spot-price</code> - The Spot price. The value must match exactly (or use
13121
- * wildcards; greater than or less than comparison is not supported).</p>
13122
- * </li>
13123
- * <li>
13124
- * <p>
13125
- * <code>timestamp</code> - The time stamp of the Spot price history, in UTC format
13126
- * (for example, <i>ddd MMM dd
13127
- * HH</i>:<i>mm</i>:<i>ss</i> UTC
13128
- * <i>YYYY</i>). You can use wildcards (<code>*</code> and
13129
- * <code>?</code>). Greater than or less than comparison is not
13130
- * supported.</p>
13131
- * </li>
13132
- * </ul>
13133
- * @public
13134
- */
13135
- Filters?: Filter[] | undefined;
13136
- /**
13137
- * <p>Filters the results by the specified Availability Zone.</p>
13138
- * <p>Either <code>AvailabilityZone</code> or <code>AvailabilityZoneId</code> can be specified, but not both</p>
13139
- * @public
13140
- */
13141
- AvailabilityZone?: string | undefined;
13142
- /**
13143
- * <p>The maximum number of items to return for this request.
13144
- * To get the next page of items, make another request with the token returned in the output.
13145
- * For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p>
13146
- * @public
13147
- */
13148
- MaxResults?: number | undefined;
13149
- /**
13150
- * <p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p>
13151
- * @public
13152
- */
13153
- NextToken?: string | undefined;
13154
- }
13155
- /**
13156
- * <p>The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend
13157
- * using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.</p>
13158
- * <important>
13159
- * <p>If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.</p>
13160
- * </important>
13161
- * @public
13162
- */
13163
- export interface SpotPrice {
13164
- /**
13165
- * <p>The Availability Zone.</p>
13166
- * @public
13167
- */
13168
- AvailabilityZone?: string | undefined;
13169
- /**
13170
- * <p>The ID of the Availability Zone.</p>
13171
- * @public
13172
- */
13173
- AvailabilityZoneId?: string | undefined;
13174
- /**
13175
- * <p>The instance type.</p>
13176
- * @public
13177
- */
13178
- InstanceType?: _InstanceType | undefined;
13179
- /**
13180
- * <p>A general description of the AMI.</p>
13181
- * @public
13182
- */
13183
- ProductDescription?: RIProductDescription | undefined;
13184
- /**
13185
- * <p>The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend
13186
- * using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.</p>
13187
- * <important>
13188
- * <p>If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.</p>
13189
- * </important>
13190
- * @public
13191
- */
13192
- SpotPrice?: string | undefined;
13193
- /**
13194
- * <p>The date and time the request was created, in UTC format (for example,
13195
- * <i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>HH</i>:<i>MM</i>:<i>SS</i>Z).</p>
13196
- * @public
13197
- */
13198
- Timestamp?: Date | undefined;
13199
- }