@aws-sdk/client-ec2 3.817.0 → 3.819.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 (95) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/index.js +309 -135
  3. package/dist-es/EC2.js +2 -0
  4. package/dist-es/commands/DescribeVpnConnectionsCommand.js +1 -1
  5. package/dist-es/commands/GetActiveVpnTunnelStatusCommand.js +22 -0
  6. package/dist-es/commands/index.js +1 -0
  7. package/dist-es/models/models_0.js +5 -0
  8. package/dist-es/models/models_3.js +7 -0
  9. package/dist-es/models/models_5.js +0 -7
  10. package/dist-es/models/models_6.js +7 -0
  11. package/dist-es/protocols/Aws_ec2.js +196 -53
  12. package/dist-types/EC2.d.ts +7 -0
  13. package/dist-types/EC2Client.d.ts +3 -2
  14. package/dist-types/commands/CancelImageLaunchPermissionCommand.d.ts +1 -1
  15. package/dist-types/commands/CopyFpgaImageCommand.d.ts +1 -1
  16. package/dist-types/commands/CopyImageCommand.d.ts +1 -1
  17. package/dist-types/commands/CreateImageCommand.d.ts +2 -2
  18. package/dist-types/commands/CreateRestoreImageTaskCommand.d.ts +2 -2
  19. package/dist-types/commands/CreateStoreImageTaskCommand.d.ts +3 -3
  20. package/dist-types/commands/CreateVpcEndpointCommand.d.ts +2 -1
  21. package/dist-types/commands/CreateVpcEndpointConnectionNotificationCommand.d.ts +1 -2
  22. package/dist-types/commands/CreateVpnConnectionCommand.d.ts +2 -0
  23. package/dist-types/commands/DeregisterImageCommand.d.ts +19 -6
  24. package/dist-types/commands/DescribeClientVpnConnectionsCommand.d.ts +2 -1
  25. package/dist-types/commands/DescribeClientVpnEndpointsCommand.d.ts +1 -2
  26. package/dist-types/commands/DescribeKeyPairsCommand.d.ts +1 -1
  27. package/dist-types/commands/DescribeLaunchTemplatesCommand.d.ts +1 -2
  28. package/dist-types/commands/DescribeStoreImageTasksCommand.d.ts +3 -3
  29. package/dist-types/commands/DescribeVpcsCommand.d.ts +1 -1
  30. package/dist-types/commands/DescribeVpnConnectionsCommand.d.ts +2 -1
  31. package/dist-types/commands/DisableImageBlockPublicAccessCommand.d.ts +1 -1
  32. package/dist-types/commands/DisableImageDeprecationCommand.d.ts +1 -1
  33. package/dist-types/commands/DisableImageDeregistrationProtectionCommand.d.ts +2 -2
  34. package/dist-types/commands/EnableImageBlockPublicAccessCommand.d.ts +1 -1
  35. package/dist-types/commands/EnableImageCommand.d.ts +2 -2
  36. package/dist-types/commands/EnableImageDeregistrationProtectionCommand.d.ts +2 -2
  37. package/dist-types/commands/GetActiveVpnTunnelStatusCommand.d.ts +84 -0
  38. package/dist-types/commands/GetImageBlockPublicAccessStateCommand.d.ts +1 -1
  39. package/dist-types/commands/GetTransitGatewayMulticastDomainAssociationsCommand.d.ts +2 -1
  40. package/dist-types/commands/GetTransitGatewayPolicyTableAssociationsCommand.d.ts +1 -1
  41. package/dist-types/commands/GetTransitGatewayPolicyTableEntriesCommand.d.ts +1 -2
  42. package/dist-types/commands/GetVpnConnectionDeviceSampleConfigurationCommand.d.ts +1 -0
  43. package/dist-types/commands/ModifyVpnConnectionCommand.d.ts +1 -0
  44. package/dist-types/commands/ModifyVpnConnectionOptionsCommand.d.ts +1 -0
  45. package/dist-types/commands/ModifyVpnTunnelCertificateCommand.d.ts +1 -0
  46. package/dist-types/commands/ModifyVpnTunnelOptionsCommand.d.ts +2 -0
  47. package/dist-types/commands/RegisterImageCommand.d.ts +2 -2
  48. package/dist-types/commands/RejectVpcPeeringConnectionCommand.d.ts +2 -1
  49. package/dist-types/commands/ReleaseAddressCommand.d.ts +1 -1
  50. package/dist-types/commands/ReleaseHostsCommand.d.ts +1 -1
  51. package/dist-types/commands/ReleaseIpamPoolAllocationCommand.d.ts +1 -1
  52. package/dist-types/commands/RestoreImageFromRecycleBinCommand.d.ts +3 -2
  53. package/dist-types/commands/index.d.ts +1 -0
  54. package/dist-types/models/models_0.d.ts +64 -48
  55. package/dist-types/models/models_1.d.ts +53 -32
  56. package/dist-types/models/models_2.d.ts +29 -58
  57. package/dist-types/models/models_3.d.ts +150 -151
  58. package/dist-types/models/models_4.d.ts +161 -203
  59. package/dist-types/models/models_5.d.ts +195 -226
  60. package/dist-types/models/models_6.d.ts +254 -149
  61. package/dist-types/models/models_7.d.ts +168 -114
  62. package/dist-types/models/models_8.d.ts +107 -5
  63. package/dist-types/protocols/Aws_ec2.d.ts +9 -0
  64. package/dist-types/ts3.4/EC2.d.ts +17 -0
  65. package/dist-types/ts3.4/EC2Client.d.ts +6 -0
  66. package/dist-types/ts3.4/commands/CopyFpgaImageCommand.d.ts +1 -1
  67. package/dist-types/ts3.4/commands/CreateVpcEndpointCommand.d.ts +2 -4
  68. package/dist-types/ts3.4/commands/CreateVpcEndpointConnectionNotificationCommand.d.ts +4 -2
  69. package/dist-types/ts3.4/commands/DeregisterImageCommand.d.ts +1 -1
  70. package/dist-types/ts3.4/commands/DescribeClientVpnConnectionsCommand.d.ts +2 -4
  71. package/dist-types/ts3.4/commands/DescribeClientVpnEndpointsCommand.d.ts +4 -2
  72. package/dist-types/ts3.4/commands/DescribeKeyPairsCommand.d.ts +1 -1
  73. package/dist-types/ts3.4/commands/DescribeLaunchTemplatesCommand.d.ts +4 -2
  74. package/dist-types/ts3.4/commands/DescribeVpcsCommand.d.ts +1 -1
  75. package/dist-types/ts3.4/commands/DescribeVpnConnectionsCommand.d.ts +1 -1
  76. package/dist-types/ts3.4/commands/GetActiveVpnTunnelStatusCommand.d.ts +51 -0
  77. package/dist-types/ts3.4/commands/GetTransitGatewayMulticastDomainAssociationsCommand.d.ts +2 -4
  78. package/dist-types/ts3.4/commands/GetTransitGatewayPolicyTableAssociationsCommand.d.ts +1 -1
  79. package/dist-types/ts3.4/commands/GetTransitGatewayPolicyTableEntriesCommand.d.ts +4 -2
  80. package/dist-types/ts3.4/commands/RejectVpcPeeringConnectionCommand.d.ts +2 -4
  81. package/dist-types/ts3.4/commands/ReleaseAddressCommand.d.ts +1 -1
  82. package/dist-types/ts3.4/commands/ReleaseHostsCommand.d.ts +1 -1
  83. package/dist-types/ts3.4/commands/ReleaseIpamPoolAllocationCommand.d.ts +1 -1
  84. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  85. package/dist-types/ts3.4/models/models_0.d.ts +18 -11
  86. package/dist-types/ts3.4/models/models_1.d.ts +11 -7
  87. package/dist-types/ts3.4/models/models_2.d.ts +7 -14
  88. package/dist-types/ts3.4/models/models_3.d.ts +33 -32
  89. package/dist-types/ts3.4/models/models_4.d.ts +33 -29
  90. package/dist-types/ts3.4/models/models_5.d.ts +29 -25
  91. package/dist-types/ts3.4/models/models_6.d.ts +33 -36
  92. package/dist-types/ts3.4/models/models_7.d.ts +40 -26
  93. package/dist-types/ts3.4/models/models_8.d.ts +29 -2
  94. package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +12 -0
  95. package/package.json +1 -1
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  AccessScopeAnalysisFinding,
3
+ ActiveVpnTunnelStatus,
3
4
  AddressTransfer,
