@aws-sdk/client-ec2 3.45.0 → 3.47.2

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 (69) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/README.md +3 -3
  3. package/dist-cjs/EC2.js +15 -0
  4. package/dist-cjs/commands/GetIpamResourceCidrsCommand.js +2 -1
  5. package/dist-cjs/commands/GetLaunchTemplateDataCommand.js +1 -2
  6. package/dist-cjs/commands/ModifyVpcEndpointServicePayerResponsibilityCommand.js +36 -0
  7. package/dist-cjs/commands/index.js +1 -0
  8. package/dist-cjs/endpoints.js +0 -32
  9. package/dist-cjs/models/models_1.js +10 -11
  10. package/dist-cjs/models/models_2.js +16 -12
  11. package/dist-cjs/models/models_3.js +17 -24
  12. package/dist-cjs/models/models_4.js +24 -24
  13. package/dist-cjs/models/models_5.js +36 -36
  14. package/dist-cjs/models/models_6.js +32 -2
  15. package/dist-cjs/protocols/Aws_ec2.js +123 -13
  16. package/dist-cjs/runtimeConfig.browser.js +7 -2
  17. package/dist-cjs/runtimeConfig.js +9 -3
  18. package/dist-es/EC2.js +15 -0
  19. package/dist-es/commands/GetIpamResourceCidrsCommand.js +2 -1
  20. package/dist-es/commands/GetLaunchTemplateDataCommand.js +1 -2
  21. package/dist-es/commands/ModifyVpcEndpointServicePayerResponsibilityCommand.js +39 -0
  22. package/dist-es/commands/index.js +1 -0
  23. package/dist-es/endpoints.js +0 -32
  24. package/dist-es/models/models_1.js +5 -4
  25. package/dist-es/models/models_2.js +8 -4
  26. package/dist-es/models/models_3.js +9 -12
  27. package/dist-es/models/models_4.js +12 -12
  28. package/dist-es/models/models_5.js +20 -20
  29. package/dist-es/models/models_6.js +20 -0
  30. package/dist-es/protocols/Aws_ec2.js +112 -0
  31. package/dist-es/runtimeConfig.browser.js +12 -3
  32. package/dist-es/runtimeConfig.js +13 -6
  33. package/dist-types/EC2.d.ts +15 -5
  34. package/dist-types/EC2Client.d.ts +11 -6
  35. package/dist-types/commands/DescribeAccountAttributesCommand.d.ts +1 -1
  36. package/dist-types/commands/DescribeStaleSecurityGroupsCommand.d.ts +4 -1
  37. package/dist-types/commands/GetIpamResourceCidrsCommand.d.ts +2 -1
  38. package/dist-types/commands/GetLaunchTemplateDataCommand.d.ts +1 -2
  39. package/dist-types/commands/ModifyVpcEndpointServicePayerResponsibilityCommand.d.ts +35 -0
  40. package/dist-types/commands/index.d.ts +1 -0
  41. package/dist-types/models/models_0.d.ts +16 -0
  42. package/dist-types/models/models_1.d.ts +32 -38
  43. package/dist-types/models/models_2.d.ts +46 -40
  44. package/dist-types/models/models_3.d.ts +86 -88
  45. package/dist-types/models/models_4.d.ts +99 -115
  46. package/dist-types/models/models_5.d.ts +163 -144
  47. package/dist-types/models/models_6.d.ts +149 -8
  48. package/dist-types/protocols/Aws_ec2.d.ts +3 -0
  49. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  50. package/dist-types/runtimeConfig.d.ts +4 -3
  51. package/dist-types/runtimeConfig.native.d.ts +1 -0
  52. package/dist-types/ts3.4/EC2.d.ts +5 -0
  53. package/dist-types/ts3.4/EC2Client.d.ts +6 -3
  54. package/dist-types/ts3.4/commands/GetIpamResourceCidrsCommand.d.ts +2 -1
  55. package/dist-types/ts3.4/commands/GetLaunchTemplateDataCommand.d.ts +1 -2
  56. package/dist-types/ts3.4/commands/ModifyVpcEndpointServicePayerResponsibilityCommand.d.ts +17 -0
  57. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  58. package/dist-types/ts3.4/models/models_0.d.ts +4 -0
  59. package/dist-types/ts3.4/models/models_1.d.ts +10 -17
  60. package/dist-types/ts3.4/models/models_2.d.ts +23 -19
  61. package/dist-types/ts3.4/models/models_3.d.ts +25 -46
  62. package/dist-types/ts3.4/models/models_4.d.ts +50 -60
  63. package/dist-types/ts3.4/models/models_5.d.ts +86 -64
  64. package/dist-types/ts3.4/models/models_6.d.ts +62 -3
  65. package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +3 -0
  66. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  67. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  68. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  69. package/package.json +41 -48
@@ -1,8 +1,114 @@
1
1
  import { _InstanceType, AccessScopeAnalysisFinding, AddIpamOperatingRegion, AddPrefixListEntry, AddressAttribute, AddressAttributeName, Affinity, ApplianceModeSupportValue, AttributeValue, AutoPlacement, ByoipCidr, ClientConnectOptions, ClientVpnAuthorizationRuleStatus, ConnectionLogOptions, CurrencyCodeValues, DnsSupportValue, EndDateType, FleetExcessCapacityTerminationPolicy, HostnameType, HostRecovery, IamInstanceProfileAssociation, IamInstanceProfileSpecification, InstanceEventWindow, IpPermission, Ipv6SupportValue, PortRange, RouteTableAssociationState, SelfServicePortal, SubnetAssociation, Tag, TagSpecification, TargetConfigurationRequest, TransitGatewayAssociationState, TransitGatewayAttachmentResourceType, TransitGatewayMulticastDomainAssociations, TransitGatewayPeeringAttachment, TransitGatewayVpcAttachment, UnsuccessfulItem } from "./models_0";
