@aws-sdk/client-direct-connect 3.43.0 → 3.47.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,56 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
23
+
24
+
25
+ ### Features
26
+
27
+ * **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
28
+ * end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
29
+
30
+
31
+
32
+
33
+
34
+ # [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
35
+
36
+
37
+ ### Features
38
+
39
+ * **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
40
+
41
+
42
+
43
+
44
+
45
+ # [3.44.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.43.0...v3.44.0) (2021-12-02)
46
+
47
+
48
+ ### Features
49
+
50
+ * **clients:** update clients as of 2021/12/01 ([#3078](https://github.com/aws/aws-sdk-js-v3/issues/3078)) ([9c44188](https://github.com/aws/aws-sdk-js-v3/commit/9c44188265ea484d55c50848d7daae5571007ce0))
51
+
52
+
53
+
54
+
55
+
6
56
  # [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
7
57
 
8
58
  **Note:** Version bump only for package @aws-sdk/client-direct-connect
@@ -5,10 +5,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
5
5
  const regionHash = {
6
6
  "us-east-1": {
7
7
  variants: [
8
- {
9
- hostname: "directconnect.us-east-1.amazonaws.com",
10
- tags: [],
11
- },
12
8
  {
13
9
  hostname: "directconnect-fips.us-east-1.amazonaws.com",
14
10
  tags: ["fips"],
@@ -17,10 +13,6 @@ const regionHash = {
17
13
  },
18
14
  "us-east-2": {
19
15
  variants: [
20
- {
21
- hostname: "directconnect.us-east-2.amazonaws.com",
22
- tags: [],
23
- },
24
16
  {
25
17
  hostname: "directconnect-fips.us-east-2.amazonaws.com",
26
18
  tags: ["fips"],
@@ -47,10 +39,6 @@ const regionHash = {
47
39
  },
48
40
  "us-west-1": {
49
41
  variants: [
50
- {
51
- hostname: "directconnect.us-west-1.amazonaws.com",
52
- tags: [],
53
- },
54
42
  {
55
43
  hostname: "directconnect-fips.us-west-1.amazonaws.com",
56
44
  tags: ["fips"],
@@ -59,10 +47,6 @@ const regionHash = {
59
47
  },
60
48
  "us-west-2": {
61
49
  variants: [
62
- {
63
- hostname: "directconnect.us-west-2.amazonaws.com",
64
- tags: [],
65
- },
66
50
  {
67
51
  hostname: "directconnect-fips.us-west-2.amazonaws.com",
68
52
  tags: ["fips"],
@@ -81,6 +65,7 @@ const partitionHash = {
81
65
  "ap-south-1",
82
66
  "ap-southeast-1",
83
67
  "ap-southeast-2",
68
+ "ap-southeast-3",
84
69
  "ca-central-1",
85
70
  "eu-central-1",
86
71
  "eu-north-1",
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateDirectConnectGatewayRequest = exports.CreateConnectionRequest = exports.CreateBGPPeerResponse = exports.CreateBGPPeerRequest = exports.NewBGPPeer = exports.Connections = exports.ConfirmTransitVirtualInterfaceResponse = exports.ConfirmTransitVirtualInterfaceRequest = exports.ConfirmPublicVirtualInterfaceResponse = exports.ConfirmPublicVirtualInterfaceRequest = exports.ConfirmPrivateVirtualInterfaceResponse = exports.ConfirmPrivateVirtualInterfaceRequest = exports.ConfirmCustomerAgreementResponse = exports.ConfirmCustomerAgreementRequest = exports.ConfirmConnectionResponse = exports.ConfirmConnectionRequest = exports.AssociateVirtualInterfaceRequest = exports.AssociateMacSecKeyResponse = exports.AssociateMacSecKeyRequest = exports.AssociateHostedConnectionRequest = exports.AssociateConnectionWithLagRequest = exports.AllocateTransitVirtualInterfaceResult = exports.AllocateTransitVirtualInterfaceRequest = exports.NewTransitVirtualInterfaceAllocation = exports.AllocatePublicVirtualInterfaceRequest = exports.NewPublicVirtualInterfaceAllocation = exports.VirtualInterface = exports.BGPPeer = exports.BGPStatus = exports.BGPPeerState = exports.AllocatePrivateVirtualInterfaceRequest = exports.NewPrivateVirtualInterfaceAllocation = exports.TooManyTagsException = exports.DuplicateTagKeysException = exports.AllocateHostedConnectionRequest = exports.Connection = exports.Tag = exports.MacSecKey = exports.HasLogicalRedundancy = exports.AllocateConnectionOnInterconnectRequest = exports.CustomerAgreement = exports.AddressFamily = exports.DirectConnectServerException = exports.DirectConnectClientException = exports.AcceptDirectConnectGatewayAssociationProposalResult = exports.DirectConnectGatewayAssociation = exports.AssociatedGateway = exports.GatewayType = exports.AcceptDirectConnectGatewayAssociationProposalRequest = exports.RouteFilterPrefix = void 0;
4
- exports.DescribeHostedConnectionsRequest = exports.DescribeDirectConnectGatewaysResult = exports.DescribeDirectConnectGatewaysRequest = exports.DescribeDirectConnectGatewayAttachmentsResult = exports.DirectConnectGatewayAttachment = exports.DescribeDirectConnectGatewayAttachmentsRequest = exports.DescribeDirectConnectGatewayAssociationsResult = exports.DescribeDirectConnectGatewayAssociationsRequest = exports.DescribeDirectConnectGatewayAssociationProposalsResult = exports.DescribeDirectConnectGatewayAssociationProposalsRequest = exports.DescribeCustomerMetadataResponse = exports.NniPartnerType = exports.DescribeConnectionsOnInterconnectRequest = exports.DescribeConnectionsRequest = exports.DescribeConnectionLoaResponse = exports.Loa = exports.DescribeConnectionLoaRequest = exports.LoaContentType = exports.DeleteVirtualInterfaceResponse = exports.DeleteVirtualInterfaceRequest = exports.DeleteLagRequest = exports.DeleteInterconnectResponse = exports.DeleteInterconnectRequest = exports.DeleteDirectConnectGatewayAssociationProposalResult = exports.DeleteDirectConnectGatewayAssociationProposalRequest = exports.DeleteDirectConnectGatewayAssociationResult = exports.DeleteDirectConnectGatewayAssociationRequest = exports.DeleteDirectConnectGatewayResult = exports.DeleteDirectConnectGatewayRequest = exports.DeleteConnectionRequest = exports.DeleteBGPPeerResponse = exports.DeleteBGPPeerRequest = exports.CreateTransitVirtualInterfaceResult = exports.CreateTransitVirtualInterfaceRequest = exports.NewTransitVirtualInterface = exports.CreatePublicVirtualInterfaceRequest = exports.NewPublicVirtualInterface = exports.CreatePrivateVirtualInterfaceRequest = exports.NewPrivateVirtualInterface = exports.Lag = exports.CreateLagRequest = exports.Interconnect = exports.CreateInterconnectRequest = exports.CreateDirectConnectGatewayAssociationProposalResult = exports.DirectConnectGatewayAssociationProposal = exports.CreateDirectConnectGatewayAssociationProposalRequest = exports.CreateDirectConnectGatewayAssociationResult = exports.CreateDirectConnectGatewayAssociationRequest = exports.CreateDirectConnectGatewayResult = exports.DirectConnectGateway = void 0;
5
- exports.UpdateVirtualInterfaceAttributesRequest = exports.UpdateLagRequest = exports.UpdateDirectConnectGatewayAssociationResult = exports.UpdateDirectConnectGatewayAssociationRequest = exports.UpdateDirectConnectGatewayResponse = exports.UpdateDirectConnectGatewayRequest = exports.UpdateConnectionRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StopBgpFailoverTestResponse = exports.StopBgpFailoverTestRequest = exports.StartBgpFailoverTestResponse = exports.StartBgpFailoverTestRequest = exports.ListVirtualInterfaceTestHistoryResponse = exports.VirtualInterfaceTestHistory = exports.ListVirtualInterfaceTestHistoryRequest = exports.DisassociateMacSecKeyResponse = exports.DisassociateMacSecKeyRequest = exports.DisassociateConnectionFromLagRequest = exports.VirtualInterfaces = exports.DescribeVirtualInterfacesRequest = exports.VirtualGateways = exports.VirtualGateway = exports.DescribeTagsResponse = exports.ResourceTag = exports.DescribeTagsRequest = exports.DescribeRouterConfigurationResponse = exports.RouterType = exports.DescribeRouterConfigurationRequest = exports.Locations = exports.Location = exports.DescribeLoaRequest = exports.Lags = exports.DescribeLagsRequest = exports.Interconnects = exports.DescribeInterconnectsRequest = exports.DescribeInterconnectLoaResponse = exports.DescribeInterconnectLoaRequest = void 0;
3
+ exports.CreateDirectConnectGatewayAssociationResult = exports.CreateDirectConnectGatewayAssociationRequest = exports.CreateDirectConnectGatewayResult = exports.DirectConnectGateway = exports.CreateDirectConnectGatewayRequest = exports.CreateConnectionRequest = exports.CreateBGPPeerResponse = exports.CreateBGPPeerRequest = exports.NewBGPPeer = exports.Connections = exports.ConfirmTransitVirtualInterfaceResponse = exports.ConfirmTransitVirtualInterfaceRequest = exports.ConfirmPublicVirtualInterfaceResponse = exports.ConfirmPublicVirtualInterfaceRequest = exports.ConfirmPrivateVirtualInterfaceResponse = exports.ConfirmPrivateVirtualInterfaceRequest = exports.ConfirmCustomerAgreementResponse = exports.ConfirmCustomerAgreementRequest = exports.ConfirmConnectionResponse = exports.ConfirmConnectionRequest = exports.AssociateVirtualInterfaceRequest = exports.AssociateMacSecKeyResponse = exports.AssociateMacSecKeyRequest = exports.AssociateHostedConnectionRequest = exports.AssociateConnectionWithLagRequest = exports.AllocateTransitVirtualInterfaceResult = exports.AllocateTransitVirtualInterfaceRequest = exports.NewTransitVirtualInterfaceAllocation = exports.AllocatePublicVirtualInterfaceRequest = exports.NewPublicVirtualInterfaceAllocation = exports.VirtualInterface = exports.BGPPeer = exports.BGPStatus = exports.BGPPeerState = exports.AllocatePrivateVirtualInterfaceRequest = exports.NewPrivateVirtualInterfaceAllocation = exports.AllocateHostedConnectionRequest = exports.Connection = exports.Tag = exports.MacSecKey = exports.HasLogicalRedundancy = exports.AllocateConnectionOnInterconnectRequest = exports.CustomerAgreement = exports.AddressFamily = exports.AcceptDirectConnectGatewayAssociationProposalResult = exports.DirectConnectGatewayAssociation = exports.AssociatedGateway = exports.GatewayType = exports.AcceptDirectConnectGatewayAssociationProposalRequest = exports.RouteFilterPrefix = void 0;
4
+ exports.Interconnects = exports.DescribeInterconnectsRequest = exports.DescribeInterconnectLoaResponse = exports.DescribeInterconnectLoaRequest = exports.DescribeHostedConnectionsRequest = exports.DescribeDirectConnectGatewaysResult = exports.DescribeDirectConnectGatewaysRequest = exports.DescribeDirectConnectGatewayAttachmentsResult = exports.DirectConnectGatewayAttachment = exports.DescribeDirectConnectGatewayAttachmentsRequest = exports.DescribeDirectConnectGatewayAssociationsResult = exports.DescribeDirectConnectGatewayAssociationsRequest = exports.DescribeDirectConnectGatewayAssociationProposalsResult = exports.DescribeDirectConnectGatewayAssociationProposalsRequest = exports.DescribeCustomerMetadataResponse = exports.NniPartnerType = exports.DescribeConnectionsOnInterconnectRequest = exports.DescribeConnectionsRequest = exports.DescribeConnectionLoaResponse = exports.Loa = exports.DescribeConnectionLoaRequest = exports.LoaContentType = exports.DeleteVirtualInterfaceResponse = exports.DeleteVirtualInterfaceRequest = exports.DeleteLagRequest = exports.DeleteInterconnectResponse = exports.DeleteInterconnectRequest = exports.DeleteDirectConnectGatewayAssociationProposalResult = exports.DeleteDirectConnectGatewayAssociationProposalRequest = exports.DeleteDirectConnectGatewayAssociationResult = exports.DeleteDirectConnectGatewayAssociationRequest = exports.DeleteDirectConnectGatewayResult = exports.DeleteDirectConnectGatewayRequest = exports.DeleteConnectionRequest = exports.DeleteBGPPeerResponse = exports.DeleteBGPPeerRequest = exports.CreateTransitVirtualInterfaceResult = exports.CreateTransitVirtualInterfaceRequest = exports.NewTransitVirtualInterface = exports.CreatePublicVirtualInterfaceRequest = exports.NewPublicVirtualInterface = exports.CreatePrivateVirtualInterfaceRequest = exports.NewPrivateVirtualInterface = exports.Lag = exports.CreateLagRequest = exports.Interconnect = exports.CreateInterconnectRequest = exports.CreateDirectConnectGatewayAssociationProposalResult = exports.DirectConnectGatewayAssociationProposal = exports.CreateDirectConnectGatewayAssociationProposalRequest = void 0;
5
+ exports.UpdateVirtualInterfaceAttributesRequest = exports.UpdateLagRequest = exports.UpdateDirectConnectGatewayAssociationResult = exports.UpdateDirectConnectGatewayAssociationRequest = exports.UpdateDirectConnectGatewayResponse = exports.UpdateDirectConnectGatewayRequest = exports.UpdateConnectionRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StopBgpFailoverTestResponse = exports.StopBgpFailoverTestRequest = exports.StartBgpFailoverTestResponse = exports.StartBgpFailoverTestRequest = exports.ListVirtualInterfaceTestHistoryResponse = exports.VirtualInterfaceTestHistory = exports.ListVirtualInterfaceTestHistoryRequest = exports.DisassociateMacSecKeyResponse = exports.DisassociateMacSecKeyRequest = exports.DisassociateConnectionFromLagRequest = exports.VirtualInterfaces = exports.DescribeVirtualInterfacesRequest = exports.VirtualGateways = exports.VirtualGateway = exports.DescribeTagsResponse = exports.ResourceTag = exports.DescribeTagsRequest = exports.DescribeRouterConfigurationResponse = exports.RouterType = exports.DescribeRouterConfigurationRequest = exports.Locations = exports.Location = exports.DescribeLoaRequest = exports.Lags = exports.DescribeLagsRequest = void 0;
6
6
  var RouteFilterPrefix;
7
7
  (function (RouteFilterPrefix) {
8
8
  RouteFilterPrefix.filterSensitiveLog = (obj) => ({
@@ -38,18 +38,6 @@ var AcceptDirectConnectGatewayAssociationProposalResult;
38
38
  ...obj,
39
39
  });
40
40
  })(AcceptDirectConnectGatewayAssociationProposalResult = exports.AcceptDirectConnectGatewayAssociationProposalResult || (exports.AcceptDirectConnectGatewayAssociationProposalResult = {}));
41
- var DirectConnectClientException;
42
- (function (DirectConnectClientException) {
43
- DirectConnectClientException.filterSensitiveLog = (obj) => ({
44
- ...obj,
45
- });
46
- })(DirectConnectClientException = exports.DirectConnectClientException || (exports.DirectConnectClientException = {}));
47
- var DirectConnectServerException;
48
- (function (DirectConnectServerException) {
49
- DirectConnectServerException.filterSensitiveLog = (obj) => ({
50
- ...obj,
51
- });
52
- })(DirectConnectServerException = exports.DirectConnectServerException || (exports.DirectConnectServerException = {}));
53
41
  var AddressFamily;
54
42
  (function (AddressFamily) {
55
43
  AddressFamily["IPv4"] = "ipv4";
@@ -97,18 +85,6 @@ var AllocateHostedConnectionRequest;
97
85
  ...obj,
98
86
  });
99
87
  })(AllocateHostedConnectionRequest = exports.AllocateHostedConnectionRequest || (exports.AllocateHostedConnectionRequest = {}));
100
- var DuplicateTagKeysException;
101
- (function (DuplicateTagKeysException) {
102
- DuplicateTagKeysException.filterSensitiveLog = (obj) => ({
103
- ...obj,
104
- });
105
- })(DuplicateTagKeysException = exports.DuplicateTagKeysException || (exports.DuplicateTagKeysException = {}));
106
- var TooManyTagsException;
107
- (function (TooManyTagsException) {
108
- TooManyTagsException.filterSensitiveLog = (obj) => ({
109
- ...obj,
110
- });
111
- })(TooManyTagsException = exports.TooManyTagsException || (exports.TooManyTagsException = {}));
112
88
  var NewPrivateVirtualInterfaceAllocation;
113
89
  (function (NewPrivateVirtualInterfaceAllocation) {
114
90
  NewPrivateVirtualInterfaceAllocation.filterSensitiveLog = (obj) => ({
@@ -4784,6 +4784,8 @@ const serializeAws_json1_1NewPrivateVirtualInterface = (input, context) => {
4784
4784
  input.customerAddress !== null && { customerAddress: input.customerAddress }),
4785
4785
  ...(input.directConnectGatewayId !== undefined &&
4786
4786
  input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId }),
4787
+ ...(input.enableSiteLink !== undefined &&
4788
+ input.enableSiteLink !== null && { enableSiteLink: input.enableSiteLink }),
4787
4789
  ...(input.mtu !== undefined && input.mtu !== null && { mtu: input.mtu }),
4788
4790
  ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
4789
4791
  ...(input.virtualGatewayId !== undefined &&
@@ -4854,6 +4856,8 @@ const serializeAws_json1_1NewTransitVirtualInterface = (input, context) => {
4854
4856
  input.customerAddress !== null && { customerAddress: input.customerAddress }),
4855
4857
  ...(input.directConnectGatewayId !== undefined &&
4856
4858
  input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId }),
4859
+ ...(input.enableSiteLink !== undefined &&
4860
+ input.enableSiteLink !== null && { enableSiteLink: input.enableSiteLink }),
4857
4861
  ...(input.mtu !== undefined && input.mtu !== null && { mtu: input.mtu }),
4858
4862
  ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
4859
4863
  ...(input.virtualInterfaceName !== undefined &&
@@ -4997,9 +5001,13 @@ const serializeAws_json1_1UpdateLagRequest = (input, context) => {
4997
5001
  };
4998
5002
  const serializeAws_json1_1UpdateVirtualInterfaceAttributesRequest = (input, context) => {
4999
5003
  return {
5004
+ ...(input.enableSiteLink !== undefined &&
5005
+ input.enableSiteLink !== null && { enableSiteLink: input.enableSiteLink }),
5000
5006
  ...(input.mtu !== undefined && input.mtu !== null && { mtu: input.mtu }),
5001
5007
  ...(input.virtualInterfaceId !== undefined &&
5002
5008
  input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }),
5009
+ ...(input.virtualInterfaceName !== undefined &&
5010
+ input.virtualInterfaceName !== null && { virtualInterfaceName: input.virtualInterfaceName }),
5003
5011
  };
5004
5012
  };
5005
5013
  const deserializeAws_json1_1AcceptDirectConnectGatewayAssociationProposalResult = (output, context) => {
@@ -5751,6 +5759,7 @@ const deserializeAws_json1_1VirtualInterface = (output, context) => {
5751
5759
  routeFilterPrefixes: output.routeFilterPrefixes !== undefined && output.routeFilterPrefixes !== null
5752
5760
  ? deserializeAws_json1_1RouteFilterPrefixList(output.routeFilterPrefixes, context)
5753
5761
  : undefined,
5762
+ siteLinkEnabled: smithy_client_1.expectBoolean(output.siteLinkEnabled),
5754
5763
  tags: output.tags !== undefined && output.tags !== null
5755
5764
  ? deserializeAws_json1_1TagList(output.tags, context)
5756
5765
  : undefined,
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
13
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
17
+ const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
16
18
  const getRuntimeConfig = (config) => {
17
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
+ const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
21
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
18
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
19
23
  return {
20
24
  ...clientSharedValues,
21
25
  ...config,
22
26
  runtime: "browser",
27
+ defaultsMode,
23
28
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
24
29
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
25
30
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
27
32
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
28
33
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
29
34
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
30
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
31
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
35
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
32
37
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
33
38
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
34
39
  useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
@@ -16,14 +16,17 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
+ const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
19
20
  const getRuntimeConfig = (config) => {
20
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
- smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
+ const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
23
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
24
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
25
  return {
24
26
  ...clientSharedValues,
25
27
  ...config,
26
28
  runtime: "node",
29
+ defaultsMode,
27
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
28
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
29
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
@@ -31,8 +34,11 @@ const getRuntimeConfig = (config) => {
31
34
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
32
35
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
33
36
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
34
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
35
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
37
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
38
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
39
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
41
+ }),
36
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
37
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
38
44
  useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
@@ -3,10 +3,6 @@ import { getRegionInfo } from "@aws-sdk/config-resolver";
3
3
  var regionHash = {
4
4
  "us-east-1": {
5
5
  variants: [
6
- {
7
- hostname: "directconnect.us-east-1.amazonaws.com",
8
- tags: [],
9
- },
10
6
  {
11
7
  hostname: "directconnect-fips.us-east-1.amazonaws.com",
12
8
  tags: ["fips"],
@@ -15,10 +11,6 @@ var regionHash = {
15
11
  },
16
12
  "us-east-2": {
17
13
  variants: [
18
- {
19
- hostname: "directconnect.us-east-2.amazonaws.com",
20
- tags: [],
21
- },
22
14
  {
23
15
  hostname: "directconnect-fips.us-east-2.amazonaws.com",
24
16
  tags: ["fips"],
@@ -45,10 +37,6 @@ var regionHash = {
45
37
  },
46
38
  "us-west-1": {
47
39
  variants: [
48
- {
49
- hostname: "directconnect.us-west-1.amazonaws.com",
50
- tags: [],
51
- },
52
40
  {
53
41
  hostname: "directconnect-fips.us-west-1.amazonaws.com",
54
42
  tags: ["fips"],
@@ -57,10 +45,6 @@ var regionHash = {
57
45
  },
58
46
  "us-west-2": {
59
47
  variants: [
60
- {
61
- hostname: "directconnect.us-west-2.amazonaws.com",
62
- tags: [],
63
- },
64
48
  {
65
49
  hostname: "directconnect-fips.us-west-2.amazonaws.com",
66
50
  tags: ["fips"],
@@ -79,6 +63,7 @@ var partitionHash = {
79
63
  "ap-south-1",
80
64
  "ap-southeast-1",
81
65
  "ap-southeast-2",
66
+ "ap-southeast-3",
82
67
  "ca-central-1",
83
68
  "eu-central-1",
84
69
  "eu-north-1",
@@ -24,14 +24,6 @@ export var AcceptDirectConnectGatewayAssociationProposalResult;
24
24
  (function (AcceptDirectConnectGatewayAssociationProposalResult) {
25
25
  AcceptDirectConnectGatewayAssociationProposalResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
26
26
  })(AcceptDirectConnectGatewayAssociationProposalResult || (AcceptDirectConnectGatewayAssociationProposalResult = {}));
27
- export var DirectConnectClientException;
28
- (function (DirectConnectClientException) {
29
- DirectConnectClientException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
30
- })(DirectConnectClientException || (DirectConnectClientException = {}));
31
- export var DirectConnectServerException;
32
- (function (DirectConnectServerException) {
33
- DirectConnectServerException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
34
- })(DirectConnectServerException || (DirectConnectServerException = {}));
35
27
  export var AddressFamily;
36
28
  (function (AddressFamily) {
37
29
  AddressFamily["IPv4"] = "ipv4";
@@ -67,14 +59,6 @@ export var AllocateHostedConnectionRequest;
67
59
  (function (AllocateHostedConnectionRequest) {
68
60
  AllocateHostedConnectionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
69
61
  })(AllocateHostedConnectionRequest || (AllocateHostedConnectionRequest = {}));
70
- export var DuplicateTagKeysException;
71
- (function (DuplicateTagKeysException) {
72
- DuplicateTagKeysException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
73
- })(DuplicateTagKeysException || (DuplicateTagKeysException = {}));
74
- export var TooManyTagsException;
75
- (function (TooManyTagsException) {
76
- TooManyTagsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
77
- })(TooManyTagsException || (TooManyTagsException = {}));
78
62
  export var NewPrivateVirtualInterfaceAllocation;
79
63
  (function (NewPrivateVirtualInterfaceAllocation) {
80
64
  NewPrivateVirtualInterfaceAllocation.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -5196,9 +5196,10 @@ var serializeAws_json1_1NewBGPPeer = function (input, context) {
5196
5196
  input.customerAddress !== null && { customerAddress: input.customerAddress }));
5197
5197
  };
5198
5198
  var serializeAws_json1_1NewPrivateVirtualInterface = function (input, context) {
5199
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.addressFamily !== undefined && input.addressFamily !== null && { addressFamily: input.addressFamily })), (input.amazonAddress !== undefined && input.amazonAddress !== null && { amazonAddress: input.amazonAddress })), (input.asn !== undefined && input.asn !== null && { asn: input.asn })), (input.authKey !== undefined && input.authKey !== null && { authKey: input.authKey })), (input.customerAddress !== undefined &&
5199
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.addressFamily !== undefined && input.addressFamily !== null && { addressFamily: input.addressFamily })), (input.amazonAddress !== undefined && input.amazonAddress !== null && { amazonAddress: input.amazonAddress })), (input.asn !== undefined && input.asn !== null && { asn: input.asn })), (input.authKey !== undefined && input.authKey !== null && { authKey: input.authKey })), (input.customerAddress !== undefined &&
5200
5200
  input.customerAddress !== null && { customerAddress: input.customerAddress })), (input.directConnectGatewayId !== undefined &&
5201
- input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId })), (input.mtu !== undefined && input.mtu !== null && { mtu: input.mtu })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.virtualGatewayId !== undefined &&
5201
+ input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId })), (input.enableSiteLink !== undefined &&
5202
+ input.enableSiteLink !== null && { enableSiteLink: input.enableSiteLink })), (input.mtu !== undefined && input.mtu !== null && { mtu: input.mtu })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.virtualGatewayId !== undefined &&
5202
5203
  input.virtualGatewayId !== null && { virtualGatewayId: input.virtualGatewayId })), (input.virtualInterfaceName !== undefined &&
5203
5204
  input.virtualInterfaceName !== null && { virtualInterfaceName: input.virtualInterfaceName })), (input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }));
5204
5205
  };
@@ -5224,9 +5225,10 @@ var serializeAws_json1_1NewPublicVirtualInterfaceAllocation = function (input, c
5224
5225
  input.virtualInterfaceName !== null && { virtualInterfaceName: input.virtualInterfaceName })), (input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }));
5225
5226
  };
5226
5227
  var serializeAws_json1_1NewTransitVirtualInterface = function (input, context) {
5227
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.addressFamily !== undefined && input.addressFamily !== null && { addressFamily: input.addressFamily })), (input.amazonAddress !== undefined && input.amazonAddress !== null && { amazonAddress: input.amazonAddress })), (input.asn !== undefined && input.asn !== null && { asn: input.asn })), (input.authKey !== undefined && input.authKey !== null && { authKey: input.authKey })), (input.customerAddress !== undefined &&
5228
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.addressFamily !== undefined && input.addressFamily !== null && { addressFamily: input.addressFamily })), (input.amazonAddress !== undefined && input.amazonAddress !== null && { amazonAddress: input.amazonAddress })), (input.asn !== undefined && input.asn !== null && { asn: input.asn })), (input.authKey !== undefined && input.authKey !== null && { authKey: input.authKey })), (input.customerAddress !== undefined &&
5228
5229
  input.customerAddress !== null && { customerAddress: input.customerAddress })), (input.directConnectGatewayId !== undefined &&
5229
- input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId })), (input.mtu !== undefined && input.mtu !== null && { mtu: input.mtu })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.virtualInterfaceName !== undefined &&
5230
+ input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId })), (input.enableSiteLink !== undefined &&
5231
+ input.enableSiteLink !== null && { enableSiteLink: input.enableSiteLink })), (input.mtu !== undefined && input.mtu !== null && { mtu: input.mtu })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.virtualInterfaceName !== undefined &&
5230
5232
  input.virtualInterfaceName !== null && { virtualInterfaceName: input.virtualInterfaceName })), (input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }));
