@aws-sdk/client-ec2 3.427.0 → 3.429.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 (53) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/EC2.js +4 -0
  3. package/dist-cjs/commands/DisableImageCommand.js +51 -0
  4. package/dist-cjs/commands/EnableImageCommand.js +51 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/models/models_0.js +1 -0
  7. package/dist-cjs/models/models_3.js +1 -0
  8. package/dist-cjs/protocols/Aws_ec2.js +133 -17
  9. package/dist-es/EC2.js +4 -0
  10. package/dist-es/commands/DisableImageCommand.js +47 -0
  11. package/dist-es/commands/EnableImageCommand.js +47 -0
  12. package/dist-es/commands/index.js +2 -0
  13. package/dist-es/models/models_0.js +1 -0
  14. package/dist-es/models/models_3.js +1 -0
  15. package/dist-es/protocols/Aws_ec2.js +112 -0
  16. package/dist-types/EC2.d.ts +14 -0
  17. package/dist-types/EC2Client.d.ts +4 -2
  18. package/dist-types/commands/CreateCapacityReservationCommand.d.ts +2 -2
  19. package/dist-types/commands/CreateCapacityReservationFleetCommand.d.ts +2 -2
  20. package/dist-types/commands/DescribeCapacityReservationFleetsCommand.d.ts +1 -1
  21. package/dist-types/commands/DescribeCapacityReservationsCommand.d.ts +1 -1
  22. package/dist-types/commands/DescribeImagesCommand.d.ts +3 -1
  23. package/dist-types/commands/DisableImageCommand.d.ts +84 -0
  24. package/dist-types/commands/EnableImageCommand.d.ts +81 -0
  25. package/dist-types/commands/GetTransitGatewayRouteTablePropagationsCommand.d.ts +2 -1
  26. package/dist-types/commands/GetVerifiedAccessEndpointPolicyCommand.d.ts +1 -1
  27. package/dist-types/commands/index.d.ts +2 -0
  28. package/dist-types/models/models_0.d.ts +80 -79
  29. package/dist-types/models/models_1.d.ts +131 -131
  30. package/dist-types/models/models_2.d.ts +105 -105
  31. package/dist-types/models/models_3.d.ts +99 -79
  32. package/dist-types/models/models_4.d.ts +115 -111
  33. package/dist-types/models/models_5.d.ts +119 -143
  34. package/dist-types/models/models_6.d.ts +159 -181
  35. package/dist-types/models/models_7.d.ts +113 -13
  36. package/dist-types/protocols/Aws_ec2.d.ts +18 -0
  37. package/dist-types/ts3.4/EC2.d.ts +34 -0
  38. package/dist-types/ts3.4/EC2Client.d.ts +12 -0
  39. package/dist-types/ts3.4/commands/DisableImageCommand.d.ts +35 -0
  40. package/dist-types/ts3.4/commands/EnableImageCommand.d.ts +35 -0
  41. package/dist-types/ts3.4/commands/GetTransitGatewayRouteTablePropagationsCommand.d.ts +2 -4
  42. package/dist-types/ts3.4/commands/GetVerifiedAccessEndpointPolicyCommand.d.ts +1 -1
  43. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  44. package/dist-types/ts3.4/models/models_0.d.ts +80 -79
  45. package/dist-types/ts3.4/models/models_1.d.ts +131 -133
  46. package/dist-types/ts3.4/models/models_2.d.ts +105 -107
  47. package/dist-types/ts3.4/models/models_3.d.ts +81 -80
  48. package/dist-types/ts3.4/models/models_4.d.ts +109 -109
  49. package/dist-types/ts3.4/models/models_5.d.ts +79 -87
  50. package/dist-types/ts3.4/models/models_6.d.ts +99 -98
  51. package/dist-types/ts3.4/models/models_7.d.ts +31 -14
  52. package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +24 -0
  53. package/package.json +33 -33
@@ -12,10 +12,13 @@ import {
12
12
  CreditSpecificationRequest,
13
13
  ElasticGpuSpecification,
14
14
  HostnameType,
15
+ InstanceInterruptionBehavior,
15
16
  InstanceIpv6Address,
16
17
  LocalGatewayRoute,
18
+ MarketType,
17
19
  Placement,
18
20
  ShutdownBehavior,
21
+ SpotInstanceType,
19
22
  } from "./models_1";
20
23
  import { TransitGatewayRoute } from "./models_2";
