@aws-sdk/client-ec2 3.760.0 → 3.766.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 (37) hide show
  1. package/dist-cjs/index.js +90 -74
  2. package/dist-es/models/models_0.js +4 -4
  3. package/dist-es/models/models_1.js +4 -0
  4. package/dist-es/protocols/Aws_ec2.js +74 -64
  5. package/dist-types/commands/AssociateInstanceEventWindowCommand.d.ts +2 -2
  6. package/dist-types/commands/CreateLocalGatewayRouteCommand.d.ts +2 -1
  7. package/dist-types/commands/DeregisterInstanceEventNotificationAttributesCommand.d.ts +2 -2
  8. package/dist-types/commands/DescribeAddressesCommand.d.ts +1 -0
  9. package/dist-types/commands/DescribeAvailabilityZonesCommand.d.ts +1 -0
  10. package/dist-types/commands/DescribeInstanceEventNotificationAttributesCommand.d.ts +2 -2
  11. package/dist-types/commands/DisassociateSubnetCidrBlockCommand.d.ts +2 -1
  12. package/dist-types/commands/ModifyInstanceCapacityReservationAttributesCommand.d.ts +3 -1
  13. package/dist-types/commands/RegisterInstanceEventNotificationAttributesCommand.d.ts +3 -2
  14. package/dist-types/commands/StopInstancesCommand.d.ts +1 -2
  15. package/dist-types/models/models_0.d.ts +25 -14
  16. package/dist-types/models/models_1.d.ts +22 -48
  17. package/dist-types/models/models_2.d.ts +13 -40
  18. package/dist-types/models/models_3.d.ts +61 -23
  19. package/dist-types/models/models_4.d.ts +29 -31
  20. package/dist-types/models/models_5.d.ts +19 -18
  21. package/dist-types/models/models_6.d.ts +18 -13
  22. package/dist-types/models/models_7.d.ts +18 -43
  23. package/dist-types/models/models_8.d.ts +37 -0
  24. package/dist-types/ts3.4/commands/CreateLocalGatewayRouteCommand.d.ts +2 -4
  25. package/dist-types/ts3.4/commands/DisassociateSubnetCidrBlockCommand.d.ts +2 -4
  26. package/dist-types/ts3.4/commands/ModifyInstanceCapacityReservationAttributesCommand.d.ts +2 -4
  27. package/dist-types/ts3.4/commands/StopInstancesCommand.d.ts +1 -2
  28. package/dist-types/ts3.4/models/models_0.d.ts +7 -6
  29. package/dist-types/ts3.4/models/models_1.d.ts +6 -4
  30. package/dist-types/ts3.4/models/models_2.d.ts +4 -8
  31. package/dist-types/ts3.4/models/models_3.d.ts +10 -4
  32. package/dist-types/ts3.4/models/models_4.d.ts +3 -5
  33. package/dist-types/ts3.4/models/models_5.d.ts +6 -7
  34. package/dist-types/ts3.4/models/models_6.d.ts +6 -4
  35. package/dist-types/ts3.4/models/models_7.d.ts +3 -6
  36. package/dist-types/ts3.4/models/models_8.d.ts +6 -0
  37. package/package.json +1 -1
@@ -1,6 +1,43 @@
1
1
  import { ByoipCidr, IpPermission, NatGatewayAddress } from "./models_0";
2
2
  import { ClientVpnConnectionStatus } from "./models_3";
3
3
  import { InstanceMonitoring, InstanceStateChange } from "./models_7";
4
+ /**
5
+ * @public
6
+ */
7
+ export interface StopInstancesRequest {
8
+ /**
9
+ * <p>The IDs of the instances.</p>
10
+ * @public
11
+ */
12
+ InstanceIds: string[] | undefined;
13
+ /**
14
+ * <p>Hibernates the instance if the instance was enabled for hibernation at launch. If the
15
+ * instance cannot hibernate successfully, a normal shutdown occurs. For more information,
16
+ * see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html">Hibernate
17
+ * your instance</a> in the <i>Amazon EC2 User Guide</i>.</p>
18
+ * <p> Default: <code>false</code>
19
+ * </p>
20
+ * @public
21
+ */
22
+ Hibernate?: boolean | undefined;
23
+ /**
24
+ * <p>Checks whether you have the required permissions for the operation, without actually making the
25
+ * request, and provides an error response. If you have the required permissions, the error response is
26
+ * <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
27
+ * @public
28
+ */
29
+ DryRun?: boolean | undefined;
30
+ /**
31
+ * <p>Forces the instances to stop. The instances do not have an opportunity to flush file
32
+ * system caches or file system metadata. If you use this option, you must perform file
33
+ * system check and repair procedures. This option is not recommended for Windows
34
+ * instances.</p>
35
+ * <p>Default: <code>false</code>
36
+ * </p>
37
+ * @public
38
+ */
39
+ Force?: boolean | undefined;
40
+ }
4
41
  /**
5
42
  * @public
6
43
  */