5231
5233
  };
5232
5234
  var serializeAws_json1_1NewTransitVirtualInterfaceAllocation = function (input, context) {
@@ -5321,8 +5323,10 @@ var serializeAws_json1_1UpdateLagRequest = function (input, context) {
5321
5323
  input.encryptionMode !== null && { encryptionMode: input.encryptionMode })), (input.lagId !== undefined && input.lagId !== null && { lagId: input.lagId })), (input.lagName !== undefined && input.lagName !== null && { lagName: input.lagName })), (input.minimumLinks !== undefined && input.minimumLinks !== null && { minimumLinks: input.minimumLinks }));
5322
5324
  };
5323
5325
  var serializeAws_json1_1UpdateVirtualInterfaceAttributesRequest = function (input, context) {
5324
- return __assign(__assign({}, (input.mtu !== undefined && input.mtu !== null && { mtu: input.mtu })), (input.virtualInterfaceId !== undefined &&
5325
- input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }));
5326
+ return __assign(__assign(__assign(__assign({}, (input.enableSiteLink !== undefined &&
5327
+ input.enableSiteLink !== null && { enableSiteLink: input.enableSiteLink })), (input.mtu !== undefined && input.mtu !== null && { mtu: input.mtu })), (input.virtualInterfaceId !== undefined &&
5328
+ input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId })), (input.virtualInterfaceName !== undefined &&
5329
+ input.virtualInterfaceName !== null && { virtualInterfaceName: input.virtualInterfaceName }));
5326
5330
  };
