@aws-sdk/client-ec2 3.147.0 → 3.154.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 (60) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/commands/DescribeClientVpnAuthorizationRulesCommand.js +3 -3
  3. package/dist-cjs/commands/DescribeClientVpnConnectionsCommand.js +1 -2
  4. package/dist-cjs/commands/DescribeNetworkInsightsAccessScopesCommand.js +2 -1
  5. package/dist-cjs/commands/DescribeNetworkInsightsAnalysesCommand.js +1 -2
  6. package/dist-cjs/commands/ExportClientVpnClientCertificateRevocationListCommand.js +2 -1
  7. package/dist-cjs/commands/ExportClientVpnClientConfigurationCommand.js +3 -3
  8. package/dist-cjs/commands/PurchaseScheduledInstancesCommand.js +2 -1
  9. package/dist-cjs/commands/RebootInstancesCommand.js +2 -2
  10. package/dist-cjs/commands/RegisterImageCommand.js +3 -3
  11. package/dist-cjs/models/models_2.js +21 -21
  12. package/dist-cjs/models/models_3.js +22 -22
  13. package/dist-cjs/models/models_4.js +22 -22
  14. package/dist-cjs/models/models_5.js +22 -22
  15. package/dist-cjs/models/models_6.js +19 -3
  16. package/dist-cjs/protocols/Aws_ec2.js +68 -0
  17. package/dist-es/commands/DescribeClientVpnAuthorizationRulesCommand.js +1 -1
  18. package/dist-es/commands/DescribeClientVpnConnectionsCommand.js +1 -2
  19. package/dist-es/commands/DescribeNetworkInsightsAccessScopesCommand.js +2 -1
  20. package/dist-es/commands/DescribeNetworkInsightsAnalysesCommand.js +1 -2
  21. package/dist-es/commands/ExportClientVpnClientCertificateRevocationListCommand.js +2 -1
  22. package/dist-es/commands/ExportClientVpnClientConfigurationCommand.js +1 -1
  23. package/dist-es/commands/PurchaseScheduledInstancesCommand.js +2 -1
  24. package/dist-es/commands/RebootInstancesCommand.js +1 -1
  25. package/dist-es/commands/RegisterImageCommand.js +1 -1
  26. package/dist-es/models/models_2.js +4 -4
  27. package/dist-es/models/models_3.js +4 -4
  28. package/dist-es/models/models_4.js +4 -4
  29. package/dist-es/models/models_5.js +4 -4
  30. package/dist-es/models/models_6.js +4 -0
  31. package/dist-es/protocols/Aws_ec2.js +71 -0
  32. package/dist-types/commands/DescribeClientVpnAuthorizationRulesCommand.d.ts +1 -1
  33. package/dist-types/commands/DescribeClientVpnConnectionsCommand.d.ts +1 -2
  34. package/dist-types/commands/DescribeNetworkInsightsAccessScopesCommand.d.ts +2 -1
  35. package/dist-types/commands/DescribeNetworkInsightsAnalysesCommand.d.ts +1 -2
  36. package/dist-types/commands/ExportClientVpnClientCertificateRevocationListCommand.d.ts +2 -1
  37. package/dist-types/commands/ExportClientVpnClientConfigurationCommand.d.ts +1 -1
  38. package/dist-types/commands/PurchaseScheduledInstancesCommand.d.ts +2 -1
  39. package/dist-types/commands/RebootInstancesCommand.d.ts +1 -1
  40. package/dist-types/commands/RegisterImageCommand.d.ts +1 -1
  41. package/dist-types/models/models_2.d.ts +85 -126
  42. package/dist-types/models/models_3.d.ts +123 -103
  43. package/dist-types/models/models_4.d.ts +105 -55
  44. package/dist-types/models/models_5.d.ts +57 -138
  45. package/dist-types/models/models_6.d.ts +142 -2
  46. package/dist-types/ts3.4/commands/DescribeClientVpnAuthorizationRulesCommand.d.ts +1 -1
  47. package/dist-types/ts3.4/commands/DescribeClientVpnConnectionsCommand.d.ts +1 -2
  48. package/dist-types/ts3.4/commands/DescribeNetworkInsightsAccessScopesCommand.d.ts +2 -1
  49. package/dist-types/ts3.4/commands/DescribeNetworkInsightsAnalysesCommand.d.ts +1 -2
  50. package/dist-types/ts3.4/commands/ExportClientVpnClientCertificateRevocationListCommand.d.ts +2 -1
  51. package/dist-types/ts3.4/commands/ExportClientVpnClientConfigurationCommand.d.ts +1 -1
  52. package/dist-types/ts3.4/commands/PurchaseScheduledInstancesCommand.d.ts +2 -1
  53. package/dist-types/ts3.4/commands/RebootInstancesCommand.d.ts +1 -1
  54. package/dist-types/ts3.4/commands/RegisterImageCommand.d.ts +1 -1
  55. package/dist-types/ts3.4/models/models_2.d.ts +41 -54
  56. package/dist-types/ts3.4/models/models_3.d.ts +53 -50
  57. package/dist-types/ts3.4/models/models_4.d.ts +51 -32
  58. package/dist-types/ts3.4/models/models_5.d.ts +34 -60
  59. package/dist-types/ts3.4/models/models_6.d.ts +61 -2
  60. package/package.json +4 -4
