@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.
Files changed (137) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +311 -0
  3. package/dist-cjs/auth/httpAuthSchemeProvider.js +46 -0
  4. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  5. package/dist-cjs/endpoint/ruleset.js +7 -0
  6. package/dist-cjs/index.js +454 -0
  7. package/dist-cjs/models/InterconnectServiceException.js +12 -0
  8. package/dist-cjs/models/errors.js +95 -0
  9. package/dist-cjs/runtimeConfig.browser.js +38 -0
  10. package/dist-cjs/runtimeConfig.js +54 -0
  11. package/dist-cjs/runtimeConfig.native.js +15 -0
  12. package/dist-cjs/runtimeConfig.shared.js +43 -0
  13. package/dist-cjs/schemas/schemas_0.js +379 -0
  14. package/dist-es/Interconnect.js +47 -0
  15. package/dist-es/InterconnectClient.js +50 -0
  16. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  17. package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
  18. package/dist-es/commands/AcceptConnectionProposalCommand.js +16 -0
  19. package/dist-es/commands/CreateConnectionCommand.js +16 -0
  20. package/dist-es/commands/DeleteConnectionCommand.js +16 -0
  21. package/dist-es/commands/DescribeConnectionProposalCommand.js +16 -0
  22. package/dist-es/commands/GetConnectionCommand.js +16 -0
  23. package/dist-es/commands/GetEnvironmentCommand.js +16 -0
  24. package/dist-es/commands/ListAttachPointsCommand.js +16 -0
  25. package/dist-es/commands/ListConnectionsCommand.js +16 -0
  26. package/dist-es/commands/ListEnvironmentsCommand.js +16 -0
  27. package/dist-es/commands/ListTagsForResourceCommand.js +16 -0
  28. package/dist-es/commands/TagResourceCommand.js +16 -0
  29. package/dist-es/commands/UntagResourceCommand.js +16 -0
  30. package/dist-es/commands/UpdateConnectionCommand.js +16 -0
  31. package/dist-es/commands/index.js +13 -0
  32. package/dist-es/endpoint/EndpointParameters.js +11 -0
  33. package/dist-es/endpoint/endpointResolver.js +14 -0
  34. package/dist-es/endpoint/ruleset.js +4 -0
  35. package/dist-es/extensionConfiguration.js +1 -0
  36. package/dist-es/index.js +10 -0
  37. package/dist-es/models/InterconnectServiceException.js +8 -0
  38. package/dist-es/models/enums.js +22 -0
  39. package/dist-es/models/errors.js +85 -0
  40. package/dist-es/models/models_0.js +1 -0
  41. package/dist-es/pagination/Interfaces.js +1 -0
  42. package/dist-es/pagination/ListAttachPointsPaginator.js +4 -0
  43. package/dist-es/pagination/ListConnectionsPaginator.js +4 -0
  44. package/dist-es/pagination/ListEnvironmentsPaginator.js +4 -0
  45. package/dist-es/pagination/index.js +4 -0
  46. package/dist-es/runtimeConfig.browser.js +33 -0
  47. package/dist-es/runtimeConfig.js +49 -0
  48. package/dist-es/runtimeConfig.native.js +11 -0
  49. package/dist-es/runtimeConfig.shared.js +39 -0
  50. package/dist-es/runtimeExtensions.js +9 -0
  51. package/dist-es/schemas/schemas_0.js +375 -0
  52. package/dist-es/waiters/index.js +2 -0
  53. package/dist-es/waiters/waitForConnectionAvailable.js +49 -0
  54. package/dist-es/waiters/waitForConnectionDeleted.js +31 -0
  55. package/dist-types/Interconnect.d.ts +137 -0
  56. package/dist-types/InterconnectClient.d.ts +200 -0
  57. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  58. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  59. package/dist-types/commands/AcceptConnectionProposalCommand.d.ts +164 -0
  60. package/dist-types/commands/CreateConnectionCommand.d.ts +172 -0
  61. package/dist-types/commands/DeleteConnectionCommand.d.ts +153 -0
  62. package/dist-types/commands/DescribeConnectionProposalCommand.d.ts +121 -0
  63. package/dist-types/commands/GetConnectionCommand.d.ts +152 -0
  64. package/dist-types/commands/GetEnvironmentCommand.d.ts +146 -0
  65. package/dist-types/commands/ListAttachPointsCommand.d.ts +125 -0
  66. package/dist-types/commands/ListConnectionsCommand.d.ts +242 -0
  67. package/dist-types/commands/ListEnvironmentsCommand.d.ts +173 -0
  68. package/dist-types/commands/ListTagsForResourceCommand.d.ts +115 -0
  69. package/dist-types/commands/TagResourceCommand.d.ts +113 -0
  70. package/dist-types/commands/UntagResourceCommand.d.ts +113 -0
  71. package/dist-types/commands/UpdateConnectionCommand.d.ts +190 -0
  72. package/dist-types/commands/index.d.ts +13 -0
  73. package/dist-types/endpoint/EndpointParameters.d.ts +44 -0
  74. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  75. package/dist-types/endpoint/ruleset.d.ts +2 -0
  76. package/dist-types/extensionConfiguration.d.ts +9 -0
  77. package/dist-types/index.d.ts +18 -0
  78. package/dist-types/models/InterconnectServiceException.d.ts +14 -0
  79. package/dist-types/models/enums.d.ts +54 -0
  80. package/dist-types/models/errors.d.ts +86 -0
  81. package/dist-types/models/models_0.d.ts +764 -0
  82. package/dist-types/pagination/Interfaces.d.ts +8 -0
  83. package/dist-types/pagination/ListAttachPointsPaginator.d.ts +7 -0
  84. package/dist-types/pagination/ListConnectionsPaginator.d.ts +7 -0
  85. package/dist-types/pagination/ListEnvironmentsPaginator.d.ts +7 -0
  86. package/dist-types/pagination/index.d.ts +4 -0
  87. package/dist-types/runtimeConfig.browser.d.ts +55 -0
  88. package/dist-types/runtimeConfig.d.ts +55 -0
  89. package/dist-types/runtimeConfig.native.d.ts +54 -0
  90. package/dist-types/runtimeConfig.shared.d.ts +27 -0
  91. package/dist-types/runtimeExtensions.d.ts +17 -0
  92. package/dist-types/schemas/schemas_0.d.ts +63 -0
  93. package/dist-types/ts3.4/Interconnect.d.ts +275 -0
  94. package/dist-types/ts3.4/InterconnectClient.d.ts +197 -0
  95. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  96. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  97. package/dist-types/ts3.4/commands/AcceptConnectionProposalCommand.d.ts +51 -0
  98. package/dist-types/ts3.4/commands/CreateConnectionCommand.d.ts +50 -0
  99. package/dist-types/ts3.4/commands/DeleteConnectionCommand.d.ts +50 -0
  100. package/dist-types/ts3.4/commands/DescribeConnectionProposalCommand.d.ts +51 -0
  101. package/dist-types/ts3.4/commands/GetConnectionCommand.d.ts +50 -0
  102. package/dist-types/ts3.4/commands/GetEnvironmentCommand.d.ts +50 -0
  103. package/dist-types/ts3.4/commands/ListAttachPointsCommand.d.ts +50 -0
  104. package/dist-types/ts3.4/commands/ListConnectionsCommand.d.ts +50 -0
  105. package/dist-types/ts3.4/commands/ListEnvironmentsCommand.d.ts +50 -0
  106. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  107. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
  108. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
  109. package/dist-types/ts3.4/commands/UpdateConnectionCommand.d.ts +50 -0
  110. package/dist-types/ts3.4/commands/index.d.ts +13 -0
  111. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
  112. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  113. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  114. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  115. package/dist-types/ts3.4/index.d.ts +13 -0
  116. package/dist-types/ts3.4/models/InterconnectServiceException.d.ts +9 -0
  117. package/dist-types/ts3.4/models/enums.d.ts +30 -0
  118. package/dist-types/ts3.4/models/errors.d.ts +54 -0
  119. package/dist-types/ts3.4/models/models_0.d.ts +231 -0
  120. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  121. package/dist-types/ts3.4/pagination/ListAttachPointsPaginator.d.ts +11 -0
  122. package/dist-types/ts3.4/pagination/ListConnectionsPaginator.d.ts +11 -0
  123. package/dist-types/ts3.4/pagination/ListEnvironmentsPaginator.d.ts +11 -0
  124. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  125. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +100 -0
  126. package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
  127. package/dist-types/ts3.4/runtimeConfig.native.d.ts +104 -0
  128. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +30 -0
  129. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  130. package/dist-types/ts3.4/schemas/schemas_0.d.ts +63 -0
  131. package/dist-types/ts3.4/waiters/index.d.ts +2 -0
  132. package/dist-types/ts3.4/waiters/waitForConnectionAvailable.d.ts +11 -0
  133. package/dist-types/ts3.4/waiters/waitForConnectionDeleted.d.ts +11 -0
  134. package/dist-types/waiters/index.d.ts +2 -0
  135. package/dist-types/waiters/waitForConnectionAvailable.d.ts +14 -0
  136. package/dist-types/waiters/waitForConnectionDeleted.d.ts +14 -0
  137. package/package.json +101 -0