5327
5331
  var deserializeAws_json1_1AcceptDirectConnectGatewayAssociationProposalResult = function (output, context) {
5328
5332
  return {
@@ -6073,6 +6077,7 @@ var deserializeAws_json1_1VirtualInterface = function (output, context) {
6073
6077
  routeFilterPrefixes: output.routeFilterPrefixes !== undefined && output.routeFilterPrefixes !== null
6074
6078
  ? deserializeAws_json1_1RouteFilterPrefixList(output.routeFilterPrefixes, context)
6075
6079
  : undefined,
6080
+ siteLinkEnabled: __expectBoolean(output.siteLinkEnabled),
6076
6081
  tags: output.tags !== undefined && output.tags !== null
6077
6082
  ? deserializeAws_json1_1TagList(output.tags, context)
6078
6083
  : undefined,
@@ -1,8 +1,8 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
5
- import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
6
6
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
7
7
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
8
8
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
10
10
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
11
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
12
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
14
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
13
15
  export var getRuntimeConfig = function (config) {
14
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
+ var defaultsMode = resolveDefaultsModeConfig(config);
18
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
15
19
  var clientSharedValues = getSharedRuntimeConfig(config);
16
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
20
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
21
+ switch (_a.label) {
22
+ case 0: return [4, defaultConfigProvider()];
23
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
24
+ }
25
+ }); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
17
26
  };
@@ -1,21 +1,28 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
6
  import { Hash } from "@aws-sdk/hash-node";
7
- import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
7
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
8
8
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
9
- import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
10
10
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
11
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
15
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
16
17
  export var getRuntimeConfig = function (config) {
17
18
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
- emitWarningIfUnsupportedVersion(process.version);
19
+ var defaultsMode = resolveDefaultsModeConfig(config);
20
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
19
21
  var clientSharedValues = getSharedRuntimeConfig(config);
20
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
22
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
23
+ switch (_a.label) {
24
+ case 0: return [4, defaultConfigProvider()];
25
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
26
+ }
27
+ }); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
21
28
  };
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { AcceptDirectConnectGatewayAssociationProposalCommandInput, AcceptDirectConnectGatewayAssociationProposalCommandOutput } from "./commands/AcceptDirectConnectGatewayAssociationProposalCommand";
10
10
  import { AllocateConnectionOnInterconnectCommandInput, AllocateConnectionOnInterconnectCommandOutput } from "./commands/AllocateConnectionOnInterconnectCommand";