@@ -28941,6 +28941,19 @@ var serializeAws_ec2ClientVpnSecurityGroupIdSet = function (input, context) {
28941
28941
  }
28942
28942
  return entries;
28943
28943
  };
28944
+ var serializeAws_ec2CloudWatchLogOptionsSpecification = function (input, context) {
28945
+ var entries = {};
28946
+ if (input.LogEnabled != null) {
28947
+ entries["LogEnabled"] = input.LogEnabled;
28948
+ }
28949
+ if (input.LogGroupArn != null) {
28950
+ entries["LogGroupArn"] = input.LogGroupArn;
28951
+ }
28952
+ if (input.LogOutputFormat != null) {
28953
+ entries["LogOutputFormat"] = input.LogOutputFormat;
28954
+ }
28955
+ return entries;
28956
+ };
28944
28957
  var serializeAws_ec2CoipPoolIdSet = function (input, context) {
28945
28958
  var e_26, _a;
28946
28959
  var entries = {};
@@ -42982,6 +42995,14 @@ var serializeAws_ec2ModifyVpnTunnelOptionsSpecification = function (input, conte
42982
42995
  if (input.StartupAction != null) {
42983
42996
  entries["StartupAction"] = input.StartupAction;
42984
42997
  }
42998
+ if (input.LogOptions != null) {
42999
+ var memberEntries = serializeAws_ec2VpnTunnelLogOptionsSpecification(input.LogOptions, context);
43000
+ Object.entries(memberEntries).forEach(function (_a) {
43001
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
43002
+ var loc = "LogOptions.".concat(key);
43003
+ entries[loc] = value;
43004
+ });
43005
+ }
42985
43006
  return entries;
42986
43007
  };
42987
43008
  var serializeAws_ec2MonitorInstancesRequest = function (input, context) {
@@ -48865,6 +48886,18 @@ var serializeAws_ec2VpnGatewayIdStringList = function (input, context) {
48865
48886
  }
48866
48887
  return entries;
48867
48888
  };
48889
+ var serializeAws_ec2VpnTunnelLogOptionsSpecification = function (input, context) {
48890
+ var entries = {};
48891
+ if (input.CloudWatchLogOptions != null) {
48892
+ var memberEntries = serializeAws_ec2CloudWatchLogOptionsSpecification(input.CloudWatchLogOptions, context);
48893
+ Object.entries(memberEntries).forEach(function (_a) {
48894
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
48895
+ var loc = "CloudWatchLogOptions.".concat(key);
48896
+ entries[loc] = value;
48897
+ });
48898
+ }
48899
+ return entries;
48900
+ };
48868
48901
  var serializeAws_ec2VpnTunnelOptionsSpecification = function (input, context) {
48869
48902
  var entries = {};
48870
48903
  if (input.TunnelInsideCidr != null) {
@@ -48956,6 +48989,14 @@ var serializeAws_ec2VpnTunnelOptionsSpecification = function (input, context) {
48956
48989
  if (input.StartupAction != null) {
48957
48990
  entries["StartupAction"] = input.StartupAction;
48958
48991
  }
48992
+ if (input.LogOptions != null) {
48993
+ var memberEntries = serializeAws_ec2VpnTunnelLogOptionsSpecification(input.LogOptions, context);
48994
+ Object.entries(memberEntries).forEach(function (_a) {
48995
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
48996
+ var loc = "LogOptions.".concat(key);
48997
+ entries[loc] = value;
48998
+ });
48999
+ }
48959
49000
  return entries;
48960
49001
  };
48961
49002
  var serializeAws_ec2VpnTunnelOptionsSpecificationsList = function (input, context) {
@@ -51303,6 +51344,23 @@ var deserializeAws_ec2ClientVpnSecurityGroupIdSet = function (output, context) {
51303
51344
  return __expectString(entry);
51304
51345
  });
51305
51346
  };
51347
+ var deserializeAws_ec2CloudWatchLogOptions = function (output, context) {
51348
+ var contents = {
51349
+ LogEnabled: undefined,
51350
+ LogGroupArn: undefined,
51351
+ LogOutputFormat: undefined,
51352
+ };
51353
+ if (output["logEnabled"] !== undefined) {
51354
+ contents.LogEnabled = __parseBoolean(output["logEnabled"]);
51355
+ }
51356
+ if (output["logGroupArn"] !== undefined) {
51357
+ contents.LogGroupArn = __expectString(output["logGroupArn"]);
51358
+ }
51359
+ if (output["logOutputFormat"] !== undefined) {
51360
+ contents.LogOutputFormat = __expectString(output["logOutputFormat"]);
51361
+ }
51362
+ return contents;
51363
+ };
51306
51364
  var deserializeAws_ec2CoipAddressUsage = function (output, context) {
51307
51365
  var contents = {
51308
51366
  AllocationId: undefined,
@@ -70303,6 +70361,7 @@ var deserializeAws_ec2TunnelOption = function (output, context) {
70303
70361
  Phase2DHGroupNumbers: undefined,
70304
70362
  IkeVersions: undefined,
70305
70363
  StartupAction: undefined,
70364
+ LogOptions: undefined,
70306
70365
  };
70307
70366
  if (output["outsideIpAddress"] !== undefined) {
70308
70367
  contents.OutsideIpAddress = __expectString(output["outsideIpAddress"]);
@@ -70386,6 +70445,9 @@ var deserializeAws_ec2TunnelOption = function (output, context) {
70386
70445
  if (output["startupAction"] !== undefined) {
70387
70446
  contents.StartupAction = __expectString(output["startupAction"]);
70388
70447
  }
70448
+ if (output["logOptions"] !== undefined) {
70449
+ contents.LogOptions = deserializeAws_ec2VpnTunnelLogOptions(output["logOptions"], context);
70450
+ }
70389
70451
  return contents;
70390
70452
  };
70391
70453
  var deserializeAws_ec2TunnelOptionsList = function (output, context) {
@@ -71751,6 +71813,15 @@ var deserializeAws_ec2VpnStaticRouteList = function (output, context) {
71751
71813
  return deserializeAws_ec2VpnStaticRoute(entry, context);
71752
71814
  });
71753
71815
  };
71816
+ var deserializeAws_ec2VpnTunnelLogOptions = function (output, context) {
71817
+ var contents = {
71818
+ CloudWatchLogOptions: undefined,
71819
+ };
71820
+ if (output["cloudWatchLogOptions"] !== undefined) {
71821
+ contents.CloudWatchLogOptions = deserializeAws_ec2CloudWatchLogOptions(output["cloudWatchLogOptions"], context);
71822
+ }
71823
+ return contents;
71824
+ };
71754
71825
  var deserializeAws_ec2WithdrawByoipCidrResult = function (output, context) {
71755
71826
  var contents = {
71756
71827
  ByoipCidr: undefined,
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
2
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
3
  import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
4
- import { DescribeClientVpnAuthorizationRulesRequest, DescribeClientVpnAuthorizationRulesResult } from "../models/models_2";
4
+ import { DescribeClientVpnAuthorizationRulesRequest, DescribeClientVpnAuthorizationRulesResult } from "../models/models_3";
5
5
  export interface DescribeClientVpnAuthorizationRulesCommandInput extends DescribeClientVpnAuthorizationRulesRequest {
6
6
  }
7
7
  export interface DescribeClientVpnAuthorizationRulesCommandOutput extends DescribeClientVpnAuthorizationRulesResult, __MetadataBearer {
@@ -1,8 +1,7 @@
1
1
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
2
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
3
  import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
4
- import { DescribeClientVpnConnectionsRequest } from "../models/models_2";
5
- import { DescribeClientVpnConnectionsResult } from "../models/models_3";
4
+ import { DescribeClientVpnConnectionsRequest, DescribeClientVpnConnectionsResult } from "../models/models_3";
6
5
  export interface DescribeClientVpnConnectionsCommandInput extends DescribeClientVpnConnectionsRequest {
7
6
  }
8
7
  export interface DescribeClientVpnConnectionsCommandOutput extends DescribeClientVpnConnectionsResult, __MetadataBearer {
@@ -1,7 +1,8 @@
1
1
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
2
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
3
  import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
4
- import { DescribeNetworkInsightsAccessScopesRequest, DescribeNetworkInsightsAccessScopesResult } from "../models/models_3";
4
+ import { DescribeNetworkInsightsAccessScopesRequest } from "../models/models_3";
5
+ import { DescribeNetworkInsightsAccessScopesResult } from "../models/models_4";
5
6
  export interface DescribeNetworkInsightsAccessScopesCommandInput extends DescribeNetworkInsightsAccessScopesRequest {
6
7
  }
7
8
  export interface DescribeNetworkInsightsAccessScopesCommandOutput extends DescribeNetworkInsightsAccessScopesResult, __MetadataBearer {
@@ -1,8 +1,7 @@
1
1
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
2
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
3
  import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
4
- import { DescribeNetworkInsightsAnalysesRequest } from "../models/models_3";
5
- import { DescribeNetworkInsightsAnalysesResult } from "../models/models_4";
4
+ import { DescribeNetworkInsightsAnalysesRequest, DescribeNetworkInsightsAnalysesResult } from "../models/models_4";
6
5
  export interface DescribeNetworkInsightsAnalysesCommandInput extends DescribeNetworkInsightsAnalysesRequest {
7
6
  }
8
7
  export interface DescribeNetworkInsightsAnalysesCommandOutput extends DescribeNetworkInsightsAnalysesResult, __MetadataBearer {
@@ -1,7 +1,8 @@
1
1
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
2
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
3
  import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
4
- import { ExportClientVpnClientCertificateRevocationListRequest, ExportClientVpnClientCertificateRevocationListResult } from "../models/models_4";
4
+ import { ExportClientVpnClientCertificateRevocationListRequest } from "../models/models_4";
5
+ import { ExportClientVpnClientCertificateRevocationListResult } from "../models/models_5";
5
6
  export interface ExportClientVpnClientCertificateRevocationListCommandInput extends ExportClientVpnClientCertificateRevocationListRequest {
6
7
  }
7
8
  export interface ExportClientVpnClientCertificateRevocationListCommandOutput extends ExportClientVpnClientCertificateRevocationListResult, __MetadataBearer {
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
2
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
3
  import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
4
- import { ExportClientVpnClientConfigurationRequest, ExportClientVpnClientConfigurationResult } from "../models/models_4";
4
+ import { ExportClientVpnClientConfigurationRequest, ExportClientVpnClientConfigurationResult } from "../models/models_5";
5
5
  export interface ExportClientVpnClientConfigurationCommandInput extends ExportClientVpnClientConfigurationRequest {
6
6
  }
7
7
  export interface ExportClientVpnClientConfigurationCommandOutput extends ExportClientVpnClientConfigurationResult, __MetadataBearer {
@@ -1,7 +1,8 @@
1
1
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
2
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
3
  import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
4
- import { PurchaseScheduledInstancesRequest, PurchaseScheduledInstancesResult } from "../models/models_5";
4
+ import { PurchaseScheduledInstancesRequest } from "../models/models_5";
5
+ import { PurchaseScheduledInstancesResult } from "../models/models_6";
5
6
  export interface PurchaseScheduledInstancesCommandInput extends PurchaseScheduledInstancesRequest {
6
7
  }
7
8
  export interface PurchaseScheduledInstancesCommandOutput extends PurchaseScheduledInstancesResult, __MetadataBearer {
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
2
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
3
  import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
4
- import { RebootInstancesRequest } from "../models/models_5";
4
+ import { RebootInstancesRequest } from "../models/models_6";
5
5
  export interface RebootInstancesCommandInput extends RebootInstancesRequest {
6
6
  }
7
7
  export interface RebootInstancesCommandOutput extends __MetadataBearer {
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@aws-sdk/smithy-client";
2
2
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
3
  import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
4
- import { RegisterImageRequest, RegisterImageResult } from "../models/models_5";
4
+ import { RegisterImageRequest, RegisterImageResult } from "../models/models_6";
5
5
  export interface RegisterImageCommandInput extends RegisterImageRequest {
6
6
  }
7
7
  export interface RegisterImageCommandOutput extends RegisterImageResult, __MetadataBearer {
@@ -1,4 +1,4 @@
1
- import { AccountAttribute, AccountAttributeName, Address, AddressAttribute, AddressAttributeName, ApplianceModeSupportValue, BundleTask, ByoipCidr, CapacityReservation, CapacityReservationFleetState, CarrierGateway, ClientVpnAuthorizationRuleStatus, ClientVpnEndpointStatus, ClientVpnRouteStatus, DnsSupportValue, DynamicRoutingValue, FleetCapacityReservation, FleetCapacityReservationTenancy, FleetInstanceMatchCriteria, GatewayType, InstanceEventWindowState, Ipv6SupportValue, Tag, TagSpecification, Tenancy, TransitGatewayAttachmentResourceType, TransitGatewayAttachmentState, TransitGatewayPeeringAttachment, TransitGatewayVpcAttachment, UnsuccessfulItem, VolumeAttachment, Vpc, VpcAttachment, VpcPeeringConnection } from "./models_0";
1
+ import { AccountAttribute, AccountAttributeName, Address, AddressAttribute, AddressAttributeName, ApplianceModeSupportValue, BundleTask, ByoipCidr, CapacityReservation, CapacityReservationFleetState, CarrierGateway, ClientVpnEndpointStatus, ClientVpnRouteStatus, DnsSupportValue, DynamicRoutingValue, FleetCapacityReservation, FleetCapacityReservationTenancy, FleetInstanceMatchCriteria, GatewayType, InstanceEventWindowState, Ipv6SupportValue, Tag, TagSpecification, Tenancy, TransitGatewayAttachmentResourceType, TransitGatewayAttachmentState, TransitGatewayPeeringAttachment, TransitGatewayVpcAttachment, UnsuccessfulItem, VolumeAttachment, Vpc, VpcAttachment, VpcPeeringConnection } from "./models_0";
2
2
  import { AutoAcceptSharedAttachmentsValue, DefaultRouteTableAssociationValue, DefaultRouteTablePropagationValue, GroupIdentifier, Ipam, IpamPool, IpamScope, LaunchTemplate, LocalGatewayRoute, LocalGatewayRouteTableVpcAssociation, ManagedPrefixList, MulticastSupportValue, SubnetCidrReservation, VolumeType, VpnEcmpSupportValue } from "./models_1";
3
3
  /**
4
4
  * <p>Describes the options for a transit gateway.</p>
@@ -1727,6 +1727,36 @@ export interface IKEVersionsRequestListValue {
1727
1727
  */
1728
1728
  Value?: string;
1729
1729
  }
1730
+ /**
1731
+ * <p>Options for sending VPN tunnel logs to CloudWatch.</p>
1732
+ */
1733
+ export interface CloudWatchLogOptionsSpecification {
1734
+ /**
1735
+ * <p>Enable or disable VPN tunnel logging feature. Default value is <code>False</code>.</p>
1736
+ * <p>Valid values: <code>True</code> | <code>False</code>
1737
+ * </p>
1738
+ */
1739
+ LogEnabled?: boolean;
1740
+ /**
1741
+ * <p>The Amazon Resource Name (ARN) of the CloudWatch log group to send logs to.</p>
1742
+ */
1743
+ LogGroupArn?: string;
1744
+ /**
1745
+ * <p>Set log format. Default format is <code>json</code>.</p>
1746
+ * <p>Valid values: <code>json</code> | <code>text</code>
1747
+ * </p>
1748
+ */
1749
+ LogOutputFormat?: string;
1750
+ }
1751
+ /**
1752
+ * <p>Options for logging VPN tunnel activity.</p>
1753
+ */
1754
+ export interface VpnTunnelLogOptionsSpecification {
1755
+ /**
1756
+ * <p>Options for sending VPN tunnel logs to CloudWatch.</p>
1757
+ */
1758
+ CloudWatchLogOptions?: CloudWatchLogOptionsSpecification;
1759
+ }
1730
1760
  /**
1731
1761
  * <p>Specifies a Diffie-Hellman group number for the VPN tunnel for phase 1 IKE
1732
1762
  * negotiations.</p>
@@ -1973,6 +2003,10 @@ export interface VpnTunnelOptionsSpecification {
1973
2003
  * </p>
1974
2004
  */
1975
2005
  StartupAction?: string;
2006
+ /**
2007
+ * <p>Options for logging VPN tunnel activity.</p>
2008
+ */
2009
+ LogOptions?: VpnTunnelLogOptionsSpecification;
1976
2010
  }
1977
2011
  /**
1978
2012
  * <p>Describes VPN connection options.</p>
@@ -2093,6 +2127,36 @@ export interface IKEVersionsListValue {
2093
2127
  */
2094
2128
  Value?: string;
2095
2129
  }
2130
+ /**
2131
+ * <p>Options for sending VPN tunnel logs to CloudWatch.</p>
2132
+ */
2133
+ export interface CloudWatchLogOptions {
2134
+ /**
2135
+ * <p>Status of VPN tunnel logging feature. Default value is <code>False</code>.</p>
2136
+ * <p>Valid values: <code>True</code> | <code>False</code>
2137
+ * </p>
2138
+ */
2139
+ LogEnabled?: boolean;
2140
+ /**
2141
+ * <p>The Amazon Resource Name (ARN) of the CloudWatch log group to send logs to.</p>
2142
+ */
2143
+ LogGroupArn?: string;
2144
+ /**
2145
+ * <p>Configured log format. Default format is <code>json</code>.</p>
2146
+ * <p>Valid values: <code>json</code> | <code>text</code>
2147
+ * </p>
2148
+ */
2149
+ LogOutputFormat?: string;
2150
+ }
2151
+ /**
2152
+ * <p>Options for logging VPN tunnel activity.</p>
2153
+ */
2154
+ export interface VpnTunnelLogOptions {
2155
+ /**
2156
+ * <p>Options for sending VPN tunnel logs to CloudWatch.</p>
2157
+ */
2158
+ CloudWatchLogOptions?: CloudWatchLogOptions;
2159
+ }
2096
2160
  /**
2097
2161
  * <p>The Diffie-Hellmann group number for phase 1 IKE negotiations.</p>
2098
2162
  */
@@ -2236,6 +2300,10 @@ export interface TunnelOption {
2236
2300
  * <p>The action to take when the establishing the VPN tunnels for a VPN connection.</p>
2237
2301
  */
2238
2302
  StartupAction?: string;
2303
+ /**
2304
+ * <p>Options for logging VPN tunnel activity.</p>
2305
+ */
2306
+ LogOptions?: VpnTunnelLogOptions;
2239
2307
  }
2240
2308
  /**
2241
2309
  * <p>Describes VPN connection options.</p>
@@ -5042,115 +5110,6 @@ export interface DescribeClassicLinkInstancesResult {
5042
5110
  */
5043
5111
  NextToken?: string;
5044
5112
  }
5045
- export interface DescribeClientVpnAuthorizationRulesRequest {
5046
- /**
5047
- * <p>The ID of the Client VPN endpoint.</p>
5048
- */
5049
- ClientVpnEndpointId: string | undefined;
5050
- /**
5051
- * <p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
5052
- */
5053
- DryRun?: boolean;
5054
- /**
5055
- * <p>The token to retrieve the next page of results.</p>
5056
- */
5057
- NextToken?: string;
5058
- /**
5059
- * <p>One or more filters. Filter names and values are case-sensitive.</p>
5060
- * <ul>
5061
- * <li>
5062
- * <p>
5063
- * <code>description</code> - The description of the authorization rule.</p>
5064
- * </li>
5065
- * <li>
5066
- * <p>
5067
- * <code>destination-cidr</code> - The CIDR of the network to which the authorization rule
5068
- * applies.</p>
5069
- * </li>
5070
- * <li>
5071
- * <p>
5072
- * <code>group-id</code> - The ID of the Active Directory group to which the authorization rule grants access.</p>
5073
- * </li>
5074
- * </ul>
5075
- */
5076
- Filters?: Filter[];
5077
- /**
5078
- * <p>The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the nextToken value.</p>
5079
- */
5080
- MaxResults?: number;
5081
- }
5082
- /**
5083
- * <p>Information about an authorization rule.</p>
5084
- */
5085
- export interface AuthorizationRule {
5086
- /**
5087
- * <p>The ID of the Client VPN endpoint with which the authorization rule is associated.</p>
5088
- */
5089
- ClientVpnEndpointId?: string;
5090
- /**
5091
- * <p>A brief description of the authorization rule.</p>
5092
- */
5093
- Description?: string;
5094
- /**
5095
- * <p>The ID of the Active Directory group to which the authorization rule grants access.</p>
5096
- */
5097
- GroupId?: string;
5098
- /**
5099
- * <p>Indicates whether the authorization rule grants access to all clients.</p>
5100
- */
5101
- AccessAll?: boolean;
5102
- /**
5103
- * <p>The IPv4 address range, in CIDR notation, of the network to which the authorization rule applies.</p>
5104
- */
5105
- DestinationCidr?: string;
5106
- /**
5107
- * <p>The current state of the authorization rule.</p>
5108
- */
5109
- Status?: ClientVpnAuthorizationRuleStatus;
5110
- }
5111
- export interface DescribeClientVpnAuthorizationRulesResult {
5112
- /**
5113
- * <p>Information about the authorization rules.</p>
5114
- */
5115
- AuthorizationRules?: AuthorizationRule[];
5116
- /**
5117
- * <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>
5118
- */
5119
- NextToken?: string;
5120
- }
5121
- export interface DescribeClientVpnConnectionsRequest {
5122
- /**
5123
- * <p>The ID of the Client VPN endpoint.</p>
5124
- */
5125
- ClientVpnEndpointId: string | undefined;
5126
- /**
5127
- * <p>One or more filters. Filter names and values are case-sensitive.</p>
5128
- * <ul>
5129
- * <li>
5130
- * <p>
5131
- * <code>connection-id</code> - The ID of the connection.</p>
5132
- * </li>
5133
- * <li>
5134
- * <p>
5135
- * <code>username</code> - For Active Directory client authentication, the user name of the
5136
- * client who established the client connection.</p>
5137
- * </li>
5138
- * </ul>
5139
- */
5140
- Filters?: Filter[];
5141
- /**
5142
- * <p>The token to retrieve the next page of results.</p>
5143
- */
5144
- NextToken?: string;
5145
- /**
5146
- * <p>The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the nextToken value.</p>
5147
- */
5148
- MaxResults?: number;
5149
- /**
5150
- * <p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
5151
- */
5152
- DryRun?: boolean;
5153
- }
5154
5113
  /**
5155
5114
  * @internal
5156
5115
  */
@@ -5411,6 +5370,14 @@ export declare const CreateVpcPeeringConnectionResultFilterSensitiveLog: (obj: C
5411
5370
  * @internal
5412
5371
  */
5413
5372
  export declare const IKEVersionsRequestListValueFilterSensitiveLog: (obj: IKEVersionsRequestListValue) => any;
5373
+ /**
5374
+ * @internal
5375
+ */
5376
+ export declare const CloudWatchLogOptionsSpecificationFilterSensitiveLog: (obj: CloudWatchLogOptionsSpecification) => any;
5377
+ /**
5378
+ * @internal
5379
+ */
5380
+ export declare const VpnTunnelLogOptionsSpecificationFilterSensitiveLog: (obj: VpnTunnelLogOptionsSpecification) => any;
5414
5381
  /**
5415
5382
  * @internal
5416
5383
  */
@@ -5451,6 +5418,14 @@ export declare const CreateVpnConnectionRequestFilterSensitiveLog: (obj: CreateV
5451
5418
  * @internal
5452
5419
  */
5453
5420
  export declare const IKEVersionsListValueFilterSensitiveLog: (obj: IKEVersionsListValue) => any;
5421
+ /**
5422
+ * @internal
5423
+ */
5424
+ export declare const CloudWatchLogOptionsFilterSensitiveLog: (obj: CloudWatchLogOptions) => any;
5425
+ /**
5426
+ * @internal
5427
+ */
5428
+ export declare const VpnTunnelLogOptionsFilterSensitiveLog: (obj: VpnTunnelLogOptions) => any;
5454
5429
  /**
5455
5430
  * @internal
5456
5431
  */
@@ -6175,19 +6150,3 @@ export declare const ClassicLinkInstanceFilterSensitiveLog: (obj: ClassicLinkIns
6175
6150
  * @internal
6176
6151
  */
6177
6152
  export declare const DescribeClassicLinkInstancesResultFilterSensitiveLog: (obj: DescribeClassicLinkInstancesResult) => any;
6178
- /**
6179
- * @internal
6180
- */
6181
- export declare const DescribeClientVpnAuthorizationRulesRequestFilterSensitiveLog: (obj: DescribeClientVpnAuthorizationRulesRequest) => any;
6182
- /**
6183
- * @internal
6184
- */
6185
- export declare const AuthorizationRuleFilterSensitiveLog: (obj: AuthorizationRule) => any;
6186
- /**
6187
- * @internal
6188
- */
6189
- export declare const DescribeClientVpnAuthorizationRulesResultFilterSensitiveLog: (obj: DescribeClientVpnAuthorizationRulesResult) => any;
6190
- /**
6191
- * @internal
6192
- */
6193
- export declare const DescribeClientVpnConnectionsRequestFilterSensitiveLog: (obj: DescribeClientVpnConnectionsRequest) => any;