21
24
  import { ClientVpnConnectionStatus, Filter } from "./models_3";
@@ -35,11 +38,25 @@ import {
35
38
  CapacityReservationSpecification,
36
39
  CpuOptionsRequest,
37
40
  ElasticInferenceAccelerator,
38
- EnclaveOptionsRequest,
39
- HibernationOptionsRequest,
40
- InstanceMarketOptionsRequest,
41
41
  InstanceMonitoring,
42
42
  } from "./models_6";
43
+ export interface EnclaveOptionsRequest {
44
+ Enabled?: boolean;
45
+ }
46
+ export interface HibernationOptionsRequest {
47
+ Configured?: boolean;
48
+ }
49
+ export interface SpotMarketOptions {
50
+ MaxPrice?: string;
51
+ SpotInstanceType?: SpotInstanceType;
52
+ BlockDurationMinutes?: number;
53
+ ValidUntil?: Date;
54
+ InstanceInterruptionBehavior?: InstanceInterruptionBehavior;
55
+ }
56
+ export interface InstanceMarketOptionsRequest {
57
+ MarketType?: MarketType;
58
+ SpotOptions?: SpotMarketOptions;
59
+ }
43
60
  export interface LaunchTemplateSpecification {
44
61
  LaunchTemplateId?: string;
45
62
  LaunchTemplateName?: string;
@@ -49,24 +66,24 @@ export interface LicenseConfigurationRequest {
49
66
  LicenseConfigurationArn?: string;
50
67
  }
51
68
  export interface InstanceMaintenanceOptionsRequest {
52
- AutoRecovery?: InstanceAutoRecoveryState | string;
69
+ AutoRecovery?: InstanceAutoRecoveryState;
53
70
  }
54
71
  export interface InstanceMetadataOptionsRequest {
55
- HttpTokens?: HttpTokensState | string;
72
+ HttpTokens?: HttpTokensState;
56
73
  HttpPutResponseHopLimit?: number;
57
- HttpEndpoint?: InstanceMetadataEndpointState | string;
58
- HttpProtocolIpv6?: InstanceMetadataProtocolState | string;
59
- InstanceMetadataTags?: InstanceMetadataTagsState | string;
74
+ HttpEndpoint?: InstanceMetadataEndpointState;
75
+ HttpProtocolIpv6?: InstanceMetadataProtocolState;
76
+ InstanceMetadataTags?: InstanceMetadataTagsState;
60
77
  }
61
78
  export interface PrivateDnsNameOptionsRequest {
62
- HostnameType?: HostnameType | string;
79
+ HostnameType?: HostnameType;
63
80
  EnableResourceNameDnsARecord?: boolean;
64
81
  EnableResourceNameDnsAAAARecord?: boolean;
65
82
  }
66
83
  export interface RunInstancesRequest {
67
84
  BlockDeviceMappings?: BlockDeviceMapping[];
68
85
  ImageId?: string;
69
- InstanceType?: _InstanceType | string;
86
+ InstanceType?: _InstanceType;
70
87
  Ipv6AddressCount?: number;
71
88
  Ipv6Addresses?: InstanceIpv6Address[];
72
89
  KernelId?: string;
@@ -86,7 +103,7 @@ export interface RunInstancesRequest {
86
103
  DryRun?: boolean;
87
104
  EbsOptimized?: boolean;
88
105
  IamInstanceProfile?: IamInstanceProfileSpecification;
89
- InstanceInitiatedShutdownBehavior?: ShutdownBehavior | string;
106
+ InstanceInitiatedShutdownBehavior?: ShutdownBehavior;
90
107
  NetworkInterfaces?: InstanceNetworkInterfaceSpecification[];
91
108
  PrivateIpAddress?: string;
92
109
  ElasticGpuSpecification?: ElasticGpuSpecification[];
@@ -207,13 +224,13 @@ export interface TransitGatewayMulticastGroup {
207
224
  TransitGatewayAttachmentId?: string;
208
225
  SubnetId?: string;
209
226
  ResourceId?: string;
210
- ResourceType?: TransitGatewayAttachmentResourceType | string;
227
+ ResourceType?: TransitGatewayAttachmentResourceType;
211
228
  ResourceOwnerId?: string;
212
229
  NetworkInterfaceId?: string;
213
230
  GroupMember?: boolean;
214
231
  GroupSource?: boolean;
215
- MemberType?: MembershipType | string;
216
- SourceType?: MembershipType | string;
232
+ MemberType?: MembershipType;
233
+ SourceType?: MembershipType;
217
234
  }
218
235
  export interface SearchTransitGatewayMulticastGroupsResult {
219
236
  MulticastGroups?: TransitGatewayMulticastGroup[];
@@ -1499,6 +1499,10 @@ import {
1499
1499
  DisableImageBlockPublicAccessCommandInput,
1500
1500
  DisableImageBlockPublicAccessCommandOutput,
1501
1501
  } from "../commands/DisableImageBlockPublicAccessCommand";
1502
+ import {
1503
+ DisableImageCommandInput,
1504
+ DisableImageCommandOutput,
1505
+ } from "../commands/DisableImageCommand";
1502
1506
  import {
1503
1507
  DisableImageDeprecationCommandInput,
1504
1508
  DisableImageDeprecationCommandOutput,
@@ -1607,6 +1611,10 @@ import {
1607
1611
  EnableImageBlockPublicAccessCommandInput,
1608
1612
  EnableImageBlockPublicAccessCommandOutput,
1609
1613
  } from "../commands/EnableImageBlockPublicAccessCommand";
1614
+ import {
1615
+ EnableImageCommandInput,
1616
+ EnableImageCommandOutput,
1617
+ } from "../commands/EnableImageCommand";
1610
1618
  import {
1611
1619
  EnableImageDeprecationCommandInput,
1612
1620
  EnableImageDeprecationCommandOutput,
@@ -3883,6 +3891,10 @@ export declare const se_DisableFastSnapshotRestoresCommand: (
3883
3891
  input: DisableFastSnapshotRestoresCommandInput,
3884
3892
  context: __SerdeContext
3885
3893
  ) => Promise<__HttpRequest>;
3894
+ export declare const se_DisableImageCommand: (
3895
+ input: DisableImageCommandInput,
3896
+ context: __SerdeContext
3897
+ ) => Promise<__HttpRequest>;
3886
3898
  export declare const se_DisableImageBlockPublicAccessCommand: (
3887
3899
  input: DisableImageBlockPublicAccessCommandInput,
3888
3900
  context: __SerdeContext
@@ -3991,6 +4003,10 @@ export declare const se_EnableFastSnapshotRestoresCommand: (
3991
4003
  input: EnableFastSnapshotRestoresCommandInput,
3992
4004
  context: __SerdeContext
3993
4005
  ) => Promise<__HttpRequest>;
4006
+ export declare const se_EnableImageCommand: (
4007
+ input: EnableImageCommandInput,
4008
+ context: __SerdeContext
4009
+ ) => Promise<__HttpRequest>;
3994
4010
  export declare const se_EnableImageBlockPublicAccessCommand: (
3995
4011
  input: EnableImageBlockPublicAccessCommandInput,
3996
4012
  context: __SerdeContext
@@ -6271,6 +6287,10 @@ export declare const de_DisableFastSnapshotRestoresCommand: (
6271
6287
  output: __HttpResponse,
6272
6288
  context: __SerdeContext
6273
6289
  ) => Promise<DisableFastSnapshotRestoresCommandOutput>;
6290
+ export declare const de_DisableImageCommand: (
6291
+ output: __HttpResponse,
6292
+ context: __SerdeContext
6293
+ ) => Promise<DisableImageCommandOutput>;
6274
6294
  export declare const de_DisableImageBlockPublicAccessCommand: (
6275
6295
  output: __HttpResponse,
6276
6296
  context: __SerdeContext
@@ -6379,6 +6399,10 @@ export declare const de_EnableFastSnapshotRestoresCommand: (
6379
6399
  output: __HttpResponse,
6380
6400
  context: __SerdeContext
6381
6401
  ) => Promise<EnableFastSnapshotRestoresCommandOutput>;
6402
+ export declare const de_EnableImageCommand: (
6403
+ output: __HttpResponse,
6404
+ context: __SerdeContext
6405
+ ) => Promise<EnableImageCommandOutput>;
6382
6406
  export declare const de_EnableImageBlockPublicAccessCommand: (
6383
6407
  output: __HttpResponse,
6384
6408
  context: __SerdeContext
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.427.0",
4
+ "version": "3.429.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,42 +21,42 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.427.0",
25
- "@aws-sdk/credential-provider-node": "3.427.0",
26
- "@aws-sdk/middleware-host-header": "3.425.0",
27
- "@aws-sdk/middleware-logger": "3.425.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.425.0",
29
- "@aws-sdk/middleware-sdk-ec2": "3.425.0",
30
- "@aws-sdk/middleware-signing": "3.425.0",
31
- "@aws-sdk/middleware-user-agent": "3.427.0",
32
- "@aws-sdk/region-config-resolver": "3.425.0",
33
- "@aws-sdk/types": "3.425.0",
34
- "@aws-sdk/util-endpoints": "3.427.0",
35
- "@aws-sdk/util-user-agent-browser": "3.425.0",
36
- "@aws-sdk/util-user-agent-node": "3.425.0",
37
- "@smithy/config-resolver": "^2.0.11",
38
- "@smithy/fetch-http-handler": "^2.2.1",
39
- "@smithy/hash-node": "^2.0.10",
40
- "@smithy/invalid-dependency": "^2.0.10",
41
- "@smithy/middleware-content-length": "^2.0.12",
42
- "@smithy/middleware-endpoint": "^2.0.10",
43
- "@smithy/middleware-retry": "^2.0.13",
44
- "@smithy/middleware-serde": "^2.0.10",
45
- "@smithy/middleware-stack": "^2.0.4",
46
- "@smithy/node-config-provider": "^2.0.13",
47
- "@smithy/node-http-handler": "^2.1.6",
48
- "@smithy/protocol-http": "^3.0.6",
49
- "@smithy/smithy-client": "^2.1.9",
50
- "@smithy/types": "^2.3.4",
51
- "@smithy/url-parser": "^2.0.10",
24
+ "@aws-sdk/client-sts": "3.429.0",
25
+ "@aws-sdk/credential-provider-node": "3.429.0",
26
+ "@aws-sdk/middleware-host-header": "3.429.0",
27
+ "@aws-sdk/middleware-logger": "3.428.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.428.0",
29
+ "@aws-sdk/middleware-sdk-ec2": "3.429.0",
30
+ "@aws-sdk/middleware-signing": "3.428.0",
31
+ "@aws-sdk/middleware-user-agent": "3.428.0",
32
+ "@aws-sdk/region-config-resolver": "3.428.0",
33
+ "@aws-sdk/types": "3.428.0",
34
+ "@aws-sdk/util-endpoints": "3.428.0",
35
+ "@aws-sdk/util-user-agent-browser": "3.428.0",
36
+ "@aws-sdk/util-user-agent-node": "3.428.0",
37
+ "@smithy/config-resolver": "^2.0.14",
38
+ "@smithy/fetch-http-handler": "^2.2.3",
39
+ "@smithy/hash-node": "^2.0.11",
40
+ "@smithy/invalid-dependency": "^2.0.11",
41
+ "@smithy/middleware-content-length": "^2.0.13",
42
+ "@smithy/middleware-endpoint": "^2.1.1",
43
+ "@smithy/middleware-retry": "^2.0.16",
44
+ "@smithy/middleware-serde": "^2.0.11",
45
+ "@smithy/middleware-stack": "^2.0.5",
46
+ "@smithy/node-config-provider": "^2.1.1",
47
+ "@smithy/node-http-handler": "^2.1.7",
48
+ "@smithy/protocol-http": "^3.0.7",
49
+ "@smithy/smithy-client": "^2.1.11",
50
+ "@smithy/types": "^2.3.5",
51
+ "@smithy/url-parser": "^2.0.11",
52
52
  "@smithy/util-base64": "^2.0.0",
53
53
  "@smithy/util-body-length-browser": "^2.0.0",
54
54
  "@smithy/util-body-length-node": "^2.1.0",
55
- "@smithy/util-defaults-mode-browser": "^2.0.13",
56
- "@smithy/util-defaults-mode-node": "^2.0.15",
57
- "@smithy/util-retry": "^2.0.3",
55
+ "@smithy/util-defaults-mode-browser": "^2.0.15",
56
+ "@smithy/util-defaults-mode-node": "^2.0.19",
57
+ "@smithy/util-retry": "^2.0.4",
58
58
  "@smithy/util-utf8": "^2.0.0",
59
- "@smithy/util-waiter": "^2.0.10",
59
+ "@smithy/util-waiter": "^2.0.11",
60
60
  "fast-xml-parser": "4.2.5",
61
61
  "tslib": "^2.5.0",
62
62
  "uuid": "^8.3.2"