@@ -171,6 +171,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
171
171
  * @internal
172
172
  */
173
173
  defaultUserAgentProvider?: Provider<__UserAgent>;
174
+ /**
175
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
176
+ */
177
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
174
178
  }
175
179
  declare type DirectConnectClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
176
180
  /**
@@ -163,12 +163,6 @@ export interface DirectConnectClientException extends __SmithyException, $Metada
163
163
  $fault: "client";
164
164
  message?: string;
165
165
  }
166
- export declare namespace DirectConnectClientException {
167
- /**
168
- * @internal
169
- */
170
- const filterSensitiveLog: (obj: DirectConnectClientException) => any;
171
- }
172
166
  /**
173
167
  * <p>A server-side error occurred.</p>
174
168
  */
@@ -177,12 +171,6 @@ export interface DirectConnectServerException extends __SmithyException, $Metada
177
171
  $fault: "server";
178
172
  message?: string;
179
173
  }
180
- export declare namespace DirectConnectServerException {
181
- /**
182
- * @internal
183
- */
184
- const filterSensitiveLog: (obj: DirectConnectServerException) => any;
185
- }
186
174
  export declare enum AddressFamily {
187
175
  IPv4 = "ipv4",
188
176
  IPv6 = "ipv6"
@@ -491,12 +479,6 @@ export interface DuplicateTagKeysException extends __SmithyException, $MetadataB
491
479
  $fault: "client";
492
480
  message?: string;
493
481
  }