@@ -5,10 +5,8 @@ import {
5
5
  ServiceInputTypes,
6
6
  ServiceOutputTypes,
7
7
  } from "../EC2Client";
8
- import {
9
- CreateLocalGatewayRouteRequest,
10
- CreateLocalGatewayRouteResult,
11
- } from "../models/models_1";
8
+ import { CreateLocalGatewayRouteRequest } from "../models/models_1";
9
+ import { CreateLocalGatewayRouteResult } from "../models/models_2";
12
10
  export { __MetadataBearer };
13
11
  export { $Command };
14
12
  export interface CreateLocalGatewayRouteCommandInput
@@ -5,10 +5,8 @@ import {
5
5
  ServiceInputTypes,
6
6
  ServiceOutputTypes,
7
7
  } from "../EC2Client";
8
- import {
9
- DisassociateSubnetCidrBlockRequest,
10
- DisassociateSubnetCidrBlockResult,
11
- } from "../models/models_5";
8
+ import { DisassociateSubnetCidrBlockRequest } from "../models/models_5";
9
+ import { DisassociateSubnetCidrBlockResult } from "../models/models_6";
12
10
  export { __MetadataBearer };
13
11
  export { $Command };
14
12
  export interface DisassociateSubnetCidrBlockCommandInput
@@ -5,10 +5,8 @@ import {
5
5
  ServiceInputTypes,
6
6
  ServiceOutputTypes,
7
7
  } from "../EC2Client";
8
- import {
9
- ModifyInstanceCapacityReservationAttributesRequest,
10
- ModifyInstanceCapacityReservationAttributesResult,
11
- } from "../models/models_6";
8
+ import { ModifyInstanceCapacityReservationAttributesRequest } from "../models/models_6";
9
+ import { ModifyInstanceCapacityReservationAttributesResult } from "../models/models_7";
12
10
  export { __MetadataBearer };
13
11
  export { $Command };
14
12
  export interface ModifyInstanceCapacityReservationAttributesCommandInput
@@ -5,8 +5,7 @@ import {
5
5
  ServiceInputTypes,
6
6
  ServiceOutputTypes,
7
7
  } from "../EC2Client";
8
- import { StopInstancesRequest } from "../models/models_7";
9
- import { StopInstancesResult } from "../models/models_8";
8
+ import { StopInstancesRequest, StopInstancesResult } from "../models/models_8";
10
9
  export { __MetadataBearer };
11
10
  export { $Command };
12
11
  export interface StopInstancesCommandInput extends StopInstancesRequest {}
@@ -712,6 +712,12 @@ export declare const DomainType: {
712
712
  readonly vpc: "vpc";
713
713
  };
714
714
  export type DomainType = (typeof DomainType)[keyof typeof DomainType];