2
- import { AutoAcceptSharedAttachmentsValue, BlockDeviceMapping, CapacityReservationPreference, CapacityReservationTarget, DefaultRouteTableAssociationValue, DefaultRouteTablePropagationValue, DiskImageFormat, FleetLaunchTemplateConfigRequest, IcmpTypeCode, InstanceEventWindowTimeRangeRequest, InstanceInterruptionBehavior, InstanceRequirementsRequest, Ipam, IpamPool, IpamScope, LaunchTemplate, ManagedPrefixList, MarketType, NetworkInsightsAccessScopeContent, Placement, PlatformValues, RequestIpamResourceTag, ResponseLaunchTemplateData, RuleAction, ShutdownBehavior, SnapshotState, SpotInstanceType, SubnetCidrReservation, TargetCapacitySpecificationRequest, TargetCapacityUnitType, TrafficDirection, TrafficMirrorFilter, TrafficMirrorFilterRule, TrafficMirrorNetworkService, TrafficMirrorPortRangeRequest, TrafficMirrorRuleAction, TrafficMirrorSession, TransitGateway, VolumeType, VpnEcmpSupportValue } from "./models_1";
3
- import { Filter, IKEVersionsRequestListValue, InstanceTagNotificationAttribute, IpamPoolCidr, Phase1DHGroupNumbersRequestListValue, Phase1EncryptionAlgorithmsRequestListValue, Phase1IntegrityAlgorithmsRequestListValue, Phase2DHGroupNumbersRequestListValue, Phase2EncryptionAlgorithmsRequestListValue, Phase2IntegrityAlgorithmsRequestListValue, TransitGatewayPrefixListReference, TransitGatewayRoute, VpnConnection } from "./models_2";
4
- import { AnalysisStatus, ArchitectureType, ArchitectureValues, AttributeBooleanValue, BootModeValues, ConversionTask, FpgaImageAttribute, FpgaImageAttributeName, HttpTokensState, ImportImageLicenseConfigurationResponse, InstanceAttributeName, InstanceMetadataEndpointState, InstanceMetadataOptionsResponse, InstanceMetadataProtocolState, InstanceStatusEvent, LaunchPermission, Monitoring, PermissionGroup, PublicIpv4PoolRange, ReservedInstancesConfiguration, SnapshotDetail, SnapshotTaskDetail, VirtualizationType } from "./models_3";
5
- import { CreateVolumePermission, ExcessCapacityTerminationPolicy, InstanceFamilyCreditSpecification, InstanceNetworkInterfaceSpecification, IpamResourceCidr, LaunchTemplateConfig, Purchase, RunInstancesMonitoringEnabled, ScheduledInstance, SnapshotAttributeName, SpotFleetRequestConfigData, SpotInstanceRequest, SpotPlacement, TransitGatewayPropagationState, UnlimitedSupportedInstanceFamily, VolumeModification } from "./models_4";
2
+ import { AutoAcceptSharedAttachmentsValue, BlockDeviceMapping, CapacityReservationPreference, CapacityReservationTarget, DefaultRouteTableAssociationValue, DefaultRouteTablePropagationValue, DiskImageFormat, FleetLaunchTemplateConfigRequest, IcmpTypeCode, InstanceEventWindowTimeRangeRequest, InstanceInterruptionBehavior, InstanceRequirementsRequest, Ipam, IpamPool, IpamResourceTag, IpamScope, LaunchTemplate, ManagedPrefixList, NetworkInsightsAccessScopeContent, Placement, PlatformValues, RequestIpamResourceTag, ResponseLaunchTemplateData, RuleAction, ShutdownBehavior, SnapshotState, SpotInstanceType, SubnetCidrReservation, TargetCapacitySpecificationRequest, TargetCapacityUnitType, TrafficDirection, TrafficMirrorFilter, TrafficMirrorFilterRule, TrafficMirrorNetworkService, TrafficMirrorPortRangeRequest, TrafficMirrorRuleAction, TrafficMirrorSession, TransitGateway, VolumeType, VpnEcmpSupportValue } from "./models_1";
3
+ import { Filter, IKEVersionsRequestListValue, InstanceTagNotificationAttribute, IpamPoolCidr, PayerResponsibility, Phase1DHGroupNumbersRequestListValue, Phase1EncryptionAlgorithmsRequestListValue, Phase1IntegrityAlgorithmsRequestListValue, Phase2DHGroupNumbersRequestListValue, Phase2EncryptionAlgorithmsRequestListValue, Phase2IntegrityAlgorithmsRequestListValue, TransitGatewayPrefixListReference, TransitGatewayRoute, VpnConnection } from "./models_2";
4
+ import { AnalysisStatus, ArchitectureType, ArchitectureValues, AttributeBooleanValue, BootModeValues, ConversionTask, FpgaImageAttribute, FpgaImageAttributeName, HttpTokensState, ImportImageLicenseConfigurationResponse, InstanceAttributeName, InstanceMetadataEndpointState, InstanceMetadataOptionsResponse, InstanceMetadataProtocolState, InstanceMetadataTagsState, InstanceStatusEvent, LaunchPermission, Monitoring, PermissionGroup, PublicIpv4PoolRange, ReservedInstancesConfiguration, SnapshotDetail, SnapshotTaskDetail, VirtualizationType } from "./models_3";
5
+ import { CreateVolumePermission, ExcessCapacityTerminationPolicy, InstanceFamilyCreditSpecification, InstanceNetworkInterfaceSpecification, IpamComplianceStatus, IpamManagementState, IpamOverlapStatus, IpamResourceType, LaunchTemplateConfig, Purchase, RunInstancesMonitoringEnabled, ScheduledInstance, SnapshotAttributeName, SpotFleetRequestConfigData, SpotInstanceRequest, SpotPlacement, TransitGatewayPropagationState, UnlimitedSupportedInstanceFamily, VolumeModification } from "./models_4";
6
+ /**
7
+ * <p>The CIDR for an IPAM resource.</p>
8
+ */
9
+ export interface IpamResourceCidr {
10
+ /**
11
+ * <p>The IPAM ID for an IPAM resource.</p>
12
+ */
13
+ IpamId?: string;
14
+ /**
15
+ * <p>The scope ID for an IPAM resource.</p>
16
+ */
17
+ IpamScopeId?: string;
18
+ /**
19
+ * <p>The pool ID for an IPAM resource.</p>
20
+ */
21
+ IpamPoolId?: string;
22
+ /**
23
+ * <p>The Amazon Web Services Region for an IPAM resource.</p>
24
+ */
25
+ ResourceRegion?: string;
26
+ /**
27
+ * <p>The Amazon Web Services account number of the owner of an IPAM resource.</p>
28
+ */
29
+ ResourceOwnerId?: string;
30
+ /**
31
+ * <p>The ID of an IPAM resource.</p>
32
+ */
33
+ ResourceId?: string;
34
+ /**
35
+ * <p>The name of an IPAM resource.</p>
36
+ */
37
+ ResourceName?: string;
38
+ /**
39
+ * <p>The CIDR for an IPAM resource.</p>
40
+ */
41
+ ResourceCidr?: string;
42
+ /**
43
+ * <p>The type of IPAM resource.</p>
44
+ */
45
+ ResourceType?: IpamResourceType | string;
46
+ /**
47
+ * <p>The tags for an IPAM resource.</p>
48
+ */
49
+ ResourceTags?: IpamResourceTag[];
50
+ /**
51
+ * <p>The IP address space in the IPAM pool that is allocated to this resource. To convert the decimal to a percentage, multiply the decimal by 100.</p>
52
+ */
53
+ IpUsage?: number;
54
+ /**
55
+ * <p>The compliance status of the IPAM resource. For more information on compliance statuses, see <a href="/vpc/latest/ipam/monitor-cidr-compliance-ipam.html">Monitor CIDR usage by resource</a> in the <i>Amazon VPC IPAM User Guide</i>.</p>
56
+ */
57
+ ComplianceStatus?: IpamComplianceStatus | string;
58
+ /**
59
+ * <p>The management state of the resource. For more information about management states, see <a href="/vpc/latest/ipam/monitor-cidr-compliance-ipam.html">Monitor CIDR usage by resource</a> in the <i>Amazon VPC IPAM User Guide</i>.</p>
60
+ */
61
+ ManagementState?: IpamManagementState | string;
62
+ /**
63
+ * <p>The overlap status of an IPAM resource. The overlap status tells you if the CIDR for a resource overlaps with another CIDR in the scope. For more information on overlap statuses, see <a href="/vpc/latest/ipam/monitor-cidr-compliance-ipam.html">Monitor CIDR usage by resource</a> in the <i>Amazon VPC IPAM User Guide</i>.</p>
64
+ */
65
+ OverlapStatus?: IpamOverlapStatus | string;
66
+ /**
67
+ * <p>The ID of a VPC.</p>
68
+ */
69
+ VpcId?: string;
70
+ }
71
+ export declare namespace IpamResourceCidr {
72
+ /**
73
+ * @internal
74
+ */
75
+ const filterSensitiveLog: (obj: IpamResourceCidr) => any;
76
+ }
77
+ export interface GetIpamResourceCidrsResult {
78
+ /**
79
+ * <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>
80
+ */
81
+ NextToken?: string;
82
+ /**
83
+ * <p>The resource CIDRs.</p>
84
+ */
85
+ IpamResourceCidrs?: IpamResourceCidr[];
86
+ }
87
+ export declare namespace GetIpamResourceCidrsResult {
88
+ /**
89
+ * @internal
90
+ */
91
+ const filterSensitiveLog: (obj: GetIpamResourceCidrsResult) => any;
92
+ }
93
+ export interface GetLaunchTemplateDataRequest {
94
+ /**
95
+ * <p>Checks whether you have the required permissions for the action, without actually
96
+ * making the request, and provides an error response. If you have the required
97
+ * permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is
98
+ * <code>UnauthorizedOperation</code>.</p>
99
+ */
100
+ DryRun?: boolean;
101
+ /**
102
+ * <p>The ID of the instance.</p>
103
+ */
104
+ InstanceId: string | undefined;
105
+ }
106
+ export declare namespace GetLaunchTemplateDataRequest {
107
+ /**
108
+ * @internal
109
+ */
110
+ const filterSensitiveLog: (obj: GetLaunchTemplateDataRequest) => any;
111
+ }
6
112
  export interface GetLaunchTemplateDataResult {
7
113
  /**
8
114
  * <p>The instance data.</p>
@@ -1363,7 +1469,7 @@ export declare namespace ImportImageLicenseConfigurationRequest {
1363
1469
  export interface ImportImageRequest {
1364
1470
  /**
1365
1471
  * <p>The architecture of the virtual machine.</p>
1366
- * <p>Valid values: <code>i386</code> | <code>x86_64</code> | <code>arm64</code>
1472
+ * <p>Valid values: <code>i386</code> | <code>x86_64</code>
1367
1473
  * </p>
1368
1474
  */
1369
1475
  Architecture?: string;
@@ -2684,11 +2790,11 @@ export declare namespace ModifyIdFormatRequest {
2684
2790
  */
2685
2791
  export interface LaunchPermissionModifications {
2686
2792
  /**
2687
- * <p>The Amazon Web Services account ID to add to the list of launch permissions for the AMI.</p>
2793
+ * <p>The Amazon Web Services account ID, organization ARN, or OU ARN to add to the list of launch permissions for the AMI.</p>
2688
2794
  */
2689
2795
  Add?: LaunchPermission[];
2690
2796
  /**
2691
- * <p>The Amazon Web Services account ID to remove from the list of launch permissions for the AMI.</p>
2797
+ * <p>The Amazon Web Services account ID, organization ARN, or OU ARN to remove from the list of launch permissions for the AMI.</p>
2692
2798
  */
2693
2799
  Remove?: LaunchPermission[];
2694
2800
  }
@@ -3263,7 +3369,7 @@ export interface ModifyInstanceMetadataOptionsRequest {
3263
3369
  HttpPutResponseHopLimit?: number;
3264
3370
  /**
3265
3371
  * <p>Enables or disables the HTTP metadata endpoint on your instances. If
3266
- * the parameter is not specified, the existing state is maintained.</p>
3372
+ * this parameter is not specified, the existing state is maintained.</p>
3267
3373
  * <p>If you specify a value of <code>disabled</code>, you cannot access your
3268
3374
  * instance metadata.</p>
3269
3375
  */
@@ -3279,6 +3385,15 @@ export interface ModifyInstanceMetadataOptionsRequest {
3279
3385
  * applies only if you have enabled the HTTP metadata endpoint.</p>
3280
3386
  */
3281
3387
  HttpProtocolIpv6?: InstanceMetadataProtocolState | string;
3388
+ /**
3389
+ * <p>Set to <code>enabled</code> to allow access to instance tags from the instance
3390
+ * metadata. Set to <code>disabled</code> to turn off access to instance tags from the
3391
+ * instance metadata. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#work-with-tags-in-IMDS">Work with
3392
+ * instance tags using the instance metadata</a>.</p>
3393
+ * <p>Default: <code>disabled</code>
3394
+ * </p>
3395
+ */
3396
+ InstanceMetadataTags?: InstanceMetadataTagsState | string;
3282
3397
  }
3283
3398
  export declare namespace ModifyInstanceMetadataOptionsRequest {
3284
3399
  /**
@@ -4870,6 +4985,42 @@ export declare namespace ModifyVpcEndpointServiceConfigurationResult {
4870
4985
  */
4871
4986
  const filterSensitiveLog: (obj: ModifyVpcEndpointServiceConfigurationResult) => any;
4872
4987
  }
4988
+ export interface ModifyVpcEndpointServicePayerResponsibilityRequest {
4989
+ /**
4990
+ * <p>Checks whether you have the required permissions for the action, without actually making the request,
4991
+ * and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
4992
+ * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
4993
+ */
4994
+ DryRun?: boolean;
4995
+ /**
4996
+ * <p>The ID of the service.</p>
4997
+ */
4998
+ ServiceId: string | undefined;
4999
+ /**
5000
+ * <p>The entity that is responsible for the endpoint costs. The default is the endpoint owner.
5001
+ * If you set the payer responsibility to the service owner, you cannot set it back to the
5002
+ * endpoint owner.</p>
5003
+ */
5004
+ PayerResponsibility: PayerResponsibility | string | undefined;
5005
+ }
5006
+ export declare namespace ModifyVpcEndpointServicePayerResponsibilityRequest {
5007
+ /**
5008
+ * @internal
5009
+ */
5010
+ const filterSensitiveLog: (obj: ModifyVpcEndpointServicePayerResponsibilityRequest) => any;
5011
+ }
5012
+ export interface ModifyVpcEndpointServicePayerResponsibilityResult {
5013
+ /**
5014
+ * <p>Returns <code>true</code> if the request succeeds; otherwise, it returns an error.</p>
5015
+ */
5016
+ ReturnValue?: boolean;
5017
+ }
5018
+ export declare namespace ModifyVpcEndpointServicePayerResponsibilityResult {
5019
+ /**
5020
+ * @internal
5021
+ */
5022
+ const filterSensitiveLog: (obj: ModifyVpcEndpointServicePayerResponsibilityResult) => any;
5023
+ }
4873
5024
  export interface ModifyVpcEndpointServicePermissionsRequest {
4874
5025
  /**
4875
5026
  * <p>Checks whether you have the required permissions for the action, without actually making the request,
@@ -5275,7 +5426,7 @@ export interface ModifyVpnTunnelOptionsSpecification {
5275
5426
  ReplayWindowSize?: number;
5276
5427
  /**
5277
5428
  * <p>The number of seconds after which a DPD timeout occurs.</p>
5278
- * <p>Constraints: A value between 0 and 30.</p>
5429
+ * <p>Constraints: A value greater than or equal to 30.</p>
5279
5430
  * <p>Default: <code>30</code>
5280
5431
  * </p>
5281
5432
  */
@@ -5501,15 +5652,15 @@ export interface MoveByoipCidrToIpamRequest {
5501
5652
  /**
5502
5653
  * <p>The BYOIP CIDR.</p>
5503
5654
  */
5504
- Cidr?: string;
5655
+ Cidr: string | undefined;
5505
5656
  /**
5506
5657
  * <p>The IPAM pool ID.</p>
5507
5658
  */
5508
- IpamPoolId?: string;
5659
+ IpamPoolId: string | undefined;
5509
5660
  /**
5510
5661
  * <p>The Amazon Web Services account ID of the owner of the IPAM pool.</p>
5511
5662
  */
5512
- IpamPoolOwner?: string;
5663
+ IpamPoolOwner: string | undefined;
5513
5664
  }
5514
5665
  export declare namespace MoveByoipCidrToIpamRequest {
5515
5666
  /**
@@ -7671,135 +7822,3 @@ export declare namespace CpuOptionsRequest {
7671
7822
  */
7672
7823
  const filterSensitiveLog: (obj: CpuOptionsRequest) => any;
7673
7824
  }
7674
- /**
7675
- * <p>
7676
- * Describes an elastic inference accelerator.
7677
- * </p>
7678
- */
7679
- export interface ElasticInferenceAccelerator {
7680
- /**
7681
- * <p>
7682
- * The type of elastic inference accelerator. The possible values are <code>eia1.medium</code>, <code>eia1.large</code>, <code>eia1.xlarge</code>, <code>eia2.medium</code>, <code>eia2.large</code>, and <code>eia2.xlarge</code>.
7683
- * </p>
7684
- */
7685
- Type: string | undefined;
7686
- /**
7687
- * <p>
7688
- * The number of elastic inference accelerators to attach to the instance.
7689
- * </p>
7690
- * <p>Default: 1</p>
7691
- */
7692
- Count?: number;
7693
- }
7694
- export declare namespace ElasticInferenceAccelerator {
7695
- /**
7696
- * @internal
7697
- */
7698
- const filterSensitiveLog: (obj: ElasticInferenceAccelerator) => any;
7699
- }
7700
- /**
7701
- * <p>Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves. For more information,
7702
- * see <a href="https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html">
7703
- * What is Amazon Web Services Nitro Enclaves?</a> in the <i>Amazon Web Services Nitro Enclaves User Guide</i>.</p>
7704
- */
7705
- export interface EnclaveOptionsRequest {
7706
- /**
7707
- * <p>To enable the instance for Amazon Web Services Nitro Enclaves, set this parameter to <code>true</code>.</p>
7708
- */
7709
- Enabled?: boolean;
7710
- }
7711
- export declare namespace EnclaveOptionsRequest {
7712
- /**
7713
- * @internal
7714
- */
7715
- const filterSensitiveLog: (obj: EnclaveOptionsRequest) => any;
7716
- }
7717
- /**
7718
- * <p>Indicates whether your instance is configured for hibernation. This parameter is valid
7719
- * only if the instance meets the <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites">hibernation
7720
- * prerequisites</a>. For
7721
- * more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html">Hibernate your instance</a> in the
7722
- * <i>Amazon EC2 User Guide</i>.</p>
7723
- */
7724
- export interface HibernationOptionsRequest {
7725
- /**
7726
- * <p>If you set this parameter to <code>true</code>, your instance is enabled for
7727
- * hibernation.</p>
7728
- * <p>Default: <code>false</code>
7729
- * </p>
7730
- */
7731
- Configured?: boolean;
7732
- }
7733
- export declare namespace HibernationOptionsRequest {
7734
- /**
7735
- * @internal
7736
- */
7737
- const filterSensitiveLog: (obj: HibernationOptionsRequest) => any;
7738
- }
7739
- /**
7740
- * <p>The options for Spot Instances.</p>
7741
- */
7742
- export interface SpotMarketOptions {
7743
- /**
7744
- * <p>The maximum hourly price you're willing to pay for the Spot Instances. The default is
7745
- * the On-Demand price.</p>
7746
- */
7747
- MaxPrice?: string;
7748
- /**
7749
- * <p>The Spot Instance request type. For <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances">RunInstances</a>, persistent Spot
7750
- * Instance requests are only supported when the instance interruption behavior is either <code>hibernate</code> or
7751
- * <code>stop</code>.</p>
7752
- */
7753
- SpotInstanceType?: SpotInstanceType | string;
7754
- /**
7755
- * <p>Deprecated.</p>
7756
- */
7757
- BlockDurationMinutes?: number;
7758
- /**
7759
- * <p>The end date of the request, in UTC format
7760
- * (<i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>HH</i>:<i>MM</i>:<i>SS</i>Z).
7761
- * Supported only for persistent requests.</p>
7762
- * <ul>
7763
- * <li>
7764
- * <p>For a persistent request, the request remains active until the
7765
- * <code>ValidUntil</code> date and time is reached. Otherwise, the request
7766
- * remains active until you cancel it.</p>
7767
- * </li>
7768
- * <li>
7769
- * <p>For a one-time request, <code>ValidUntil</code> is not supported. The request
7770
- * remains active until all instances launch or you cancel the request.</p>
7771
- * </li>
7772
- * </ul>
7773
- */
7774
- ValidUntil?: Date;
7775
- /**
7776
- * <p>The behavior when a Spot Instance is interrupted. The default is
7777
- * <code>terminate</code>.</p>
7778
- */
7779
- InstanceInterruptionBehavior?: InstanceInterruptionBehavior | string;
7780
- }
7781
- export declare namespace SpotMarketOptions {
7782
- /**
7783
- * @internal
7784
- */
7785
- const filterSensitiveLog: (obj: SpotMarketOptions) => any;
7786
- }
7787
- /**
7788
- * <p>Describes the market (purchasing) option for the instances.</p>
7789
- */
7790
- export interface InstanceMarketOptionsRequest {
7791
- /**
7792
- * <p>The market type.</p>
7793
- */
7794
- MarketType?: MarketType | string;
7795
- /**
7796
- * <p>The options for Spot Instances.</p>
7797
- */
7798
- SpotOptions?: SpotMarketOptions;
7799
- }
7800
- export declare namespace InstanceMarketOptionsRequest {
7801
- /**
7802
- * @internal
7803
- */
7804
- const filterSensitiveLog: (obj: InstanceMarketOptionsRequest) => any;
7805
- }
@@ -1,9 +1,141 @@
1
1
  import { _InstanceType, ByoipCidr, HostnameType, IamInstanceProfileSpecification, IpPermission, TagSpecification, TransitGatewayAttachmentResourceType } from "./models_0";
2
- import { BlockDeviceMapping, CreditSpecificationRequest, ElasticGpuSpecification, InstanceIpv6Address, LocalGatewayRoute, Placement, ShutdownBehavior } from "./models_1";
2
+ import { BlockDeviceMapping, CreditSpecificationRequest, ElasticGpuSpecification, InstanceInterruptionBehavior, InstanceIpv6Address, LocalGatewayRoute, MarketType, Placement, ShutdownBehavior, SpotInstanceType } from "./models_1";
3
3
  import { ClientVpnConnectionStatus, Filter, TransitGatewayRoute } from "./models_2";
4
- import { HttpTokensState, InstanceMetadataEndpointState, InstanceMetadataProtocolState, InstanceState, NetworkInsightsAccessScopeAnalysis, NetworkInsightsAnalysis } from "./models_3";
4
+ import { HttpTokensState, InstanceMetadataEndpointState, InstanceMetadataProtocolState, InstanceMetadataTagsState, InstanceState, NetworkInsightsAccessScopeAnalysis, NetworkInsightsAnalysis } from "./models_3";
5
5
  import { InstanceNetworkInterfaceSpecification, RunInstancesMonitoringEnabled } from "./models_4";
6
- import { CapacityReservationSpecification, CpuOptionsRequest, ElasticInferenceAccelerator, EnclaveOptionsRequest, HibernationOptionsRequest, InstanceMarketOptionsRequest, InstanceMonitoring } from "./models_5";
6
+ import { CapacityReservationSpecification, CpuOptionsRequest, InstanceMonitoring } from "./models_5";
7
+ /**
8
+ * <p>
9
+ * Describes an elastic inference accelerator.
10
+ * </p>
11
+ */
12
+ export interface ElasticInferenceAccelerator {
13
+ /**
14
+ * <p>
15
+ * The type of elastic inference accelerator. The possible values are <code>eia1.medium</code>, <code>eia1.large</code>, <code>eia1.xlarge</code>, <code>eia2.medium</code>, <code>eia2.large</code>, and <code>eia2.xlarge</code>.
16
+ * </p>
17
+ */
18
+ Type: string | undefined;
19
+ /**
20
+ * <p>
21
+ * The number of elastic inference accelerators to attach to the instance.
22
+ * </p>
23
+ * <p>Default: 1</p>
24
+ */
25
+ Count?: number;
26
+ }
27
+ export declare namespace ElasticInferenceAccelerator {
28
+ /**
29
+ * @internal
30
+ */
31
+ const filterSensitiveLog: (obj: ElasticInferenceAccelerator) => any;
32
+ }
33
+ /**
34
+ * <p>Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves. For more information,
35
+ * see <a href="https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html">
36
+ * What is Amazon Web Services Nitro Enclaves?</a> in the <i>Amazon Web Services Nitro Enclaves User Guide</i>.</p>
37
+ */
38
+ export interface EnclaveOptionsRequest {
39
+ /**
40
+ * <p>To enable the instance for Amazon Web Services Nitro Enclaves, set this parameter to <code>true</code>.</p>
41
+ */
42
+ Enabled?: boolean;
43
+ }
44
+ export declare namespace EnclaveOptionsRequest {
45
+ /**
46
+ * @internal
47
+ */
48
+ const filterSensitiveLog: (obj: EnclaveOptionsRequest) => any;
49
+ }
50
+ /**
51
+ * <p>Indicates whether your instance is configured for hibernation. This parameter is valid
52
+ * only if the instance meets the <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites">hibernation
53
+ * prerequisites</a>. For
54
+ * more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html">Hibernate your instance</a> in the
55
+ * <i>Amazon EC2 User Guide</i>.</p>
56
+ */
57
+ export interface HibernationOptionsRequest {
58
+ /**
59
+ * <p>If you set this parameter to <code>true</code>, your instance is enabled for
60
+ * hibernation.</p>
61
+ * <p>Default: <code>false</code>
62
+ * </p>
63
+ */
64
+ Configured?: boolean;
65
+ }
66
+ export declare namespace HibernationOptionsRequest {
67
+ /**
68
+ * @internal
69
+ */
70
+ const filterSensitiveLog: (obj: HibernationOptionsRequest) => any;
71
+ }
72
+ /**
73
+ * <p>The options for Spot Instances.</p>
74
+ */
75
+ export interface SpotMarketOptions {
76
+ /**
77
+ * <p>The maximum hourly price you're willing to pay for the Spot Instances. The default is
78
+ * the On-Demand price.</p>
79
+ */
80
+ MaxPrice?: string;
81
+ /**
82
+ * <p>The Spot Instance request type. For <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances">RunInstances</a>, persistent Spot
83
+ * Instance requests are only supported when the instance interruption behavior is either <code>hibernate</code> or
84
+ * <code>stop</code>.</p>
85
+ */
86
+ SpotInstanceType?: SpotInstanceType | string;
87
+ /**
88
+ * <p>Deprecated.</p>
89
+ */
90
+ BlockDurationMinutes?: number;
91
+ /**
92
+ * <p>The end date of the request, in UTC format
93
+ * (<i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>HH</i>:<i>MM</i>:<i>SS</i>Z).
94
+ * Supported only for persistent requests.</p>
95
+ * <ul>
96
+ * <li>
97
+ * <p>For a persistent request, the request remains active until the
98
+ * <code>ValidUntil</code> date and time is reached. Otherwise, the request
99
+ * remains active until you cancel it.</p>
100
+ * </li>
101
+ * <li>
102
+ * <p>For a one-time request, <code>ValidUntil</code> is not supported. The request
103
+ * remains active until all instances launch or you cancel the request.</p>
104
+ * </li>
105
+ * </ul>
106
+ */
107
+ ValidUntil?: Date;
108
+ /**
109
+ * <p>The behavior when a Spot Instance is interrupted. The default is
110
+ * <code>terminate</code>.</p>
111
+ */
112
+ InstanceInterruptionBehavior?: InstanceInterruptionBehavior | string;
113
+ }
114
+ export declare namespace SpotMarketOptions {
115
+ /**
116
+ * @internal
117
+ */
118
+ const filterSensitiveLog: (obj: SpotMarketOptions) => any;
119
+ }
120
+ /**
121
+ * <p>Describes the market (purchasing) option for the instances.</p>
122
+ */
123
+ export interface InstanceMarketOptionsRequest {
124
+ /**
125
+ * <p>The market type.</p>
126
+ */
127
+ MarketType?: MarketType | string;
128
+ /**
129
+ * <p>The options for Spot Instances.</p>
130
+ */
131
+ SpotOptions?: SpotMarketOptions;
132
+ }
133
+ export declare namespace InstanceMarketOptionsRequest {
134
+ /**
135
+ * @internal
136
+ */
137
+ const filterSensitiveLog: (obj: InstanceMarketOptionsRequest) => any;
138
+ }
7
139
  /**
8
140
  * <p>The launch template to use. You must specify either the launch template ID or
9
141
  * launch template name in the request, but not both.</p>
@@ -49,8 +181,7 @@ export declare namespace LicenseConfigurationRequest {
49
181
  */
50
182
  export interface InstanceMetadataOptionsRequest {
51
183
  /**
52
- * <p>The state of token usage for your instance metadata requests. If the parameter is not
53
- * specified in the request, the default state is <code>optional</code>.</p>
184
+ * <p>The state of token usage for your instance metadata requests.</p>
54
185
  * <p>If the state is <code>optional</code>, you can choose to retrieve instance metadata
55
186
  * with or without a signed token header on your request. If you retrieve the IAM role
56
187
  * credentials without a token, the version 1.0 role credentials are returned. If you
@@ -60,6 +191,8 @@ export interface InstanceMetadataOptionsRequest {
60
191
  * instance metadata retrieval requests. In this state, retrieving the IAM role credentials
61
192
  * always returns the version 2.0 credentials; the version 1.0 credentials are not
62
193
  * available.</p>
194
+ * <p>Default: <code>optional</code>
195
+ * </p>
63
196
  */
64
197
  HttpTokens?: HttpTokensState | string;
65
198
  /**
@@ -70,16 +203,24 @@ export interface InstanceMetadataOptionsRequest {
70
203
  */
71
204
  HttpPutResponseHopLimit?: number;
72
205
  /**
73
- * <p>Enables or disables the HTTP metadata endpoint on your instances. If the parameter is not
74
- * specified, the default state is <code>enabled</code>.</p>
75
- * <p>If you specify a value of <code>disabled</code>, you will not be able to access your
206
+ * <p>Enables or disables the HTTP metadata endpoint on your instances.</p>
207
+ * <p>If you specify a value of <code>disabled</code>, you cannot access your
76
208
  * instance metadata.</p>
209
+ * <p>Default: <code>enabled</code>
210
+ * </p>
77
211
  */
78
212
  HttpEndpoint?: InstanceMetadataEndpointState | string;
79
213
  /**
80
214
  * <p>Enables or disables the IPv6 endpoint for the instance metadata service.</p>
81
215
  */
82
216
  HttpProtocolIpv6?: InstanceMetadataProtocolState | string;
217
+ /**
218
+ * <p>Set to <code>enabled</code> to allow access to instance tags from the instance metadata. Set to <code>disabled</code> to turn off
219
+ * access to instance tags from the instance metadata. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#work-with-tags-in-IMDS">Work with instance tags using the instance metadata</a>.</p>
220
+ * <p>Default: <code>disabled</code>
221
+ * </p>
222
+ */
223
+ InstanceMetadataTags?: InstanceMetadataTagsState | string;
83
224
  }
84
225
  export declare namespace InstanceMetadataOptionsRequest {
85
226
  /**
@@ -444,6 +444,7 @@ import { ModifyVpcAttributeCommandInput, ModifyVpcAttributeCommandOutput } from
444
444
  import { ModifyVpcEndpointCommandInput, ModifyVpcEndpointCommandOutput } from "../commands/ModifyVpcEndpointCommand";
445
445
  import { ModifyVpcEndpointConnectionNotificationCommandInput, ModifyVpcEndpointConnectionNotificationCommandOutput } from "../commands/ModifyVpcEndpointConnectionNotificationCommand";
446
446
  import { ModifyVpcEndpointServiceConfigurationCommandInput, ModifyVpcEndpointServiceConfigurationCommandOutput } from "../commands/ModifyVpcEndpointServiceConfigurationCommand";
447
+ import { ModifyVpcEndpointServicePayerResponsibilityCommandInput, ModifyVpcEndpointServicePayerResponsibilityCommandOutput } from "../commands/ModifyVpcEndpointServicePayerResponsibilityCommand";
447
448
  import { ModifyVpcEndpointServicePermissionsCommandInput, ModifyVpcEndpointServicePermissionsCommandOutput } from "../commands/ModifyVpcEndpointServicePermissionsCommand";
448
449
  import { ModifyVpcPeeringConnectionOptionsCommandInput, ModifyVpcPeeringConnectionOptionsCommandOutput } from "../commands/ModifyVpcPeeringConnectionOptionsCommand";
449
450
  import { ModifyVpcTenancyCommandInput, ModifyVpcTenancyCommandOutput } from "../commands/ModifyVpcTenancyCommand";
@@ -959,6 +960,7 @@ export declare const serializeAws_ec2ModifyVpcAttributeCommand: (input: ModifyVp
959
960
  export declare const serializeAws_ec2ModifyVpcEndpointCommand: (input: ModifyVpcEndpointCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
960
961
  export declare const serializeAws_ec2ModifyVpcEndpointConnectionNotificationCommand: (input: ModifyVpcEndpointConnectionNotificationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
961
962
  export declare const serializeAws_ec2ModifyVpcEndpointServiceConfigurationCommand: (input: ModifyVpcEndpointServiceConfigurationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
963
+ export declare const serializeAws_ec2ModifyVpcEndpointServicePayerResponsibilityCommand: (input: ModifyVpcEndpointServicePayerResponsibilityCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
962
964
  export declare const serializeAws_ec2ModifyVpcEndpointServicePermissionsCommand: (input: ModifyVpcEndpointServicePermissionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
963
965
  export declare const serializeAws_ec2ModifyVpcPeeringConnectionOptionsCommand: (input: ModifyVpcPeeringConnectionOptionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
964
966
  export declare const serializeAws_ec2ModifyVpcTenancyCommand: (input: ModifyVpcTenancyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -1474,6 +1476,7 @@ export declare const deserializeAws_ec2ModifyVpcAttributeCommand: (output: __Htt
1474
1476
  export declare const deserializeAws_ec2ModifyVpcEndpointCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ModifyVpcEndpointCommandOutput>;
1475
1477
  export declare const deserializeAws_ec2ModifyVpcEndpointConnectionNotificationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ModifyVpcEndpointConnectionNotificationCommandOutput>;
1476
1478
  export declare const deserializeAws_ec2ModifyVpcEndpointServiceConfigurationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ModifyVpcEndpointServiceConfigurationCommandOutput>;
1479
+ export declare const deserializeAws_ec2ModifyVpcEndpointServicePayerResponsibilityCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ModifyVpcEndpointServicePayerResponsibilityCommandOutput>;
1477
1480
  export declare const deserializeAws_ec2ModifyVpcEndpointServicePermissionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ModifyVpcEndpointServicePermissionsCommandOutput>;
1478
1481
  export declare const deserializeAws_ec2ModifyVpcPeeringConnectionOptionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ModifyVpcPeeringConnectionOptionsCommandOutput>;
1479
1482
  export declare const deserializeAws_ec2ModifyVpcTenancyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ModifyVpcTenancyCommandOutput>;
@@ -1,10 +1,11 @@
1
- import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { EC2ClientConfig } from "./EC2Client";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: EC2ClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
@@ -12,7 +13,7 @@ export declare const getRuntimeConfig: (config: EC2ClientConfig) => {
12
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
15
  region: string | import("@aws-sdk/types").Provider<any>;
15
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
16
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
16
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
18
  sha256: import("@aws-sdk/types").HashConstructor;
18
19
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -1,18 +1,19 @@
1
- import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
1
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
2
2
  import { EC2ClientConfig } from "./EC2Client";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: EC2ClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
11
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
12
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
12
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
15
  region: string | import("@aws-sdk/types").Provider<string>;
15
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
16
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
16
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
18
  sha256: import("@aws-sdk/types").HashConstructor;
18
19
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -25,6 +25,7 @@ export declare const getRuntimeConfig: (config: EC2ClientConfig) => {
25
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
26
26
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
27
27
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
28
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
28
29
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
29
30
  tls?: boolean | undefined;
30
31
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;