@aws-sdk/client-interconnect 3.1030.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/LICENSE +201 -0
- package/README.md +311 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +46 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +454 -0
- package/dist-cjs/models/InterconnectServiceException.js +12 -0
- package/dist-cjs/models/errors.js +95 -0
- package/dist-cjs/runtimeConfig.browser.js +38 -0
- package/dist-cjs/runtimeConfig.js +54 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +43 -0
- package/dist-cjs/schemas/schemas_0.js +379 -0
- package/dist-es/Interconnect.js +47 -0
- package/dist-es/InterconnectClient.js +50 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commands/AcceptConnectionProposalCommand.js +16 -0
- package/dist-es/commands/CreateConnectionCommand.js +16 -0
- package/dist-es/commands/DeleteConnectionCommand.js +16 -0
- package/dist-es/commands/DescribeConnectionProposalCommand.js +16 -0
- package/dist-es/commands/GetConnectionCommand.js +16 -0
- package/dist-es/commands/GetEnvironmentCommand.js +16 -0
- package/dist-es/commands/ListAttachPointsCommand.js +16 -0
- package/dist-es/commands/ListConnectionsCommand.js +16 -0
- package/dist-es/commands/ListEnvironmentsCommand.js +16 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +16 -0
- package/dist-es/commands/TagResourceCommand.js +16 -0
- package/dist-es/commands/UntagResourceCommand.js +16 -0
- package/dist-es/commands/UpdateConnectionCommand.js +16 -0
- package/dist-es/commands/index.js +13 -0
- package/dist-es/endpoint/EndpointParameters.js +11 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +10 -0
- package/dist-es/models/InterconnectServiceException.js +8 -0
- package/dist-es/models/enums.js +22 -0
- package/dist-es/models/errors.js +85 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListAttachPointsPaginator.js +4 -0
- package/dist-es/pagination/ListConnectionsPaginator.js +4 -0
- package/dist-es/pagination/ListEnvironmentsPaginator.js +4 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/runtimeConfig.browser.js +33 -0
- package/dist-es/runtimeConfig.js +49 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +39 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +375 -0
- package/dist-es/waiters/index.js +2 -0
- package/dist-es/waiters/waitForConnectionAvailable.js +49 -0
- package/dist-es/waiters/waitForConnectionDeleted.js +31 -0
- package/dist-types/Interconnect.d.ts +137 -0
- package/dist-types/InterconnectClient.d.ts +200 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commands/AcceptConnectionProposalCommand.d.ts +164 -0
- package/dist-types/commands/CreateConnectionCommand.d.ts +172 -0
- package/dist-types/commands/DeleteConnectionCommand.d.ts +153 -0
- package/dist-types/commands/DescribeConnectionProposalCommand.d.ts +121 -0
- package/dist-types/commands/GetConnectionCommand.d.ts +152 -0
- package/dist-types/commands/GetEnvironmentCommand.d.ts +146 -0
- package/dist-types/commands/ListAttachPointsCommand.d.ts +125 -0
- package/dist-types/commands/ListConnectionsCommand.d.ts +242 -0
- package/dist-types/commands/ListEnvironmentsCommand.d.ts +173 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +115 -0
- package/dist-types/commands/TagResourceCommand.d.ts +113 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +113 -0
- package/dist-types/commands/UpdateConnectionCommand.d.ts +190 -0
- package/dist-types/commands/index.d.ts +13 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +44 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +18 -0
- package/dist-types/models/InterconnectServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +54 -0
- package/dist-types/models/errors.d.ts +86 -0
- package/dist-types/models/models_0.d.ts +764 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListAttachPointsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListConnectionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListEnvironmentsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/runtimeConfig.browser.d.ts +55 -0
- package/dist-types/runtimeConfig.d.ts +55 -0
- package/dist-types/runtimeConfig.native.d.ts +54 -0
- package/dist-types/runtimeConfig.shared.d.ts +27 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +63 -0
- package/dist-types/ts3.4/Interconnect.d.ts +275 -0
- package/dist-types/ts3.4/InterconnectClient.d.ts +197 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/commands/AcceptConnectionProposalCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateConnectionCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/DeleteConnectionCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/DescribeConnectionProposalCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetConnectionCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetEnvironmentCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListAttachPointsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListConnectionsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListEnvironmentsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateConnectionCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +13 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +13 -0
- package/dist-types/ts3.4/models/InterconnectServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/enums.d.ts +30 -0
- package/dist-types/ts3.4/models/errors.d.ts +54 -0
- package/dist-types/ts3.4/models/models_0.d.ts +231 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListAttachPointsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListConnectionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListEnvironmentsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +100 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +104 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +30 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +63 -0
- package/dist-types/ts3.4/waiters/index.d.ts +2 -0
- package/dist-types/ts3.4/waiters/waitForConnectionAvailable.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForConnectionDeleted.d.ts +11 -0
- package/dist-types/waiters/index.d.ts +2 -0
- package/dist-types/waiters/waitForConnectionAvailable.d.ts +14 -0
- package/dist-types/waiters/waitForConnectionDeleted.d.ts +14 -0
- package/package.json +101 -0
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { type HostHeaderInputConfig, type HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
2
|
+
import { type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
3
|
+
import { type RegionInputConfig, type RegionResolvedConfig } from "@smithy/config-resolver";
|
|
4
|
+
import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/middleware-endpoint";
|
|
5
|
+
import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
6
|
+
import type { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
7
|
+
import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/smithy-client";
|
|
8
|
+
import type { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
|
+
import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
|
+
import type { AcceptConnectionProposalCommandInput, AcceptConnectionProposalCommandOutput } from "./commands/AcceptConnectionProposalCommand";
|
|
11
|
+
import type { CreateConnectionCommandInput, CreateConnectionCommandOutput } from "./commands/CreateConnectionCommand";
|
|
12
|
+
import type { DeleteConnectionCommandInput, DeleteConnectionCommandOutput } from "./commands/DeleteConnectionCommand";
|
|
13
|
+
import type { DescribeConnectionProposalCommandInput, DescribeConnectionProposalCommandOutput } from "./commands/DescribeConnectionProposalCommand";
|
|
14
|
+
import type { GetConnectionCommandInput, GetConnectionCommandOutput } from "./commands/GetConnectionCommand";
|
|
15
|
+
import type { GetEnvironmentCommandInput, GetEnvironmentCommandOutput } from "./commands/GetEnvironmentCommand";
|
|
16
|
+
import type { ListAttachPointsCommandInput, ListAttachPointsCommandOutput } from "./commands/ListAttachPointsCommand";
|
|
17
|
+
import type { ListConnectionsCommandInput, ListConnectionsCommandOutput } from "./commands/ListConnectionsCommand";
|
|
18
|
+
import type { ListEnvironmentsCommandInput, ListEnvironmentsCommandOutput } from "./commands/ListEnvironmentsCommand";
|
|
19
|
+
import type { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
20
|
+
import type { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
21
|
+
import type { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
22
|
+
import type { UpdateConnectionCommandInput, UpdateConnectionCommandOutput } from "./commands/UpdateConnectionCommand";
|
|
23
|
+
import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
|
|
24
|
+
import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
25
|
+
export { __Client };
|
|
26
|
+
/**
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
29
|
+
export type ServiceInputTypes = AcceptConnectionProposalCommandInput | CreateConnectionCommandInput | DeleteConnectionCommandInput | DescribeConnectionProposalCommandInput | GetConnectionCommandInput | GetEnvironmentCommandInput | ListAttachPointsCommandInput | ListConnectionsCommandInput | ListEnvironmentsCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateConnectionCommandInput;
|
|
30
|
+
/**
|
|
31
|
+
* @public
|
|
32
|
+
*/
|
|
33
|
+
export type ServiceOutputTypes = AcceptConnectionProposalCommandOutput | CreateConnectionCommandOutput | DeleteConnectionCommandOutput | DescribeConnectionProposalCommandOutput | GetConnectionCommandOutput | GetEnvironmentCommandOutput | ListAttachPointsCommandOutput | ListConnectionsCommandOutput | ListEnvironmentsCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateConnectionCommandOutput;
|
|
34
|
+
/**
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
38
|
+
/**
|
|
39
|
+
* The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
|
|
40
|
+
*/
|
|
41
|
+
requestHandler?: __HttpHandlerUserInput;
|
|
42
|
+
/**
|
|
43
|
+
* A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
|
|
44
|
+
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
45
|
+
* @internal
|
|
46
|
+
*/
|
|
47
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
48
|
+
/**
|
|
49
|
+
* The function that will be used to convert strings into HTTP endpoints.
|
|
50
|
+
* @internal
|
|
51
|
+
*/
|
|
52
|
+
urlParser?: __UrlParser;
|
|
53
|
+
/**
|
|
54
|
+
* A function that can calculate the length of a request body.
|
|
55
|
+
* @internal
|
|
56
|
+
*/
|
|
57
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
58
|
+
/**
|
|
59
|
+
* A function that converts a stream into an array of bytes.
|
|
60
|
+
* @internal
|
|
61
|
+
*/
|
|
62
|
+
streamCollector?: __StreamCollector;
|
|
63
|
+
/**
|
|
64
|
+
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
65
|
+
* @internal
|
|
66
|
+
*/
|
|
67
|
+
base64Decoder?: __Decoder;
|
|
68
|
+
/**
|
|
69
|
+
* The function that will be used to convert binary data to a base64-encoded string.
|
|
70
|
+
* @internal
|
|
71
|
+
*/
|
|
72
|
+
base64Encoder?: __Encoder;
|
|
73
|
+
/**
|
|
74
|
+
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
75
|
+
* @internal
|
|
76
|
+
*/
|
|
77
|
+
utf8Decoder?: __Decoder;
|
|
78
|
+
/**
|
|
79
|
+
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
80
|
+
* @internal
|
|
81
|
+
*/
|
|
82
|
+
utf8Encoder?: __Encoder;
|
|
83
|
+
/**
|
|
84
|
+
* The runtime environment.
|
|
85
|
+
* @internal
|
|
86
|
+
*/
|
|
87
|
+
runtime?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
90
|
+
* trait of an operation.
|
|
91
|
+
*/
|
|
92
|
+
disableHostPrefix?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Unique service identifier.
|
|
95
|
+
* @internal
|
|
96
|
+
*/
|
|
97
|
+
serviceId?: string;
|
|
98
|
+
/**
|
|
99
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
100
|
+
*/
|
|
101
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
102
|
+
/**
|
|
103
|
+
* Enables FIPS compatible endpoints.
|
|
104
|
+
*/
|
|
105
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
106
|
+
/**
|
|
107
|
+
* The AWS region to which this client will send requests
|
|
108
|
+
*/
|
|
109
|
+
region?: string | __Provider<string>;
|
|
110
|
+
/**
|
|
111
|
+
* Setting a client profile is similar to setting a value for the
|
|
112
|
+
* AWS_PROFILE environment variable. Setting a profile on a client
|
|
113
|
+
* in code only affects the single client instance, unlike AWS_PROFILE.
|
|
114
|
+
*
|
|
115
|
+
* When set, and only for environments where an AWS configuration
|
|
116
|
+
* file exists, fields configurable by this file will be retrieved
|
|
117
|
+
* from the specified profile within that file.
|
|
118
|
+
* Conflicting code configuration and environment variables will
|
|
119
|
+
* still have higher priority.
|
|
120
|
+
*
|
|
121
|
+
* For client credential resolution that involves checking the AWS
|
|
122
|
+
* configuration file, the client's profile (this value) will be
|
|
123
|
+
* used unless a different profile is set in the credential
|
|
124
|
+
* provider options.
|
|
125
|
+
*
|
|
126
|
+
*/
|
|
127
|
+
profile?: string;
|
|
128
|
+
/**
|
|
129
|
+
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
130
|
+
* @internal
|
|
131
|
+
*/
|
|
132
|
+
defaultUserAgentProvider?: __Provider<__UserAgent>;
|
|
133
|
+
/**
|
|
134
|
+
* Default credentials provider; Not available in browser runtime.
|
|
135
|
+
* @deprecated
|
|
136
|
+
* @internal
|
|
137
|
+
*/
|
|
138
|
+
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
|
|
139
|
+
/**
|
|
140
|
+
* Value for how many times a request will be made at most in case of retry.
|
|
141
|
+
*/
|
|
142
|
+
maxAttempts?: number | __Provider<number>;
|
|
143
|
+
/**
|
|
144
|
+
* Specifies which retry algorithm to use.
|
|
145
|
+
* @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
|
|
146
|
+
*
|
|
147
|
+
*/
|
|
148
|
+
retryMode?: string | __Provider<string>;
|
|
149
|
+
/**
|
|
150
|
+
* Optional logger for logging debug/info/warn/error.
|
|
151
|
+
*/
|
|
152
|
+
logger?: __Logger;
|
|
153
|
+
/**
|
|
154
|
+
* Optional extensions
|
|
155
|
+
*/
|
|
156
|
+
extensions?: RuntimeExtension[];
|
|
157
|
+
/**
|
|
158
|
+
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
159
|
+
*/
|
|
160
|
+
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* @public
|
|
164
|
+
*/
|
|
165
|
+
export type InterconnectClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
|
|
166
|
+
/**
|
|
167
|
+
* @public
|
|
168
|
+
*
|
|
169
|
+
* The configuration interface of InterconnectClient class constructor that set the region, credentials and other options.
|
|
170
|
+
*/
|
|
171
|
+
export interface InterconnectClientConfig extends InterconnectClientConfigType {
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* @public
|
|
175
|
+
*/
|
|
176
|
+
export type InterconnectClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
|
|
177
|
+
/**
|
|
178
|
+
* @public
|
|
179
|
+
*
|
|
180
|
+
* The resolved configuration interface of InterconnectClient class. This is resolved and normalized from the {@link InterconnectClientConfig | constructor configuration interface}.
|
|
181
|
+
*/
|
|
182
|
+
export interface InterconnectClientResolvedConfig extends InterconnectClientResolvedConfigType {
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* <p>Provides managed connections between your AWS network resources and select partner network resources.</p>
|
|
186
|
+
* @public
|
|
187
|
+
*/
|
|
188
|
+
export declare class InterconnectClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, InterconnectClientResolvedConfig> {
|
|
189
|
+
/**
|
|
190
|
+
* The resolved configuration of InterconnectClient class. This is resolved and normalized from the {@link InterconnectClientConfig | constructor configuration interface}.
|
|
191
|
+
*/
|
|
192
|
+
readonly config: InterconnectClientResolvedConfig;
|
|
193
|
+
constructor(...[configuration]: __CheckOptionalClientConfig<InterconnectClientConfig>);
|
|
194
|
+
/**
|
|
195
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
196
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
197
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
198
|
+
*/
|
|
199
|
+
destroy(): void;
|
|
200
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
|
|
2
|
+
import type { InterconnectHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface HttpAuthExtensionConfiguration {
|
|
7
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
8
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
|
9
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider: InterconnectHttpAuthSchemeProvider): void;
|
|
10
|
+
httpAuthSchemeProvider(): InterconnectHttpAuthSchemeProvider;
|
|
11
|
+
setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
|
|
12
|
+
credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export type HttpAuthRuntimeConfig = Partial<{
|
|
18
|
+
httpAuthSchemes: HttpAuthScheme[];
|
|
19
|
+
httpAuthSchemeProvider: InterconnectHttpAuthSchemeProvider;
|
|
20
|
+
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
|
+
import type { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
|
|
3
|
+
import { type InterconnectClientResolvedConfig } from "../InterconnectClient";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export interface InterconnectHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
|
|
8
|
+
region?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export interface InterconnectHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<InterconnectClientResolvedConfig, HandlerExecutionContext, InterconnectHttpAuthSchemeParameters, object> {
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const defaultInterconnectHttpAuthSchemeParametersProvider: (config: InterconnectClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<InterconnectHttpAuthSchemeParameters>;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export interface InterconnectHttpAuthSchemeProvider extends HttpAuthSchemeProvider<InterconnectHttpAuthSchemeParameters> {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
export declare const defaultInterconnectHttpAuthSchemeProvider: InterconnectHttpAuthSchemeProvider;
|
|
28
|
+
/**
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
32
|
+
/**
|
|
33
|
+
* A comma-separated list of case-sensitive auth scheme names.
|
|
34
|
+
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
|
|
35
|
+
* For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
authSchemePreference?: string[] | Provider<string[]>;
|
|
39
|
+
/**
|
|
40
|
+
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
httpAuthSchemes?: HttpAuthScheme[];
|
|
44
|
+
/**
|
|
45
|
+
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
httpAuthSchemeProvider?: InterconnectHttpAuthSchemeProvider;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
|
|
54
|
+
/**
|
|
55
|
+
* A comma-separated list of case-sensitive auth scheme names.
|
|
56
|
+
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
|
|
57
|
+
* For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
readonly authSchemePreference: Provider<string[]>;
|
|
61
|
+
/**
|
|
62
|
+
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
65
|
+
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
66
|
+
/**
|
|
67
|
+
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
readonly httpAuthSchemeProvider: InterconnectHttpAuthSchemeProvider;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { InterconnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../InterconnectClient";
|
|
4
|
+
import type { AcceptConnectionProposalRequest, AcceptConnectionProposalResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link AcceptConnectionProposalCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface AcceptConnectionProposalCommandInput extends AcceptConnectionProposalRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link AcceptConnectionProposalCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface AcceptConnectionProposalCommandOutput extends AcceptConnectionProposalResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const AcceptConnectionProposalCommand_base: {
|
|
25
|
+
new (input: AcceptConnectionProposalCommandInput): import("@smithy/smithy-client").CommandImpl<AcceptConnectionProposalCommandInput, AcceptConnectionProposalCommandOutput, InterconnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: AcceptConnectionProposalCommandInput): import("@smithy/smithy-client").CommandImpl<AcceptConnectionProposalCommandInput, AcceptConnectionProposalCommandOutput, InterconnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Accepts a connection proposal which was generated at a supported partner's portal.</p> <p>The proposal contains the Environment and bandwidth that were chosen on the partner's portal and cannot be modified.</p> <p>Upon accepting the proposal a connection will be made between the AWS network as accessed via the selected Attach Point and the network previously selected network on the partner's portal.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { InterconnectClient, AcceptConnectionProposalCommand } from "@aws-sdk/client-interconnect"; // ES Modules import
|
|
35
|
+
* // const { InterconnectClient, AcceptConnectionProposalCommand } = require("@aws-sdk/client-interconnect"); // CommonJS import
|
|
36
|
+
* // import type { InterconnectClientConfig } from "@aws-sdk/client-interconnect";
|
|
37
|
+
* const config = {}; // type is InterconnectClientConfig
|
|
38
|
+
* const client = new InterconnectClient(config);
|
|
39
|
+
* const input = { // AcceptConnectionProposalRequest
|
|
40
|
+
* attachPoint: { // AttachPoint Union: only one key present
|
|
41
|
+
* directConnectGateway: "STRING_VALUE",
|
|
42
|
+
* arn: "STRING_VALUE",
|
|
43
|
+
* },
|
|
44
|
+
* activationKey: "STRING_VALUE", // required
|
|
45
|
+
* description: "STRING_VALUE",
|
|
46
|
+
* tags: { // TagMap
|
|
47
|
+
* "<keys>": "STRING_VALUE",
|
|
48
|
+
* },
|
|
49
|
+
* clientToken: "STRING_VALUE",
|
|
50
|
+
* };
|
|
51
|
+
* const command = new AcceptConnectionProposalCommand(input);
|
|
52
|
+
* const response = await client.send(command);
|
|
53
|
+
* // { // AcceptConnectionProposalResponse
|
|
54
|
+
* // connection: { // Connection
|
|
55
|
+
* // id: "STRING_VALUE", // required
|
|
56
|
+
* // arn: "STRING_VALUE", // required
|
|
57
|
+
* // description: "STRING_VALUE", // required
|
|
58
|
+
* // bandwidth: "STRING_VALUE", // required
|
|
59
|
+
* // attachPoint: { // AttachPoint Union: only one key present
|
|
60
|
+
* // directConnectGateway: "STRING_VALUE",
|
|
61
|
+
* // arn: "STRING_VALUE",
|
|
62
|
+
* // },
|
|
63
|
+
* // environmentId: "STRING_VALUE", // required
|
|
64
|
+
* // provider: { // Provider Union: only one key present
|
|
65
|
+
* // cloudServiceProvider: "STRING_VALUE",
|
|
66
|
+
* // lastMileProvider: "STRING_VALUE",
|
|
67
|
+
* // },
|
|
68
|
+
* // location: "STRING_VALUE", // required
|
|
69
|
+
* // type: "STRING_VALUE", // required
|
|
70
|
+
* // state: "available" || "requested" || "pending" || "down" || "deleting" || "deleted" || "failed" || "updating", // required
|
|
71
|
+
* // sharedId: "STRING_VALUE", // required
|
|
72
|
+
* // billingTier: Number("int"),
|
|
73
|
+
* // ownerAccount: "STRING_VALUE", // required
|
|
74
|
+
* // activationKey: "STRING_VALUE", // required
|
|
75
|
+
* // tags: { // TagMap
|
|
76
|
+
* // "<keys>": "STRING_VALUE",
|
|
77
|
+
* // },
|
|
78
|
+
* // },
|
|
79
|
+
* // };
|
|
80
|
+
*
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
83
|
+
* @param AcceptConnectionProposalCommandInput - {@link AcceptConnectionProposalCommandInput}
|
|
84
|
+
* @returns {@link AcceptConnectionProposalCommandOutput}
|
|
85
|
+
* @see {@link AcceptConnectionProposalCommandInput} for command's `input` shape.
|
|
86
|
+
* @see {@link AcceptConnectionProposalCommandOutput} for command's `response` shape.
|
|
87
|
+
* @see {@link InterconnectClientResolvedConfig | config} for InterconnectClient's `config` shape.
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
90
|
+
* <p>The calling principal is not allowed to access the specified resource, or the resource does not exist.</p>
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link InterconnectClientException} (client fault)
|
|
93
|
+
* <p>The request was denied due to incorrect client supplied parameters.</p>
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link InterconnectServerException} (server fault)
|
|
96
|
+
* <p>The request resulted in an exception internal to the service.</p>
|
|
97
|
+
*
|
|
98
|
+
* @throws {@link InterconnectValidationException} (client fault)
|
|
99
|
+
* <p>The input fails to satisfy the constraints specified.</p>
|
|
100
|
+
*
|
|
101
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
102
|
+
* <p>The request specifies a resource that does not exist on the server.</p>
|
|
103
|
+
*
|
|
104
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
105
|
+
* <p>The requested operation would result in the calling principal exceeding their allotted quota.</p>
|
|
106
|
+
*
|
|
107
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
108
|
+
* <p>The request was denied due to request throttling.</p>
|
|
109
|
+
*
|
|
110
|
+
* @throws {@link InterconnectServiceException}
|
|
111
|
+
* <p>Base exception class for all service exceptions from Interconnect service.</p>
|
|
112
|
+
*
|
|
113
|
+
*
|
|
114
|
+
* @example Accept Connection Proposal
|
|
115
|
+
* ```javascript
|
|
116
|
+
* //
|
|
117
|
+
* const input = {
|
|
118
|
+
* activationKey: "<Activation Key Data>",
|
|
119
|
+
* attachPoint: {
|
|
120
|
+
* directConnectGateway: "90392BE3-219C-47FD-BBA5-03DF76D2542A"
|
|
121
|
+
* }
|
|
122
|
+
* };
|
|
123
|
+
* const command = new AcceptConnectionProposalCommand(input);
|
|
124
|
+
* const response = await client.send(command);
|
|
125
|
+
* /* response is
|
|
126
|
+
* {
|
|
127
|
+
* connection: {
|
|
128
|
+
* activationKey: "<Activation Key Data>",
|
|
129
|
+
* arn: "arn:aws:interconnect:us-east-1:000000000000:connection/mcc-abc12345",
|
|
130
|
+
* attachPoint: {
|
|
131
|
+
* directConnectGateway: "90392BE3-219C-47FD-BBA5-03DF76D2542A"
|
|
132
|
+
* },
|
|
133
|
+
* bandwidth: "1Gbps",
|
|
134
|
+
* description: "My MultiCloud Connection",
|
|
135
|
+
* environmentId: "mce-aws-acme-1",
|
|
136
|
+
* id: "mcc-abc12345",
|
|
137
|
+
* location: "acme-east",
|
|
138
|
+
* ownerAccount: "000000000000",
|
|
139
|
+
* provider: {
|
|
140
|
+
* cloudServiceProvider: "acme"
|
|
141
|
+
* },
|
|
142
|
+
* sharedId: "B0615F4D-E588-47AD-9D04-1449EAA61C91",
|
|
143
|
+
* state: "pending",
|
|
144
|
+
* type: "Multicloud"
|
|
145
|
+
* }
|
|
146
|
+
* }
|
|
147
|
+
* *\/
|
|
148
|
+
* ```
|
|
149
|
+
*
|
|
150
|
+
* @public
|
|
151
|
+
*/
|
|
152
|
+
export declare class AcceptConnectionProposalCommand extends AcceptConnectionProposalCommand_base {
|
|
153
|
+
/** @internal type navigation helper, not in runtime. */
|
|
154
|
+
protected static __types: {
|
|
155
|
+
api: {
|
|
156
|
+
input: AcceptConnectionProposalRequest;
|
|
157
|
+
output: AcceptConnectionProposalResponse;
|
|
158
|
+
};
|
|
159
|
+
sdk: {
|
|
160
|
+
input: AcceptConnectionProposalCommandInput;
|
|
161
|
+
output: AcceptConnectionProposalCommandOutput;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { InterconnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../InterconnectClient";
|
|
4
|
+
import type { CreateConnectionRequest, CreateConnectionResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateConnectionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateConnectionCommandInput extends CreateConnectionRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateConnectionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateConnectionCommandOutput extends CreateConnectionResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateConnectionCommand_base: {
|
|
25
|
+
new (input: CreateConnectionCommandInput): import("@smithy/smithy-client").CommandImpl<CreateConnectionCommandInput, CreateConnectionCommandOutput, InterconnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: CreateConnectionCommandInput): import("@smithy/smithy-client").CommandImpl<CreateConnectionCommandInput, CreateConnectionCommandOutput, InterconnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Initiates the process to create a Connection across the specified Environment. </p> <p>The Environment dictates the specified partner and location to which the other end of the connection should attach. You can see a list of the available Environments by calling <a>ListEnvironments</a> </p> <p>The Attach Point specifies where within the AWS Network your connection will logically connect.</p> <p>After a successful call to this method, the resulting <a>Connection</a> will return an Activation Key which will need to be brought to the specific partner's portal to confirm the <a>Connection</a> on both sides. (See <a>Environment$activationPageUrl</a> for a direct link to the partner portal). </p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { InterconnectClient, CreateConnectionCommand } from "@aws-sdk/client-interconnect"; // ES Modules import
|
|
35
|
+
* // const { InterconnectClient, CreateConnectionCommand } = require("@aws-sdk/client-interconnect"); // CommonJS import
|
|
36
|
+
* // import type { InterconnectClientConfig } from "@aws-sdk/client-interconnect";
|
|
37
|
+
* const config = {}; // type is InterconnectClientConfig
|
|
38
|
+
* const client = new InterconnectClient(config);
|
|
39
|
+
* const input = { // CreateConnectionRequest
|
|
40
|
+
* description: "STRING_VALUE",
|
|
41
|
+
* bandwidth: "STRING_VALUE", // required
|
|
42
|
+
* attachPoint: { // AttachPoint Union: only one key present
|
|
43
|
+
* directConnectGateway: "STRING_VALUE",
|
|
44
|
+
* arn: "STRING_VALUE",
|
|
45
|
+
* },
|
|
46
|
+
* environmentId: "STRING_VALUE", // required
|
|
47
|
+
* remoteAccount: { // RemoteAccountIdentifier Union: only one key present
|
|
48
|
+
* identifier: "STRING_VALUE",
|
|
49
|
+
* },
|
|
50
|
+
* tags: { // TagMap
|
|
51
|
+
* "<keys>": "STRING_VALUE",
|
|
52
|
+
* },
|
|
53
|
+
* clientToken: "STRING_VALUE",
|
|
54
|
+
* };
|
|
55
|
+
* const command = new CreateConnectionCommand(input);
|
|
56
|
+
* const response = await client.send(command);
|
|
57
|
+
* // { // CreateConnectionResponse
|
|
58
|
+
* // connection: { // Connection
|
|
59
|
+
* // id: "STRING_VALUE", // required
|
|
60
|
+
* // arn: "STRING_VALUE", // required
|
|
61
|
+
* // description: "STRING_VALUE", // required
|
|
62
|
+
* // bandwidth: "STRING_VALUE", // required
|
|
63
|
+
* // attachPoint: { // AttachPoint Union: only one key present
|
|
64
|
+
* // directConnectGateway: "STRING_VALUE",
|
|
65
|
+
* // arn: "STRING_VALUE",
|
|
66
|
+
* // },
|
|
67
|
+
* // environmentId: "STRING_VALUE", // required
|
|
68
|
+
* // provider: { // Provider Union: only one key present
|
|
69
|
+
* // cloudServiceProvider: "STRING_VALUE",
|
|
70
|
+
* // lastMileProvider: "STRING_VALUE",
|
|
71
|
+
* // },
|
|
72
|
+
* // location: "STRING_VALUE", // required
|
|
73
|
+
* // type: "STRING_VALUE", // required
|
|
74
|
+
* // state: "available" || "requested" || "pending" || "down" || "deleting" || "deleted" || "failed" || "updating", // required
|
|
75
|
+
* // sharedId: "STRING_VALUE", // required
|
|
76
|
+
* // billingTier: Number("int"),
|
|
77
|
+
* // ownerAccount: "STRING_VALUE", // required
|
|
78
|
+
* // activationKey: "STRING_VALUE", // required
|
|
79
|
+
* // tags: { // TagMap
|
|
80
|
+
* // "<keys>": "STRING_VALUE",
|
|
81
|
+
* // },
|
|
82
|
+
* // },
|
|
83
|
+
* // };
|
|
84
|
+
*
|
|
85
|
+
* ```
|
|
86
|
+
*
|
|
87
|
+
* @param CreateConnectionCommandInput - {@link CreateConnectionCommandInput}
|
|
88
|
+
* @returns {@link CreateConnectionCommandOutput}
|
|
89
|
+
* @see {@link CreateConnectionCommandInput} for command's `input` shape.
|
|
90
|
+
* @see {@link CreateConnectionCommandOutput} for command's `response` shape.
|
|
91
|
+
* @see {@link InterconnectClientResolvedConfig | config} for InterconnectClient's `config` shape.
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
94
|
+
* <p>The calling principal is not allowed to access the specified resource, or the resource does not exist.</p>
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link InterconnectClientException} (client fault)
|
|
97
|
+
* <p>The request was denied due to incorrect client supplied parameters.</p>
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link InterconnectServerException} (server fault)
|
|
100
|
+
* <p>The request resulted in an exception internal to the service.</p>
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link InterconnectValidationException} (client fault)
|
|
103
|
+
* <p>The input fails to satisfy the constraints specified.</p>
|
|
104
|
+
*
|
|
105
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
106
|
+
* <p>The request specifies a resource that does not exist on the server.</p>
|
|
107
|
+
*
|
|
108
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
109
|
+
* <p>The requested operation would result in the calling principal exceeding their allotted quota.</p>
|
|
110
|
+
*
|
|
111
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
112
|
+
* <p>The request was denied due to request throttling.</p>
|
|
113
|
+
*
|
|
114
|
+
* @throws {@link InterconnectServiceException}
|
|
115
|
+
* <p>Base exception class for all service exceptions from Interconnect service.</p>
|
|
116
|
+
*
|
|
117
|
+
*
|
|
118
|
+
* @example Create Connection on specific environment
|
|
119
|
+
* ```javascript
|
|
120
|
+
* //
|
|
121
|
+
* const input = {
|
|
122
|
+
* attachPoint: {
|
|
123
|
+
* directConnectGateway: "90392BE3-219C-47FD-BBA5-03DF76D2542A"
|
|
124
|
+
* },
|
|
125
|
+
* bandwidth: "1Gbps",
|
|
126
|
+
* environmentId: "mce-aws-acme-1",
|
|
127
|
+
* remoteAccount: {
|
|
128
|
+
* identifier: "PartnerAccountDetails"
|
|
129
|
+
* }
|
|
130
|
+
* };
|
|
131
|
+
* const command = new CreateConnectionCommand(input);
|
|
132
|
+
* const response = await client.send(command);
|
|
133
|
+
* /* response is
|
|
134
|
+
* {
|
|
135
|
+
* connection: {
|
|
136
|
+
* activationKey: "<Activation Key Data>",
|
|
137
|
+
* arn: "arn:aws:interconnect:us-east-1:000000000000:connection/mcc-abc12345",
|
|
138
|
+
* attachPoint: {
|
|
139
|
+
* directConnectGateway: "90392BE3-219C-47FD-BBA5-03DF76D2542A"
|
|
140
|
+
* },
|
|
141
|
+
* bandwidth: "1Gbps",
|
|
142
|
+
* description: "My MultiCloud Connection",
|
|
143
|
+
* environmentId: "mce-aws-acme-1",
|
|
144
|
+
* id: "mcc-abc12345",
|
|
145
|
+
* location: "acme-east",
|
|
146
|
+
* ownerAccount: "000000000000",
|
|
147
|
+
* provider: {
|
|
148
|
+
* cloudServiceProvider: "acme"
|
|
149
|
+
* },
|
|
150
|
+
* sharedId: "B0615F4D-E588-47AD-9D04-1449EAA61C91",
|
|
151
|
+
* state: "requested",
|
|
152
|
+
* type: "Multicloud"
|
|
153
|
+
* }
|
|
154
|
+
* }
|
|
155
|
+
* *\/
|
|
156
|
+
* ```
|
|
157
|
+
*
|
|
158
|
+
* @public
|
|
159
|
+
*/
|
|
160
|
+
export declare class CreateConnectionCommand extends CreateConnectionCommand_base {
|
|
161
|
+
/** @internal type navigation helper, not in runtime. */
|
|
162
|
+
protected static __types: {
|
|
163
|
+
api: {
|
|
164
|
+
input: CreateConnectionRequest;
|
|
165
|
+
output: CreateConnectionResponse;
|
|
166
|
+
};
|
|
167
|
+
sdk: {
|
|
168
|
+
input: CreateConnectionCommandInput;
|
|
169
|
+
output: CreateConnectionCommandOutput;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
}
|