@@ -0,0 +1,125 @@
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 { ListAttachPointsRequest, ListAttachPointsResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListAttachPointsCommand}.
14
+ */
15
+ export interface ListAttachPointsCommandInput extends ListAttachPointsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListAttachPointsCommand}.
21
+ */
22
+ export interface ListAttachPointsCommandOutput extends ListAttachPointsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListAttachPointsCommand_base: {
25
+ new (input: ListAttachPointsCommandInput): import("@smithy/smithy-client").CommandImpl<ListAttachPointsCommandInput, ListAttachPointsCommandOutput, InterconnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ListAttachPointsCommandInput): import("@smithy/smithy-client").CommandImpl<ListAttachPointsCommandInput, ListAttachPointsCommandOutput, InterconnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Lists all Attach Points the caller has access to that are valid for the specified <a>Environment</a>.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { InterconnectClient, ListAttachPointsCommand } from "@aws-sdk/client-interconnect"; // ES Modules import
35
+ * // const { InterconnectClient, ListAttachPointsCommand } = 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 = { // ListAttachPointsRequest
40
+ * environmentId: "STRING_VALUE", // required
41
+ * maxResults: Number("int"),
42
+ * nextToken: "STRING_VALUE",
43
+ * };
44
+ * const command = new ListAttachPointsCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // ListAttachPointsResponse
47
+ * // attachPoints: [ // AttachPointDescriptorList // required
48
+ * // { // AttachPointDescriptor
49
+ * // type: "DirectConnectGateway", // required
50
+ * // identifier: "STRING_VALUE", // required
51
+ * // name: "STRING_VALUE", // required
52
+ * // },
53
+ * // ],
54
+ * // nextToken: "STRING_VALUE",
55
+ * // };
56
+ *
57
+ * ```
58
+ *
59
+ * @param ListAttachPointsCommandInput - {@link ListAttachPointsCommandInput}
60
+ * @returns {@link ListAttachPointsCommandOutput}
61
+ * @see {@link ListAttachPointsCommandInput} for command's `input` shape.
62
+ * @see {@link ListAttachPointsCommandOutput} for command's `response` shape.
63
+ * @see {@link InterconnectClientResolvedConfig | config} for InterconnectClient's `config` shape.
64
+ *
65
+ * @throws {@link AccessDeniedException} (client fault)
66
+ * <p>The calling principal is not allowed to access the specified resource, or the resource does not exist.</p>
67
+ *
68
+ * @throws {@link InterconnectClientException} (client fault)
69
+ * <p>The request was denied due to incorrect client supplied parameters.</p>
70
+ *
71
+ * @throws {@link InterconnectServerException} (server fault)
72
+ * <p>The request resulted in an exception internal to the service.</p>
73
+ *
74
+ * @throws {@link InterconnectValidationException} (client fault)
75
+ * <p>The input fails to satisfy the constraints specified.</p>
76
+ *
77
+ * @throws {@link ResourceNotFoundException} (client fault)
78
+ * <p>The request specifies a resource that does not exist on the server.</p>
79
+ *
80
+ * @throws {@link ServiceQuotaExceededException} (client fault)
81
+ * <p>The requested operation would result in the calling principal exceeding their allotted quota.</p>
82
+ *
83
+ * @throws {@link ThrottlingException} (client fault)
84
+ * <p>The request was denied due to request throttling.</p>
85
+ *
86
+ * @throws {@link InterconnectServiceException}
87
+ * <p>Base exception class for all service exceptions from Interconnect service.</p>
88
+ *
89
+ *
90
+ * @example List Attach Points
91
+ * ```javascript
92
+ * //
93
+ * const input = {
94
+ * environmentId: "mce-aws-acme-1"
95
+ * };
96
+ * const command = new ListAttachPointsCommand(input);
97
+ * const response = await client.send(command);
98
+ * /* response is
99
+ * {
100
+ * attachPoints: [
101
+ * {
102
+ * identifier: "90392BE3-219C-47FD-BBA5-03DF76D2542A",
103
+ * name: "My DirectConnectGateway",
104
+ * type: "DirectConnectGateway"
105
+ * }
106
+ * ]
107
+ * }
108
+ * *\/
109
+ * ```
110
+ *
111
+ * @public
112
+ */
113
+ export declare class ListAttachPointsCommand extends ListAttachPointsCommand_base {
114
+ /** @internal type navigation helper, not in runtime. */
115
+ protected static __types: {
116
+ api: {
117
+ input: ListAttachPointsRequest;
118
+ output: ListAttachPointsResponse;
119
+ };
120
+ sdk: {
121
+ input: ListAttachPointsCommandInput;
122
+ output: ListAttachPointsCommandOutput;
123
+ };
124
+ };
125
+ }
@@ -0,0 +1,242 @@
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 { ListConnectionsRequest, ListConnectionsResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListConnectionsCommand}.
14
+ */
15
+ export interface ListConnectionsCommandInput extends ListConnectionsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListConnectionsCommand}.
21
+ */
22
+ export interface ListConnectionsCommandOutput extends ListConnectionsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListConnectionsCommand_base: {
25
+ new (input: ListConnectionsCommandInput): import("@smithy/smithy-client").CommandImpl<ListConnectionsCommandInput, ListConnectionsCommandOutput, InterconnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListConnectionsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListConnectionsCommandInput, ListConnectionsCommandOutput, InterconnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Lists all connection objects to which the caller has access.</p> <p>Allows for optional filtering by the following properties:</p> <ul> <li> <p> <code>state</code> </p> </li> <li> <p> <code>environmentId</code> </p> </li> <li> <p> <code>provider</code> </p> </li> <li> <p> <code>attach point</code> </p> </li> </ul> <p>Only <a>Connection</a> objects matching all filters will be returned.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { InterconnectClient, ListConnectionsCommand } from "@aws-sdk/client-interconnect"; // ES Modules import
35
+ * // const { InterconnectClient, ListConnectionsCommand } = 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 = { // ListConnectionsRequest
40
+ * maxResults: Number("int"),
41
+ * nextToken: "STRING_VALUE",
42
+ * state: "available" || "requested" || "pending" || "down" || "deleting" || "deleted" || "failed" || "updating",
43
+ * environmentId: "STRING_VALUE",
44
+ * provider: { // Provider Union: only one key present
45
+ * cloudServiceProvider: "STRING_VALUE",
46
+ * lastMileProvider: "STRING_VALUE",
47
+ * },
48
+ * attachPoint: { // AttachPoint Union: only one key present
49
+ * directConnectGateway: "STRING_VALUE",
50
+ * arn: "STRING_VALUE",
51
+ * },
52
+ * };
53
+ * const command = new ListConnectionsCommand(input);
54
+ * const response = await client.send(command);
55
+ * // { // ListConnectionsResponse
56
+ * // connections: [ // ConnectionSummariesList
57
+ * // { // ConnectionSummary
58
+ * // id: "STRING_VALUE", // required
59
+ * // arn: "STRING_VALUE", // required
60
+ * // description: "STRING_VALUE", // required
61
+ * // bandwidth: "STRING_VALUE", // required
62
+ * // attachPoint: { // AttachPoint Union: only one key present
63
+ * // directConnectGateway: "STRING_VALUE",
64
+ * // arn: "STRING_VALUE",
65
+ * // },
66
+ * // environmentId: "STRING_VALUE", // required
67
+ * // provider: { // Provider Union: only one key present
68
+ * // cloudServiceProvider: "STRING_VALUE",
69
+ * // lastMileProvider: "STRING_VALUE",
70
+ * // },
71
+ * // location: "STRING_VALUE", // required
72
+ * // type: "STRING_VALUE", // required
73
+ * // state: "available" || "requested" || "pending" || "down" || "deleting" || "deleted" || "failed" || "updating", // required
74
+ * // sharedId: "STRING_VALUE", // required
75
+ * // billingTier: Number("int"),
76
+ * // },
77
+ * // ],
78
+ * // nextToken: "STRING_VALUE",
79
+ * // };
80
+ *
81
+ * ```
82
+ *
83
+ * @param ListConnectionsCommandInput - {@link ListConnectionsCommandInput}
84
+ * @returns {@link ListConnectionsCommandOutput}
85
+ * @see {@link ListConnectionsCommandInput} for command's `input` shape.
86
+ * @see {@link ListConnectionsCommandOutput} 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 List All Connections
115
+ * ```javascript
116
+ * //
117
+ * const input = { /* empty *\/ };
118
+ * const command = new ListConnectionsCommand(input);
119
+ * const response = await client.send(command);
120
+ * /* response is
121
+ * {
122
+ * connections: [
123
+ * {
124
+ * arn: "arn:aws:interconnect:us-east-1:000000000000:connection/mcc-abc12345",
125
+ * attachPoint: {
126
+ * directConnectGateway: "90392BE3-219C-47FD-BBA5-03DF76D2542A"
127
+ * },
128
+ * bandwidth: "1Gbps",
129
+ * description: "My MultiCloud Connection",
130
+ * environmentId: "mce-aws-acme-1",
131
+ * id: "mcc-abc12345",
132
+ * location: "acme-east",
133
+ * provider: {
134
+ * cloudServiceProvider: "acme"
135
+ * },
136
+ * sharedId: "B0615F4D-E588-47AD-9D04-1449EAA61C91",
137
+ * state: "available",
138
+ * type: "Multicloud"
139
+ * },
140
+ * {
141
+ * arn: "arn:aws:interconnect:us-east-1:000000000000:connection/lmcc-xyz98765",
142
+ * attachPoint: {
143
+ * directConnectGateway: "244FB7E5-3C56-4F7D-AAB9-E35F70764154"
144
+ * },
145
+ * bandwidth: "1Gbps",
146
+ * description: "My LastMile Connection",
147
+ * environmentId: "mce-aws-lastmile-1",
148
+ * id: "lmcc-xyz98765",
149
+ * location: "lastmile-east",
150
+ * provider: {
151
+ * lastMileProvider: "lastmile"
152
+ * },
153
+ * sharedId: "27C2CDD8-8FDF-402D-9DFF-92F66ED7C7FC",
154
+ * state: "pending",
155
+ * type: "LastMile"
156
+ * }
157
+ * ]
158
+ * }
159
+ * *\/
160
+ * ```
161
+ *
162
+ * @example List Connections in available state
163
+ * ```javascript
164
+ * //
165
+ * const input = {
166
+ * state: "available"
167
+ * };
168
+ * const command = new ListConnectionsCommand(input);
169
+ * const response = await client.send(command);
170
+ * /* response is
171
+ * {
172
+ * connections: [
173
+ * {
174
+ * arn: "arn:aws:interconnect:us-east-1:000000000000:connection/mcc-abc12345",
175
+ * attachPoint: {
176
+ * directConnectGateway: "90392BE3-219C-47FD-BBA5-03DF76D2542A"
177
+ * },
178
+ * bandwidth: "1Gbps",
179
+ * description: "My MultiCloud Connection",
180
+ * environmentId: "mce-aws-acme-1",
181
+ * id: "mcc-abc12345",
182
+ * location: "acme-east",
183
+ * provider: {
184
+ * cloudServiceProvider: "acme"
185
+ * },
186
+ * sharedId: "B0615F4D-E588-47AD-9D04-1449EAA61C91",
187
+ * state: "available",
188
+ * type: "Multicloud"
189
+ * }
190
+ * ]
191
+ * }
192
+ * *\/
193
+ * ```
194
+ *
195
+ * @example List Connections on specific Environment
196
+ * ```javascript
197
+ * //
198
+ * const input = {
199
+ * environmentId: "mce-aws-acme-1"
200
+ * };
201
+ * const command = new ListConnectionsCommand(input);
202
+ * const response = await client.send(command);
203
+ * /* response is
204
+ * {
205
+ * connections: [
206
+ * {
207
+ * arn: "arn:aws:interconnect:us-east-1:000000000000:connection/lmcc-xyz98765",
208
+ * attachPoint: {
209
+ * directConnectGateway: "244FB7E5-3C56-4F7D-AAB9-E35F70764154"
210
+ * },
211
+ * bandwidth: "1Gbps",
212
+ * description: "My LastMile Connection",
213
+ * environmentId: "mce-aws-lastmile-1",
214
+ * id: "lmcc-xyz98765",
215
+ * location: "lastmile-east",
216
+ * provider: {
217
+ * lastMileProvider: "lastmile"
218
+ * },
219
+ * sharedId: "27C2CDD8-8FDF-402D-9DFF-92F66ED7C7FC",
220
+ * state: "pending",
221
+ * type: "LastMile"
222
+ * }
223
+ * ]
224
+ * }
225
+ * *\/
226
+ * ```
227
+ *
228
+ * @public
229
+ */
230
+ export declare class ListConnectionsCommand extends ListConnectionsCommand_base {
231
+ /** @internal type navigation helper, not in runtime. */
232
+ protected static __types: {
233
+ api: {
234
+ input: ListConnectionsRequest;
235
+ output: ListConnectionsResponse;
236
+ };
237
+ sdk: {
238
+ input: ListConnectionsCommandInput;
239
+ output: ListConnectionsCommandOutput;
240
+ };
241
+ };
242
+ }
@@ -0,0 +1,173 @@
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 { ListEnvironmentsRequest, ListEnvironmentsResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListEnvironmentsCommand}.
14
+ */
15
+ export interface ListEnvironmentsCommandInput extends ListEnvironmentsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListEnvironmentsCommand}.
21
+ */
22
+ export interface ListEnvironmentsCommandOutput extends ListEnvironmentsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListEnvironmentsCommand_base: {
25
+ new (input: ListEnvironmentsCommandInput): import("@smithy/smithy-client").CommandImpl<ListEnvironmentsCommandInput, ListEnvironmentsCommandOutput, InterconnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListEnvironmentsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListEnvironmentsCommandInput, ListEnvironmentsCommandOutput, InterconnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Lists all of the environments that can produce connections that will land in the called AWS region.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { InterconnectClient, ListEnvironmentsCommand } from "@aws-sdk/client-interconnect"; // ES Modules import
35
+ * // const { InterconnectClient, ListEnvironmentsCommand } = 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 = { // ListEnvironmentsRequest
40
+ * maxResults: Number("int"),
41
+ * nextToken: "STRING_VALUE",
42
+ * provider: { // Provider Union: only one key present
43
+ * cloudServiceProvider: "STRING_VALUE",
44
+ * lastMileProvider: "STRING_VALUE",
45
+ * },
46
+ * location: "STRING_VALUE",
47
+ * };
48
+ * const command = new ListEnvironmentsCommand(input);
49
+ * const response = await client.send(command);
50
+ * // { // ListEnvironmentsResponse
51
+ * // environments: [ // EnvironmentList // required
52
+ * // { // Environment
53
+ * // provider: { // Provider Union: only one key present
54
+ * // cloudServiceProvider: "STRING_VALUE",
55
+ * // lastMileProvider: "STRING_VALUE",
56
+ * // },
57
+ * // location: "STRING_VALUE", // required
58
+ * // environmentId: "STRING_VALUE", // required
59
+ * // state: "available" || "limited" || "unavailable", // required
60
+ * // bandwidths: { // Bandwidths
61
+ * // available: [ // BandwidthList
62
+ * // "STRING_VALUE",
63
+ * // ],
64
+ * // supported: [
65
+ * // "STRING_VALUE",
66
+ * // ],
67
+ * // },
68
+ * // type: "STRING_VALUE", // required
69
+ * // activationPageUrl: "STRING_VALUE",
70
+ * // remoteIdentifierType: "account" || "email",
71
+ * // },
72
+ * // ],
73
+ * // nextToken: "STRING_VALUE",
74
+ * // };
75
+ *
76
+ * ```
77
+ *
78
+ * @param ListEnvironmentsCommandInput - {@link ListEnvironmentsCommandInput}
79
+ * @returns {@link ListEnvironmentsCommandOutput}
80
+ * @see {@link ListEnvironmentsCommandInput} for command's `input` shape.
81
+ * @see {@link ListEnvironmentsCommandOutput} for command's `response` shape.
82
+ * @see {@link InterconnectClientResolvedConfig | config} for InterconnectClient's `config` shape.
83
+ *
84
+ * @throws {@link AccessDeniedException} (client fault)
85
+ * <p>The calling principal is not allowed to access the specified resource, or the resource does not exist.</p>
86
+ *
87
+ * @throws {@link InterconnectClientException} (client fault)
88
+ * <p>The request was denied due to incorrect client supplied parameters.</p>
89
+ *
90
+ * @throws {@link InterconnectServerException} (server fault)
91
+ * <p>The request resulted in an exception internal to the service.</p>
92
+ *
93
+ * @throws {@link InterconnectValidationException} (client fault)
94
+ * <p>The input fails to satisfy the constraints specified.</p>
95
+ *
96
+ * @throws {@link ResourceNotFoundException} (client fault)
97
+ * <p>The request specifies a resource that does not exist on the server.</p>
98
+ *
99
+ * @throws {@link ServiceQuotaExceededException} (client fault)
100
+ * <p>The requested operation would result in the calling principal exceeding their allotted quota.</p>
101
+ *
102
+ * @throws {@link ThrottlingException} (client fault)
103
+ * <p>The request was denied due to request throttling.</p>
104
+ *
105
+ * @throws {@link InterconnectServiceException}
106
+ * <p>Base exception class for all service exceptions from Interconnect service.</p>
107
+ *
108
+ *
109
+ * @example List All Environments
110
+ * ```javascript
111
+ * //
112
+ * const input = { /* empty *\/ };
113
+ * const command = new ListEnvironmentsCommand(input);
114
+ * const response = await client.send(command);
115
+ * /* response is
116
+ * {
117
+ * environments: [
118
+ * {
119
+ * bandwidths: {
120
+ * available: [
121
+ * "1Gbps"
122
+ * ],
123
+ * supported: [
124
+ * "1Gbps",
125
+ * "2Gbps"
126
+ * ]
127
+ * },
128
+ * environmentId: "mce-aws-acme-1",
129
+ * location: "acme-east",
130
+ * provider: {
131
+ * cloudServiceProvider: "acme"
132
+ * },
133
+ * state: "available",
134
+ * type: "Multicloud"
135
+ * },
136
+ * {
137
+ * bandwidths: {
138
+ * available: [
139
+ * "1Gbps"
140
+ * ],
141
+ * supported: [
142
+ * "1Gbps",
143
+ * "2Gbps"
144
+ * ]
145
+ * },
146
+ * environmentId: "mce-aws-lastmile-1",
147
+ * location: "lastmile-east",
148
+ * provider: {
149
+ * cloudServiceProvider: "acme"
150
+ * },
151
+ * state: "available",
152
+ * type: "LastMile"
153
+ * }
154
+ * ]
155
+ * }
156
+ * *\/
157
+ * ```
158
+ *
159
+ * @public
160
+ */
161
+ export declare class ListEnvironmentsCommand extends ListEnvironmentsCommand_base {
162
+ /** @internal type navigation helper, not in runtime. */
163
+ protected static __types: {
164
+ api: {
165
+ input: ListEnvironmentsRequest;
166
+ output: ListEnvironmentsResponse;
167
+ };
168
+ sdk: {
169
+ input: ListEnvironmentsCommandInput;
170
+ output: ListEnvironmentsCommandOutput;
171
+ };
172
+ };
173
+ }
@@ -0,0 +1,115 @@
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 { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListTagsForResourceCommand}.
14
+ */
15
+ export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListTagsForResourceCommand}.
21
+ */
22
+ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {
23
+ }
24
+ declare const ListTagsForResourceCommand_base: {
25
+ new (input: ListTagsForResourceCommandInput): import("@smithy/smithy-client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, InterconnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ListTagsForResourceCommandInput): import("@smithy/smithy-client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, InterconnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>List all current tags on the specified resource. Currently this supports <a>Connection</a> resources. </p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { InterconnectClient, ListTagsForResourceCommand } from "@aws-sdk/client-interconnect"; // ES Modules import
35
+ * // const { InterconnectClient, ListTagsForResourceCommand } = 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 = { // ListTagsForResourceRequest
40
+ * arn: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new ListTagsForResourceCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // ListTagsForResourceResponse
45
+ * // tags: { // TagMap
46
+ * // "<keys>": "STRING_VALUE",
47
+ * // },
48
+ * // };
49
+ *
50
+ * ```
51
+ *
52
+ * @param ListTagsForResourceCommandInput - {@link ListTagsForResourceCommandInput}
53
+ * @returns {@link ListTagsForResourceCommandOutput}
54
+ * @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
55
+ * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
56
+ * @see {@link InterconnectClientResolvedConfig | config} for InterconnectClient's `config` shape.
57
+ *
58
+ * @throws {@link AccessDeniedException} (client fault)
59
+ * <p>The calling principal is not allowed to access the specified resource, or the resource does not exist.</p>
60
+ *
61
+ * @throws {@link InterconnectClientException} (client fault)
62
+ * <p>The request was denied due to incorrect client supplied parameters.</p>
63
+ *
64
+ * @throws {@link InterconnectServerException} (server fault)
65
+ * <p>The request resulted in an exception internal to the service.</p>
66
+ *
67
+ * @throws {@link InterconnectValidationException} (client fault)
68
+ * <p>The input fails to satisfy the constraints specified.</p>
69
+ *
70
+ * @throws {@link ResourceNotFoundException} (client fault)
71
+ * <p>The request specifies a resource that does not exist on the server.</p>
72
+ *
73
+ * @throws {@link ServiceQuotaExceededException} (client fault)
74
+ * <p>The requested operation would result in the calling principal exceeding their allotted quota.</p>
75
+ *
76
+ * @throws {@link ThrottlingException} (client fault)
77
+ * <p>The request was denied due to request throttling.</p>
78
+ *
79
+ * @throws {@link InterconnectServiceException}
80
+ * <p>Base exception class for all service exceptions from Interconnect service.</p>
81
+ *
82
+ *
83
+ * @example List Tags
84
+ * ```javascript
85
+ * //
86
+ * const input = {
87
+ * arn: "arn:aws:interconnect:us-east-1:000000000000:connection/mcc-abc12345"
88
+ * };
89
+ * const command = new ListTagsForResourceCommand(input);
90
+ * const response = await client.send(command);
91
+ * /* response is
92
+ * {
93
+ * tags: {
94
+ * TagKey1: "TagValue1",
95
+ * TagKey2: "TagValue2"
96
+ * }
97
+ * }
98
+ * *\/
99
+ * ```
100
+ *
101
+ * @public
102
+ */
103
+ export declare class ListTagsForResourceCommand extends ListTagsForResourceCommand_base {
104
+ /** @internal type navigation helper, not in runtime. */
105
+ protected static __types: {
106
+ api: {
107
+ input: ListTagsForResourceRequest;
108
+ output: ListTagsForResourceResponse;
109
+ };
110
+ sdk: {
111
+ input: ListTagsForResourceCommandInput;
112
+ output: ListTagsForResourceCommandOutput;
113
+ };
114
+ };
115
+ }