715
+ export declare const ServiceManaged: {
716
+ readonly alb: "alb";
717
+ readonly nlb: "nlb";
718
+ };
719
+ export type ServiceManaged =
720
+ (typeof ServiceManaged)[keyof typeof ServiceManaged];
715
721
  export interface Address {
716
722
  AllocationId?: string | undefined;
717
723
  AssociationId?: string | undefined;
@@ -725,6 +731,7 @@ export interface Address {
725
731
  CustomerOwnedIp?: string | undefined;
726
732
  CustomerOwnedIpv4Pool?: string | undefined;
727
733
  CarrierIp?: string | undefined;
734
+ ServiceManaged?: ServiceManaged | undefined;
728
735
  InstanceId?: string | undefined;
729
736
  PublicIp?: string | undefined;
730
737
  }
@@ -1984,12 +1991,6 @@ export interface CopySnapshotResult {
1984
1991
  Tags?: Tag[] | undefined;
1985
1992
  SnapshotId?: string | undefined;
1986
1993
  }
1987
- export declare const CapacityReservationDeliveryPreference: {
1988
- readonly FIXED: "fixed";
1989
- readonly INCREMENTAL: "incremental";
1990
- };
1991
- export type CapacityReservationDeliveryPreference =
1992
- (typeof CapacityReservationDeliveryPreference)[keyof typeof CapacityReservationDeliveryPreference];
1993
1994
  export declare const OidcOptionsFilterSensitiveLog: (obj: OidcOptions) => any;
1994
1995
  export declare const VerifiedAccessTrustProviderFilterSensitiveLog: (
1995
1996
  obj: VerifiedAccessTrustProvider
@@ -10,7 +10,6 @@ import {
10
10
  AddressFamily,
11
11
  AllocationType,
12
12
  AttachmentStatus,
13
- CapacityReservationDeliveryPreference,
14
13
  CapacityReservationFleetState,
15
14
  InstanceEventWindow,
16
15
  ResourceType,
@@ -22,6 +21,12 @@ import {
22
21
  VpcIpv6CidrBlockAssociation,
23
22
  WeekDay,
24
23
  } from "./models_0";
24
+ export declare const CapacityReservationDeliveryPreference: {
25
+ readonly FIXED: "fixed";
26
+ readonly INCREMENTAL: "incremental";
27
+ };
28
+ export type CapacityReservationDeliveryPreference =
29
+ (typeof CapacityReservationDeliveryPreference)[keyof typeof CapacityReservationDeliveryPreference];
25
30
  export declare const EndDateType: {
26
31
  readonly limited: "limited";
27
32
  readonly unlimited: "unlimited";
@@ -2985,9 +2990,6 @@ export interface LocalGatewayRoute {
2985
2990
  NetworkInterfaceId?: string | undefined;
2986
2991
  DestinationPrefixListId?: string | undefined;
2987
2992
  }
2988
- export interface CreateLocalGatewayRouteResult {
2989
- Route?: LocalGatewayRoute | undefined;
2990
- }
2991
2993
  export declare const KeyPairFilterSensitiveLog: (obj: KeyPair) => any;
2992
2994
  export declare const RequestLaunchTemplateDataFilterSensitiveLog: (
2993
2995
  obj: RequestLaunchTemplateData
@@ -35,6 +35,7 @@ import {
35
35
  InstanceIpv6Address,
36
36
  Ipv4PrefixSpecificationRequest,
37
37
  Ipv6PrefixSpecificationRequest,
38
+ LocalGatewayRoute,
38
39
  OperatorRequest,
39
40
  OperatorResponse,
40
41
  PrivateIpAddressSpecification,
@@ -43,6 +44,9 @@ import {
43
44
  VolumeType,
44
45
  Vpc,
45
46
  } from "./models_1";
47
+ export interface CreateLocalGatewayRouteResult {
48
+ Route?: LocalGatewayRoute | undefined;
49
+ }
46
50
  export declare const LocalGatewayRouteTableMode: {
47
51
  readonly coip: "coip";
48
52
  readonly direct_vpc_routing: "direct-vpc-routing";
@@ -2202,14 +2206,6 @@ export declare const TelemetryStatus: {
2202
2206
  };
2203
2207
  export type TelemetryStatus =
2204
2208
  (typeof TelemetryStatus)[keyof typeof TelemetryStatus];
2205
- export interface VgwTelemetry {
2206
- AcceptedRouteCount?: number | undefined;
2207
- LastStatusChange?: Date | undefined;
2208
- OutsideIpAddress?: string | undefined;
2209
- Status?: TelemetryStatus | undefined;
2210
- StatusMessage?: string | undefined;
2211
- CertificateArn?: string | undefined;
2212
- }
2213
2209
  export declare const CreateVerifiedAccessNativeApplicationOidcOptionsFilterSensitiveLog: (
2214
2210
  obj: CreateVerifiedAccessNativeApplicationOidcOptions
2215
2211
  ) => any;
@@ -57,6 +57,7 @@ import {
57
57
  LocalGatewayRouteTableVpcAssociation,
58
58
  ManagedPrefixList,
59
59
  SubnetCidrReservation,
60
+ TelemetryStatus,
60
61
  TransitGateway,
61
62
  TransitGatewayConnect,
62
63
  TransitGatewayConnectPeer,
@@ -68,12 +69,19 @@ import {
68
69
  TransitGatewayRouteTableAnnouncement,
69
70
  VerifiedAccessEndpoint,
70
71
  VerifiedAccessGroup,
71
- VgwTelemetry,
72
72
  VpcBlockPublicAccessExclusion,
73
73
  VpnConnectionOptions,
74
74
  VpnState,
75
75
  VpnStaticRoute,
76
76
  } from "./models_2";
77
+ export interface VgwTelemetry {
78
+ AcceptedRouteCount?: number | undefined;
79
+ LastStatusChange?: Date | undefined;
80
+ OutsideIpAddress?: string | undefined;
81
+ Status?: TelemetryStatus | undefined;
82
+ StatusMessage?: string | undefined;
83
+ CertificateArn?: string | undefined;
84
+ }
77
85
  export interface VpnConnection {
78
86
  Category?: string | undefined;
79
87
  TransitGatewayId?: string | undefined;
@@ -940,6 +948,7 @@ export interface AvailabilityZone {
940
948
  ZoneType?: string | undefined;
941
949
  ParentZoneName?: string | undefined;
942
950
  ParentZoneId?: string | undefined;
951
+ GroupLongName?: string | undefined;
943
952
  State?: AvailabilityZoneState | undefined;
944
953
  }
945
954
  export interface DescribeAvailabilityZonesResult {
@@ -1586,9 +1595,6 @@ export declare const FastLaunchResourceType: {
1586
1595
  };
1587
1596
  export type FastLaunchResourceType =
1588
1597
  (typeof FastLaunchResourceType)[keyof typeof FastLaunchResourceType];
1589
- export interface FastLaunchSnapshotConfigurationResponse {
1590
- TargetResourceCount?: number | undefined;
1591
- }
1592
1598
  export declare const VpnConnectionFilterSensitiveLog: (
1593
1599
  obj: VpnConnection
1594
1600
  ) => any;
@@ -77,12 +77,14 @@ import {
77
77
  Byoasn,
78
78
  FastLaunchLaunchTemplateSpecificationResponse,
79
79
  FastLaunchResourceType,
80
- FastLaunchSnapshotConfigurationResponse,
81
80
  Filter,
82
81
  FleetStateCode,
83
82
  IdFormat,
84
83
  InstanceTagNotificationAttribute,
85
84
  } from "./models_3";
85
+ export interface FastLaunchSnapshotConfigurationResponse {
86
+ TargetResourceCount?: number | undefined;
87
+ }
86
88
  export declare const FastLaunchStateCode: {
87
89
  readonly disabling: "disabling";
88
90
  readonly disabling_failed: "disabling-failed";
@@ -2124,10 +2126,6 @@ export interface DescribePrincipalIdFormatRequest {
2124
2126
  MaxResults?: number | undefined;
2125
2127
  NextToken?: string | undefined;
2126
2128
  }
2127
- export interface PrincipalIdFormat {
2128
- Arn?: string | undefined;
2129
- Statuses?: IdFormat[] | undefined;
2130
- }
2131
2129
  export declare const SnapshotDetailFilterSensitiveLog: (
2132
2130
  obj: SnapshotDetail
2133
2131
  ) => any;
@@ -19,7 +19,6 @@ import {
19
19
  ResourceType,
20
20
  SecurityGroupRule,
21
21
  SecurityGroupVpcAssociationState,
22
- SubnetIpv6CidrBlockAssociation,
23
22
  Tag,
24
23
  TagSpecification,
25
24
  TransitGatewayAssociationState,
@@ -91,8 +90,8 @@ import {
91
90
  import {
92
91
  FastLaunchLaunchTemplateSpecificationResponse,
93
92
  FastLaunchResourceType,
94
- FastLaunchSnapshotConfigurationResponse,
95
93
  Filter,
94
+ IdFormat,
96
95
  MetricType,
97
96
  StatisticType,
98
97
  VpnConnection,
@@ -101,12 +100,16 @@ import {
101
100
  import {
102
101
  AttributeBooleanValue,
103
102
  EventInformation,
103
+ FastLaunchSnapshotConfigurationResponse,
104
104
  FastLaunchStateCode,
105
105
  FastSnapshotRestoreStateCode,
106
106
  PermissionGroup,
107
- PrincipalIdFormat,
108
107
  ProductCode,
109
108
  } from "./models_4";
109
+ export interface PrincipalIdFormat {
110
+ Arn?: string | undefined;
111
+ Statuses?: IdFormat[] | undefined;
112
+ }
110
113
  export interface DescribePrincipalIdFormatResult {
111
114
  Principals?: PrincipalIdFormat[] | undefined;
112
115
  NextToken?: string | undefined;
@@ -1898,10 +1901,6 @@ export interface DisassociateSecurityGroupVpcResult {
1898
1901
  export interface DisassociateSubnetCidrBlockRequest {
1899
1902
  AssociationId: string | undefined;
1900
1903
  }
1901
- export interface DisassociateSubnetCidrBlockResult {
1902
- Ipv6CidrBlockAssociation?: SubnetIpv6CidrBlockAssociation | undefined;
1903
- SubnetId?: string | undefined;
1904
- }
1905
1904
  export declare const SpotFleetLaunchSpecificationFilterSensitiveLog: (
1906
1905
  obj: SpotFleetLaunchSpecification
1907
1906
  ) => any;
@@ -10,6 +10,7 @@ import {
10
10
  HostRecovery,
11
11
  IpamPoolAllocation,
12
12
  SubnetAssociation,
13
+ SubnetIpv6CidrBlockAssociation,
13
14
  Tag,
14
15
  TagSpecification,
15
16
  TargetConfigurationRequest,
@@ -59,7 +60,6 @@ import {
59
60
  ExportTaskS3Location,
60
61
  FastLaunchLaunchTemplateSpecificationResponse,
61
62
  FastLaunchResourceType,
62
- FastLaunchSnapshotConfigurationResponse,
63
63
  Filter,
64
64
  IpamPoolCidr,
65
65
  MetricType,
@@ -72,6 +72,7 @@ import {
72
72
  ArchitectureValues,
73
73
  AttributeBooleanValue,
74
74
  BootModeValues,
75
+ FastLaunchSnapshotConfigurationResponse,
75
76
  FastLaunchStateCode,
76
77
  FastSnapshotRestoreStateCode,
77
78
  FpgaImageAttribute,
@@ -95,6 +96,10 @@ import {
95
96
  TransitGatewayPropagation,
96
97
  TransitGatewayPropagationState,
97
98
  } from "./models_5";
99
+ export interface DisassociateSubnetCidrBlockResult {
100
+ Ipv6CidrBlockAssociation?: SubnetIpv6CidrBlockAssociation | undefined;
101
+ SubnetId?: string | undefined;
102
+ }
98
103
  export interface DisassociateTransitGatewayMulticastDomainRequest {
99
104
  TransitGatewayMulticastDomainId: string | undefined;
100
105
  TransitGatewayAttachmentId: string | undefined;
@@ -1796,9 +1801,6 @@ export interface ModifyInstanceCapacityReservationAttributesRequest {
1796
1801
  | undefined;
1797
1802
  DryRun?: boolean | undefined;
1798
1803
  }
1799
- export interface ModifyInstanceCapacityReservationAttributesResult {
1800
- Return?: boolean | undefined;
1801
- }
1802
1804
  export declare const VerifiedAccessInstanceUserTrustProviderClientConfigurationFilterSensitiveLog: (
1803
1805
  obj: VerifiedAccessInstanceUserTrustProviderClientConfiguration
1804
1806
  ) => any;
@@ -150,6 +150,9 @@ import {
150
150
  OperationType,
151
151
  Purchase,
152
152
  } from "./models_6";
153
+ export interface ModifyInstanceCapacityReservationAttributesResult {
154
+ Return?: boolean | undefined;
155
+ }
153
156
  export interface ModifyInstanceCpuOptionsRequest {
154
157
  InstanceId: string | undefined;
155
158
  CoreCount: number | undefined;
@@ -1890,12 +1893,6 @@ export interface StartVpcEndpointServicePrivateDnsVerificationRequest {
1890
1893
  export interface StartVpcEndpointServicePrivateDnsVerificationResult {
1891
1894
  ReturnValue?: boolean | undefined;
1892
1895
  }
1893
- export interface StopInstancesRequest {
1894
- InstanceIds: string[] | undefined;
1895
- Hibernate?: boolean | undefined;
1896
- DryRun?: boolean | undefined;
1897
- Force?: boolean | undefined;
1898
- }
1899
1896
  export declare const ModifyVerifiedAccessNativeApplicationOidcOptionsFilterSensitiveLog: (
1900
1897
  obj: ModifyVerifiedAccessNativeApplicationOidcOptions
1901
1898
  ) => any;
@@ -1,6 +1,12 @@
1
1
  import { ByoipCidr, IpPermission, NatGatewayAddress } from "./models_0";
2
2
  import { ClientVpnConnectionStatus } from "./models_3";
3
3
  import { InstanceMonitoring, InstanceStateChange } from "./models_7";
4
+ export interface StopInstancesRequest {
5
+ InstanceIds: string[] | undefined;
6
+ Hibernate?: boolean | undefined;
7
+ DryRun?: boolean | undefined;
8
+ Force?: boolean | undefined;
9
+ }
4
10
  export interface StopInstancesResult {
5
11
  StoppingInstances?: InstanceStateChange[] | undefined;
6
12
  }
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.760.0",
4
+ "version": "3.766.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",