494
- export declare namespace DuplicateTagKeysException {
495
- /**
496
- * @internal
497
- */
498
- const filterSensitiveLog: (obj: DuplicateTagKeysException) => any;
499
- }
500
482
  /**
501
483
  * <p>You have reached the limit on the number of tags that can be assigned.</p>
502
484
  */
@@ -505,12 +487,6 @@ export interface TooManyTagsException extends __SmithyException, $MetadataBearer
505
487
  $fault: "client";
506
488
  message?: string;
507
489
  }
508
- export declare namespace TooManyTagsException {
509
- /**
510
- * @internal
511
- */
512
- const filterSensitiveLog: (obj: TooManyTagsException) => any;
513
- }
514
490
  /**
515
491
  * <p>Information about a private virtual interface to be provisioned on a connection.</p>
516
492
  */
@@ -825,6 +801,10 @@ export interface VirtualInterface {
825
801
  * <p>The tags associated with the virtual interface.</p>
826
802
  */
827
803
  tags?: Tag[];
804
+ /**
805
+ * <p>Indicates whether SiteLink is enabled.</p>
806
+ */
807
+ siteLinkEnabled?: boolean;
828
808
  }
829
809
  export declare namespace VirtualInterface {
830
810
  /**
@@ -1142,7 +1122,9 @@ export declare namespace ConfirmConnectionResponse {
1142
1122
  export interface ConfirmCustomerAgreementRequest {
1143
1123
  /**
1144
1124
  * <p>
1125
+ *
1145
1126
  * The name of the customer agreement.
1127
+ *
1146
1128
  * </p>
1147
1129
  */
1148
1130
  agreementName?: string;
@@ -2057,6 +2039,10 @@ export interface NewPrivateVirtualInterface {
2057
2039
  * <p>The tags associated with the private virtual interface.</p>
2058
2040
  */
2059
2041
  tags?: Tag[];
2042
+ /**
2043
+ * <p>Indicates whether to enable or disable SiteLink.</p>
2044
+ */
2045
+ enableSiteLink?: boolean;
2060
2046
  }
2061
2047
  export declare namespace NewPrivateVirtualInterface {
2062
2048
  /**
@@ -2189,6 +2175,10 @@ export interface NewTransitVirtualInterface {
2189
2175
  * <p>The tags associated with the transitive virtual interface.</p>
2190
2176
  */
2191
2177
  tags?: Tag[];
2178
+ /**
2179
+ * <p>Indicates whether to enable or disable SiteLink.</p>
2180
+ */
2181
+ enableSiteLink?: boolean;
2192
2182
  }
2193
2183
  export declare namespace NewTransitVirtualInterface {
2194
2184
  /**
@@ -3059,7 +3049,7 @@ export interface DescribeRouterConfigurationResponse {
3059
3049
  */
3060
3050
  virtualInterfaceId?: string;
3061
3051
  /**
3062
- * <p>The name of the virtual interface assigned by the customer network.</p>
3052
+ * <p>Provides the details about a virtual interface's router.</p>
3063
3053
  */
3064
3054
  virtualInterfaceName?: string;
3065
3055
  }
@@ -3555,6 +3545,14 @@ export interface UpdateVirtualInterfaceAttributesRequest {
3555
3545
  * <p>The maximum transmission unit (MTU), in bytes. The supported values are 1500 and 9001. The default value is 1500.</p>
3556
3546
  */
3557
3547
  mtu?: number;
3548
+ /**
3549
+ * <p>Indicates whether to enable or disable SiteLink.</p>
3550
+ */
3551
+ enableSiteLink?: boolean;
3552
+ /**
3553
+ * <p>The name of the virtual private interface.</p>
3554
+ */
3555
+ virtualInterfaceName?: string;
3558
3556
  }
3559
3557
  export declare namespace UpdateVirtualInterfaceAttributesRequest {
3560
3558
  /**
@@ -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 { DirectConnectClientConfig } from "./DirectConnectClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: DirectConnectClientConfig) => {
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: DirectConnectClientConfig) => {
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 { DirectConnectClientConfig } from "./DirectConnectClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: DirectConnectClientConfig) => {
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: DirectConnectClientConfig) => {
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;
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
8
  import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { AcceptDirectConnectGatewayAssociationProposalCommandInput, AcceptDirectConnectGatewayAssociationProposalCommandOutput } from "./commands/AcceptDirectConnectGatewayAssociationProposalCommand";
10
10
  import { AllocateConnectionOnInterconnectCommandInput, AllocateConnectionOnInterconnectCommandOutput } from "./commands/AllocateConnectionOnInterconnectCommand";
@@ -114,6 +114,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
114
114
  regionInfoProvider?: RegionInfoProvider;
115
115
 
116
116
  defaultUserAgentProvider?: Provider<__UserAgent>;
117
+
118
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
117
119
  }
118
120
  declare type DirectConnectClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
119
121
 
@@ -83,20 +83,12 @@ export interface DirectConnectClientException extends __SmithyException, $Metada
83
83
  $fault: "client";
84
84
  message?: string;
85
85
  }
86
- export declare namespace DirectConnectClientException {
87
-
88
- const filterSensitiveLog: (obj: DirectConnectClientException) => any;
89
- }
90
86
 
91
87
  export interface DirectConnectServerException extends __SmithyException, $MetadataBearer {
92
88
  name: "DirectConnectServerException";
93
89
  $fault: "server";
94
90
  message?: string;
95
91
  }
96
- export declare namespace DirectConnectServerException {
97
-
98
- const filterSensitiveLog: (obj: DirectConnectServerException) => any;
99
- }
100
92
  export declare enum AddressFamily {
101
93
  IPv4 = "ipv4",
102
94
  IPv6 = "ipv6"
@@ -235,20 +227,12 @@ export interface DuplicateTagKeysException extends __SmithyException, $MetadataB
235
227
  $fault: "client";
236
228
  message?: string;
237
229
  }
238
- export declare namespace DuplicateTagKeysException {
239
-
240
- const filterSensitiveLog: (obj: DuplicateTagKeysException) => any;
241
- }
242
230
 
243
231
  export interface TooManyTagsException extends __SmithyException, $MetadataBearer {
244
232
  name: "TooManyTagsException";
245
233
  $fault: "client";
246
234
  message?: string;
247
235
  }
248
- export declare namespace TooManyTagsException {
249
-
250
- const filterSensitiveLog: (obj: TooManyTagsException) => any;
251
- }
252
236
 
253
237
  export interface NewPrivateVirtualInterfaceAllocation {
254
238
 
@@ -378,6 +362,8 @@ export interface VirtualInterface {
378
362
  awsLogicalDeviceId?: string;
379
363
 
380
364
  tags?: Tag[];
365
+
366
+ siteLinkEnabled?: boolean;
381
367
  }
382
368
  export declare namespace VirtualInterface {
383
369
 
@@ -928,6 +914,8 @@ export interface NewPrivateVirtualInterface {
928
914
  directConnectGatewayId?: string;
929
915
 
930
916
  tags?: Tag[];
917
+
918
+ enableSiteLink?: boolean;
931
919
  }
932
920
  export declare namespace NewPrivateVirtualInterface {
933
921
 
@@ -1000,6 +988,8 @@ export interface NewTransitVirtualInterface {
1000
988
  directConnectGatewayId?: string;
1001
989
 
1002
990
  tags?: Tag[];
991
+
992
+ enableSiteLink?: boolean;
1003
993
  }
1004
994
  export declare namespace NewTransitVirtualInterface {
1005
995
 
@@ -1758,6 +1748,10 @@ export interface UpdateVirtualInterfaceAttributesRequest {
1758
1748
  virtualInterfaceId: string | undefined;
1759
1749
 
1760
1750
  mtu?: number;
1751
+
1752
+ enableSiteLink?: boolean;
1753
+
1754
+ virtualInterfaceName?: string;
1761
1755
  }
1762
1756
  export declare namespace UpdateVirtualInterfaceAttributesRequest {
1763
1757
 
@@ -1,8 +1,9 @@
1
- import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { DirectConnectClientConfig } from "./DirectConnectClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: DirectConnectClientConfig) => {
5
5
  runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
6
7
  base64Decoder: import("@aws-sdk/types").Decoder;
7
8
  base64Encoder: import("@aws-sdk/types").Encoder;
8
9
  bodyLengthChecker: (body: any) => number | undefined;
@@ -10,7 +11,7 @@ export declare const getRuntimeConfig: (config: DirectConnectClientConfig) => {
10
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
11
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
12
13
  region: string | import("@aws-sdk/types").Provider<any>;
13
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
14
15
  retryMode: string | import("@aws-sdk/types").Provider<string>;
15
16
  sha256: import("@aws-sdk/types").HashConstructor;
16
17
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -1,16 +1,17 @@
1
- import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
1
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
2
2
  import { DirectConnectClientConfig } from "./DirectConnectClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: DirectConnectClientConfig) => {
5
5
  runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
6
7
  base64Decoder: import("@aws-sdk/types").Decoder;
7
8
  base64Encoder: import("@aws-sdk/types").Encoder;
8
9
  bodyLengthChecker: (body: any) => number | undefined;
9
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
10
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
10
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
11
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
12
13
  region: string | import("@aws-sdk/types").Provider<string>;
13
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
14
15
  retryMode: string | import("@aws-sdk/types").Provider<string>;
15
16
  sha256: import("@aws-sdk/types").HashConstructor;
16
17
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -23,6 +23,7 @@ export declare const getRuntimeConfig: (config: DirectConnectClientConfig) => {
23
23
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
24
24
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
25
25
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
26
+ 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>;
26
27
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
27
28
  tls?: boolean | undefined;
28
29
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
package/package.json CHANGED
@@ -1,18 +1,15 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-direct-connect",
3
3
  "description": "AWS SDK for JavaScript Direct Connect Client for Node.js, Browser and React Native",
4
- "version": "3.43.0",
4
+ "version": "3.47.0",
5
5
  "scripts": {
6
6
  "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
- "build:cjs": "tsc -p tsconfig.json",
8
- "build:docs": "yarn clean:docs && typedoc ./",
7
+ "build:cjs": "tsc -p tsconfig.cjs.json",
8
+ "build:docs": "typedoc",
9
9
  "build:es": "tsc -p tsconfig.es.json",
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
- "clean": "yarn clean:dist && yarn clean:docs",
12
- "clean:dist": "rimraf ./dist",
13
- "clean:docs": "rimraf ./docs",
14
- "downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
15
- "test": "exit 0"
11
+ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
+ "clean": "rimraf ./dist-*"
16
13
  },
17
14
  "main": "./dist-cjs/index.js",
18
15
  "types": "./dist-types/index.d.ts",
@@ -21,48 +18,44 @@
21
18
  "dependencies": {
22
19
  "@aws-crypto/sha256-browser": "2.0.0",
23
20
  "@aws-crypto/sha256-js": "2.0.0",
24
- "@aws-sdk/client-sts": "3.43.0",
25
- "@aws-sdk/config-resolver": "3.40.0",
26
- "@aws-sdk/credential-provider-node": "3.41.0",
27
- "@aws-sdk/fetch-http-handler": "3.40.0",
28
- "@aws-sdk/hash-node": "3.40.0",
29
- "@aws-sdk/invalid-dependency": "3.40.0",
30
- "@aws-sdk/middleware-content-length": "3.40.0",
31
- "@aws-sdk/middleware-host-header": "3.40.0",
32
- "@aws-sdk/middleware-logger": "3.40.0",
33
- "@aws-sdk/middleware-retry": "3.40.0",
34
- "@aws-sdk/middleware-serde": "3.40.0",
35
- "@aws-sdk/middleware-signing": "3.40.0",
36
- "@aws-sdk/middleware-stack": "3.40.0",
37
- "@aws-sdk/middleware-user-agent": "3.40.0",
38
- "@aws-sdk/node-config-provider": "3.40.0",
39
- "@aws-sdk/node-http-handler": "3.40.0",
40
- "@aws-sdk/protocol-http": "3.40.0",
41
- "@aws-sdk/smithy-client": "3.41.0",
42
- "@aws-sdk/types": "3.40.0",
43
- "@aws-sdk/url-parser": "3.40.0",
44
- "@aws-sdk/util-base64-browser": "3.37.0",
45
- "@aws-sdk/util-base64-node": "3.37.0",
46
- "@aws-sdk/util-body-length-browser": "3.37.0",
47
- "@aws-sdk/util-body-length-node": "3.37.0",
48
- "@aws-sdk/util-user-agent-browser": "3.40.0",
49
- "@aws-sdk/util-user-agent-node": "3.40.0",
50
- "@aws-sdk/util-utf8-browser": "3.37.0",
51
- "@aws-sdk/util-utf8-node": "3.37.0",
21
+ "@aws-sdk/client-sts": "3.47.0",
22
+ "@aws-sdk/config-resolver": "3.47.0",
23
+ "@aws-sdk/credential-provider-node": "3.47.0",
24
+ "@aws-sdk/fetch-http-handler": "3.47.0",
25
+ "@aws-sdk/hash-node": "3.47.0",
26
+ "@aws-sdk/invalid-dependency": "3.47.0",
27
+ "@aws-sdk/middleware-content-length": "3.47.0",
28
+ "@aws-sdk/middleware-host-header": "3.47.0",
29
+ "@aws-sdk/middleware-logger": "3.47.0",
30
+ "@aws-sdk/middleware-retry": "3.47.0",
31
+ "@aws-sdk/middleware-serde": "3.47.0",
32
+ "@aws-sdk/middleware-signing": "3.47.0",
33
+ "@aws-sdk/middleware-stack": "3.47.0",
34
+ "@aws-sdk/middleware-user-agent": "3.47.0",
35
+ "@aws-sdk/node-config-provider": "3.47.0",
36
+ "@aws-sdk/node-http-handler": "3.47.0",
37
+ "@aws-sdk/protocol-http": "3.47.0",
38
+ "@aws-sdk/smithy-client": "3.47.0",
39
+ "@aws-sdk/types": "3.47.0",
40
+ "@aws-sdk/url-parser": "3.47.0",
41
+ "@aws-sdk/util-base64-browser": "3.47.0",
42
+ "@aws-sdk/util-base64-node": "3.47.0",
43
+ "@aws-sdk/util-body-length-browser": "3.47.0",
44
+ "@aws-sdk/util-body-length-node": "3.47.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.47.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.47.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.47.0",
48
+ "@aws-sdk/util-user-agent-node": "3.47.0",
49
+ "@aws-sdk/util-utf8-browser": "3.47.0",
50
+ "@aws-sdk/util-utf8-node": "3.47.0",
52
51
  "tslib": "^2.3.0"
53
52
  },
54
53
  "devDependencies": {
55
- "@aws-sdk/service-client-documentation-generator": "3.38.0",
56
- "@types/node": "^12.7.5",
57
- "downlevel-dts": "0.7.0",
58
- "jest": "^26.1.0",
59
- "rimraf": "^3.0.0",
60
- "ts-jest": "^26.4.1",
61
- "typedoc": "^0.19.2",
62
- "typescript": "~4.3.5"
54
+ "@aws-sdk/service-client-documentation-generator": "3.47.0",
55
+ "@types/node": "^12.7.5"
63
56
  },
64
57
  "engines": {
65
- "node": ">=10.0.0"
58
+ "node": ">=12.0.0"
66
59
  },
67
60
  "typesVersions": {
68
61
  "<4.0": {