4
5
  AllowedImagesSettingsDisabledState,
5
6
  AllowedImagesSettingsEnabledState,
@@ -36,6 +37,7 @@ import {
36
37
  IpamResourceTag,
37
38
  RequestIpamResourceTag,
38
39
  TargetCapacityUnitType,
40
+ Vpc,
39
41
  } from "./models_1";
40
42
  import {
41
43
  NetworkInsightsAccessScopeContent,
@@ -49,6 +51,7 @@ import {
49
51
  MetricType,
50
52
  PeriodType,
51
53
  StatisticType,
54
+ VpnConnection,
52
55
  VpnGateway,
53
56
  } from "./models_3";
54
57
  import {
@@ -66,6 +69,25 @@ import {
66
69
  VirtualizationType,
67
70
  } from "./models_4";
68
71
  import { AnalysisStatus, ManagedBy } from "./models_5";
72
+ export interface DescribeVpcsRequest {
73
+ Filters?: Filter[] | undefined;
74
+ VpcIds?: string[] | undefined;
75
+ NextToken?: string | undefined;
76
+ MaxResults?: number | undefined;
77
+ DryRun?: boolean | undefined;
78
+ }
79
+ export interface DescribeVpcsResult {
80
+ NextToken?: string | undefined;
81
+ Vpcs?: Vpc[] | undefined;
82
+ }
83
+ export interface DescribeVpnConnectionsRequest {
84
+ Filters?: Filter[] | undefined;
85
+ VpnConnectionIds?: string[] | undefined;
86
+ DryRun?: boolean | undefined;
87
+ }
88
+ export interface DescribeVpnConnectionsResult {
89
+ VpnConnections?: VpnConnection[] | undefined;
90
+ }
69
91
  export interface DescribeVpnGatewaysRequest {
70
92
  Filters?: Filter[] | undefined;
71
93
  VpnGatewayIds?: string[] | undefined;
@@ -750,6 +772,14 @@ export interface ExportVerifiedAccessInstanceClientConfigurationResult {
750
772
  | VerifiedAccessInstanceOpenVpnClientConfiguration[]
751
773
  | undefined;
752
774
  }
775
+ export interface GetActiveVpnTunnelStatusRequest {
776
+ VpnConnectionId: string | undefined;
777
+ VpnTunnelOutsideIpAddress: string | undefined;
778
+ DryRun?: boolean | undefined;
779
+ }
780
+ export interface GetActiveVpnTunnelStatusResult {
781
+ ActiveVpnTunnelStatus?: ActiveVpnTunnelStatus | undefined;
782
+ }
753
783
  export interface GetAllowedImagesSettingsRequest {
754
784
  DryRun?: boolean | undefined;
755
785
  }
@@ -1597,42 +1627,9 @@ export interface TransitGatewayMulticastDomainAssociation {
1597
1627
  ResourceOwnerId?: string | undefined;
1598
1628
  Subnet?: SubnetAssociation | undefined;
1599
1629
  }
1600
- export interface GetTransitGatewayMulticastDomainAssociationsResult {
1601
- MulticastDomainAssociations?:
1602
- | TransitGatewayMulticastDomainAssociation[]
1603
- | undefined;
1604
- NextToken?: string | undefined;
1605
- }
1606
- export interface GetTransitGatewayPolicyTableAssociationsRequest {
1607
- TransitGatewayPolicyTableId: string | undefined;
1608
- Filters?: Filter[] | undefined;
1609
- MaxResults?: number | undefined;
1610
- NextToken?: string | undefined;
1611
- DryRun?: boolean | undefined;
1612
- }
1613
- export interface GetTransitGatewayPolicyTableAssociationsResult {
1614
- Associations?: TransitGatewayPolicyTableAssociation[] | undefined;
1615
- NextToken?: string | undefined;
1616
- }
1617
- export interface GetTransitGatewayPolicyTableEntriesRequest {
1618
- TransitGatewayPolicyTableId: string | undefined;
1619
- Filters?: Filter[] | undefined;
1620
- MaxResults?: number | undefined;
1621
- NextToken?: string | undefined;
1622
- DryRun?: boolean | undefined;
1623
- }
1624
- export interface TransitGatewayPolicyRuleMetaData {
1625
- MetaDataKey?: string | undefined;
1626
- MetaDataValue?: string | undefined;
1627
- }
1628
- export interface TransitGatewayPolicyRule {
1629
- SourceCidrBlock?: string | undefined;
1630
- SourcePortRange?: string | undefined;
1631
- DestinationCidrBlock?: string | undefined;
1632
- DestinationPortRange?: string | undefined;
1633
- Protocol?: string | undefined;
1634
- MetaData?: TransitGatewayPolicyRuleMetaData | undefined;
1635
- }
1630
+ export declare const DescribeVpnConnectionsResultFilterSensitiveLog: (
1631
+ obj: DescribeVpnConnectionsResult
1632
+ ) => any;
1636
1633
  export declare const DetachVerifiedAccessTrustProviderResultFilterSensitiveLog: (
1637
1634
  obj: DetachVerifiedAccessTrustProviderResult
1638
1635
  ) => any;
@@ -22,6 +22,7 @@ import {
22
22
  TransitGatewayAttachmentResourceType,
23
23
  TransitGatewayMulticastDomainAssociations,
24
24
  TransitGatewayPeeringAttachment,
25
+ TransitGatewayPolicyTableAssociation,
25
26
  TransitGatewayVpcAttachment,
26
27
  UnsuccessfulItem,
27
28
  VerifiedAccessInstance,
@@ -152,10 +153,46 @@ import {
152
153
  InstanceFamilyCreditSpecification,
153
154
  IpamResourceCidr,
154
155
  Purchase,
155
- TransitGatewayPolicyRule,
156
+ TransitGatewayMulticastDomainAssociation,
156
157
  TransitGatewayPropagationState,
157
158
  UnlimitedSupportedInstanceFamily,
158
159
  } from "./models_6";
160
+ export interface GetTransitGatewayMulticastDomainAssociationsResult {
161
+ MulticastDomainAssociations?:
162
+ | TransitGatewayMulticastDomainAssociation[]
163
+ | undefined;
164
+ NextToken?: string | undefined;
165
+ }
166
+ export interface GetTransitGatewayPolicyTableAssociationsRequest {
167
+ TransitGatewayPolicyTableId: string | undefined;
168
+ Filters?: Filter[] | undefined;
169
+ MaxResults?: number | undefined;
170
+ NextToken?: string | undefined;
171
+ DryRun?: boolean | undefined;
172
+ }
173
+ export interface GetTransitGatewayPolicyTableAssociationsResult {
174
+ Associations?: TransitGatewayPolicyTableAssociation[] | undefined;
175
+ NextToken?: string | undefined;
176
+ }
177
+ export interface GetTransitGatewayPolicyTableEntriesRequest {
178
+ TransitGatewayPolicyTableId: string | undefined;
179
+ Filters?: Filter[] | undefined;
180
+ MaxResults?: number | undefined;
181
+ NextToken?: string | undefined;
182
+ DryRun?: boolean | undefined;
183
+ }
184
+ export interface TransitGatewayPolicyRuleMetaData {
185
+ MetaDataKey?: string | undefined;
186
+ MetaDataValue?: string | undefined;
187
+ }
188
+ export interface TransitGatewayPolicyRule {
189
+ SourceCidrBlock?: string | undefined;
190
+ SourcePortRange?: string | undefined;
191
+ DestinationCidrBlock?: string | undefined;
192
+ DestinationPortRange?: string | undefined;
193
+ Protocol?: string | undefined;
194
+ MetaData?: TransitGatewayPolicyRuleMetaData | undefined;
195
+ }
159
196
  export interface TransitGatewayPolicyTableEntry {
160
197
  PolicyRuleNumber?: string | undefined;
161
198
  PolicyRule?: TransitGatewayPolicyRule | undefined;
@@ -251,6 +288,7 @@ export interface GetVpnConnectionDeviceSampleConfigurationRequest {
251
288
  VpnConnectionId: string | undefined;
252
289
  VpnConnectionDeviceTypeId: string | undefined;
253
290
  InternetKeyExchangeVersion?: string | undefined;
291
+ SampleType?: string | undefined;
254
292
  DryRun?: boolean | undefined;
255
293
  }
256
294
  export interface GetVpnConnectionDeviceSampleConfigurationResult {
@@ -1570,6 +1608,7 @@ export interface ModifyVpnTunnelOptionsRequest {
1570
1608
  TunnelOptions: ModifyVpnTunnelOptionsSpecification | undefined;
1571
1609
  DryRun?: boolean | undefined;
1572
1610
  SkipTunnelReplacement?: boolean | undefined;
1611
+ PreSharedKeyStorage?: string | undefined;
1573
1612
  }
1574
1613
  export interface ModifyVpnTunnelOptionsResult {
1575
1614
  VpnConnection?: VpnConnection | undefined;
@@ -1854,31 +1893,6 @@ export interface RejectVpcPeeringConnectionRequest {
1854
1893
  DryRun?: boolean | undefined;
1855
1894
  VpcPeeringConnectionId: string | undefined;
1856
1895
  }
1857
- export interface RejectVpcPeeringConnectionResult {
1858
- Return?: boolean | undefined;
1859
- }
1860
- export interface ReleaseAddressRequest {
1861
- AllocationId?: string | undefined;
1862
- PublicIp?: string | undefined;
1863
- NetworkBorderGroup?: string | undefined;
1864
- DryRun?: boolean | undefined;
1865
- }
1866
- export interface ReleaseHostsRequest {
1867
- HostIds: string[] | undefined;
1868
- }
1869
- export interface ReleaseHostsResult {
1870
- Successful?: string[] | undefined;
1871
- Unsuccessful?: UnsuccessfulItem[] | undefined;
1872
- }
1873
- export interface ReleaseIpamPoolAllocationRequest {
1874
- DryRun?: boolean | undefined;
1875
- IpamPoolId: string | undefined;
1876
- Cidr: string | undefined;
1877
- IpamPoolAllocationId: string | undefined;
1878
- }
1879
- export interface ReleaseIpamPoolAllocationResult {
1880
- Success?: boolean | undefined;
1881
- }
1882
1896
  export declare const GetVpnConnectionDeviceSampleConfigurationResultFilterSensitiveLog: (
1883
1897
  obj: GetVpnConnectionDeviceSampleConfigurationResult
1884
1898
  ) => any;
@@ -11,6 +11,7 @@ import {
11
11
  RouteTableAssociationState,
12
12
  TagSpecification,
13
13
  TransitGatewayAttachmentResourceType,
14
+ UnsuccessfulItem,
14
15
  } from "./models_0";
15
16
  import {
16
17
  _InstanceType,
@@ -21,7 +22,6 @@ import {
21
22
  HostnameType,
22
23
  InstanceBandwidthWeighting,
23
24
  InstanceInterruptionBehavior,
24
- InstanceIpv6Address,
25
25
  MarketType,
26
26
  OperatorRequest,
27
27
  Placement,
@@ -30,6 +30,7 @@ import {
30
30
  } from "./models_1";
31
31
  import {
32
32
  IcmpTypeCode,
33
+ InstanceIpv6Address,
33
34
  LocalGatewayRoute,
34
35
  ManagedPrefixList,
35
36
  RuleAction,
@@ -37,8 +38,9 @@ import {
37
38
  SSEType,
38
39
  TransitGatewayRoute,
39
40
  } from "./models_2";
40
- import { ClientVpnConnectionStatus, Filter } from "./models_3";
41
+ import { Filter } from "./models_3";
41
42
  import {
43
+ ClientVpnConnectionStatus,
42
44
  HttpTokensState,
43
45
  InstanceAttributeName,
44
46
  InstanceAutoRecoveryState,
@@ -62,6 +64,31 @@ import {
62
64
  InstanceMonitoring,
63
65
  Status,
64
66
  } from "./models_7";
67
+ export interface RejectVpcPeeringConnectionResult {
68
+ Return?: boolean | undefined;
69
+ }
70
+ export interface ReleaseAddressRequest {
71
+ AllocationId?: string | undefined;
72
+ PublicIp?: string | undefined;
73
+ NetworkBorderGroup?: string | undefined;
74
+ DryRun?: boolean | undefined;
75
+ }
76
+ export interface ReleaseHostsRequest {
77
+ HostIds: string[] | undefined;
78
+ }
79
+ export interface ReleaseHostsResult {
80
+ Successful?: string[] | undefined;
81
+ Unsuccessful?: UnsuccessfulItem[] | undefined;
82
+ }
83
+ export interface ReleaseIpamPoolAllocationRequest {
84
+ DryRun?: boolean | undefined;
85
+ IpamPoolId: string | undefined;
86
+ Cidr: string | undefined;
87
+ IpamPoolAllocationId: string | undefined;
88
+ }
89
+ export interface ReleaseIpamPoolAllocationResult {
90
+ Success?: boolean | undefined;
91
+ }
65
92
  export interface ReplaceIamInstanceProfileAssociationRequest {
66
93
  IamInstanceProfile: IamInstanceProfileSpecification | undefined;
67
94
  AssociationId: string | undefined;
@@ -1903,6 +1903,10 @@ import {
1903
1903
  ExportVerifiedAccessInstanceClientConfigurationCommandInput,
1904
1904
  ExportVerifiedAccessInstanceClientConfigurationCommandOutput,
1905
1905
  } from "../commands/ExportVerifiedAccessInstanceClientConfigurationCommand";
1906
+ import {
1907
+ GetActiveVpnTunnelStatusCommandInput,
1908
+ GetActiveVpnTunnelStatusCommandOutput,
1909
+ } from "../commands/GetActiveVpnTunnelStatusCommand";
1906
1910
  import {
1907
1911
  GetAllowedImagesSettingsCommandInput,
1908
1912
  GetAllowedImagesSettingsCommandOutput,
@@ -4643,6 +4647,10 @@ export declare const se_ExportVerifiedAccessInstanceClientConfigurationCommand:
4643
4647
  input: ExportVerifiedAccessInstanceClientConfigurationCommandInput,
4644
4648
  context: __SerdeContext
4645
4649
  ) => Promise<__HttpRequest>;
4650
+ export declare const se_GetActiveVpnTunnelStatusCommand: (
4651
+ input: GetActiveVpnTunnelStatusCommandInput,
4652
+ context: __SerdeContext
4653
+ ) => Promise<__HttpRequest>;
4646
4654
  export declare const se_GetAllowedImagesSettingsCommand: (
4647
4655
  input: GetAllowedImagesSettingsCommandInput,
4648
4656
  context: __SerdeContext
@@ -7383,6 +7391,10 @@ export declare const de_ExportVerifiedAccessInstanceClientConfigurationCommand:
7383
7391
  output: __HttpResponse,
7384
7392
  context: __SerdeContext
7385
7393
  ) => Promise<ExportVerifiedAccessInstanceClientConfigurationCommandOutput>;
7394
+ export declare const de_GetActiveVpnTunnelStatusCommand: (
7395
+ output: __HttpResponse,
7396
+ context: __SerdeContext
7397
+ ) => Promise<GetActiveVpnTunnelStatusCommandOutput>;
7386
7398
  export declare const de_GetAllowedImagesSettingsCommand: (
7387
7399
  output: __HttpResponse,
7388
7400
  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.817.0",
4
+ "version": "3.819.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",