@aws-sdk/client-support-app 3.190.0 → 3.192.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 +11 -0
- package/README.md +0 -1
- package/dist-cjs/SupportApp.js +15 -0
- package/dist-cjs/SupportAppClient.js +11 -8
- package/dist-cjs/commands/CreateSlackChannelConfigurationCommand.js +10 -0
- package/dist-cjs/commands/DeleteAccountAliasCommand.js +10 -0
- package/dist-cjs/commands/DeleteSlackChannelConfigurationCommand.js +10 -0
- package/dist-cjs/commands/DeleteSlackWorkspaceConfigurationCommand.js +10 -0
- package/dist-cjs/commands/GetAccountAliasCommand.js +10 -0
- package/dist-cjs/commands/ListSlackChannelConfigurationsCommand.js +10 -0
- package/dist-cjs/commands/ListSlackWorkspaceConfigurationsCommand.js +10 -0
- package/dist-cjs/commands/PutAccountAliasCommand.js +10 -0
- package/dist-cjs/commands/RegisterSlackWorkspaceForOrganizationCommand.js +46 -0
- package/dist-cjs/commands/UpdateSlackChannelConfigurationCommand.js +10 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/endpoint/EndpointParameters.js +13 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +312 -0
- package/dist-cjs/models/models_0.js +14 -1
- package/dist-cjs/protocols/Aws_restJson1.js +77 -1
- package/dist-cjs/runtimeConfig.shared.js +3 -3
- package/dist-es/SupportApp.js +15 -0
- package/dist-es/SupportAppClient.js +12 -9
- package/dist-es/commands/CreateSlackChannelConfigurationCommand.js +10 -0
- package/dist-es/commands/DeleteAccountAliasCommand.js +10 -0
- package/dist-es/commands/DeleteSlackChannelConfigurationCommand.js +10 -0
- package/dist-es/commands/DeleteSlackWorkspaceConfigurationCommand.js +10 -0
- package/dist-es/commands/GetAccountAliasCommand.js +10 -0
- package/dist-es/commands/ListSlackChannelConfigurationsCommand.js +10 -0
- package/dist-es/commands/ListSlackWorkspaceConfigurationsCommand.js +10 -0
- package/dist-es/commands/PutAccountAliasCommand.js +10 -0
- package/dist-es/commands/RegisterSlackWorkspaceForOrganizationCommand.js +42 -0
- package/dist-es/commands/UpdateSlackChannelConfigurationCommand.js +10 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +309 -0
- package/dist-es/models/models_0.js +11 -0
- package/dist-es/protocols/Aws_restJson1.js +74 -0
- package/dist-es/runtimeConfig.shared.js +2 -2
- package/dist-types/SupportApp.d.ts +36 -1
- package/dist-types/SupportAppClient.d.ts +9 -12
- package/dist-types/commands/CreateSlackChannelConfigurationCommand.d.ts +2 -0
- package/dist-types/commands/DeleteAccountAliasCommand.d.ts +2 -0
- package/dist-types/commands/DeleteSlackChannelConfigurationCommand.d.ts +2 -0
- package/dist-types/commands/DeleteSlackWorkspaceConfigurationCommand.d.ts +2 -0
- package/dist-types/commands/GetAccountAliasCommand.d.ts +2 -0
- package/dist-types/commands/ListSlackChannelConfigurationsCommand.d.ts +2 -0
- package/dist-types/commands/ListSlackWorkspaceConfigurationsCommand.d.ts +2 -0
- package/dist-types/commands/PutAccountAliasCommand.d.ts +2 -0
- package/dist-types/commands/RegisterSlackWorkspaceForOrganizationCommand.d.ts +66 -0
- package/dist-types/commands/UpdateSlackChannelConfigurationCommand.d.ts +2 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +72 -20
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/runtimeConfig.browser.d.ts +4 -2
- package/dist-types/runtimeConfig.d.ts +4 -2
- package/dist-types/runtimeConfig.native.d.ts +4 -2
- package/dist-types/runtimeConfig.shared.d.ts +3 -1
- package/dist-types/ts3.4/SupportApp.d.ts +23 -0
- package/dist-types/ts3.4/SupportAppClient.d.ts +21 -8
- package/dist-types/ts3.4/commands/CreateSlackChannelConfigurationCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DeleteAccountAliasCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DeleteSlackChannelConfigurationCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/DeleteSlackWorkspaceConfigurationCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/GetAccountAliasCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListSlackChannelConfigurationsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/ListSlackWorkspaceConfigurationsCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/PutAccountAliasCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/RegisterSlackWorkspaceForOrganizationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateSlackChannelConfigurationCommand.d.ts +2 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +26 -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/models/models_0.d.ts +20 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +14 -4
- package/dist-types/ts3.4/runtimeConfig.d.ts +14 -4
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +14 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -1
- package/package.json +4 -3
- package/dist-cjs/endpoints.js +0 -132
- package/dist-es/endpoints.js +0 -128
- package/dist-types/endpoints.d.ts +0 -2
- package/dist-types/ts3.4/endpoints.d.ts +0 -2
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ruleSet = void 0;
|
|
4
|
+
exports.ruleSet = {
|
|
5
|
+
version: "1.0",
|
|
6
|
+
parameters: {
|
|
7
|
+
Region: {
|
|
8
|
+
builtIn: "AWS::Region",
|
|
9
|
+
required: true,
|
|
10
|
+
documentation: "The AWS region used to dispatch the request.",
|
|
11
|
+
type: "String",
|
|
12
|
+
},
|
|
13
|
+
UseDualStack: {
|
|
14
|
+
builtIn: "AWS::UseDualStack",
|
|
15
|
+
required: true,
|
|
16
|
+
default: false,
|
|
17
|
+
documentation: "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",
|
|
18
|
+
type: "Boolean",
|
|
19
|
+
},
|
|
20
|
+
UseFIPS: {
|
|
21
|
+
builtIn: "AWS::UseFIPS",
|
|
22
|
+
required: true,
|
|
23
|
+
default: false,
|
|
24
|
+
documentation: "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",
|
|
25
|
+
type: "Boolean",
|
|
26
|
+
},
|
|
27
|
+
Endpoint: {
|
|
28
|
+
builtIn: "SDK::Endpoint",
|
|
29
|
+
required: false,
|
|
30
|
+
documentation: "Override the endpoint used to send this request",
|
|
31
|
+
type: "String",
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
rules: [
|
|
35
|
+
{
|
|
36
|
+
conditions: [
|
|
37
|
+
{
|
|
38
|
+
fn: "aws.partition",
|
|
39
|
+
argv: [
|
|
40
|
+
{
|
|
41
|
+
ref: "Region",
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
assign: "PartitionResult",
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
type: "tree",
|
|
48
|
+
rules: [
|
|
49
|
+
{
|
|
50
|
+
conditions: [
|
|
51
|
+
{
|
|
52
|
+
fn: "isSet",
|
|
53
|
+
argv: [
|
|
54
|
+
{
|
|
55
|
+
ref: "Endpoint",
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
fn: "parseURL",
|
|
61
|
+
argv: [
|
|
62
|
+
{
|
|
63
|
+
ref: "Endpoint",
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
assign: "url",
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
type: "tree",
|
|
70
|
+
rules: [
|
|
71
|
+
{
|
|
72
|
+
conditions: [
|
|
73
|
+
{
|
|
74
|
+
fn: "booleanEquals",
|
|
75
|
+
argv: [
|
|
76
|
+
{
|
|
77
|
+
ref: "UseFIPS",
|
|
78
|
+
},
|
|
79
|
+
true,
|
|
80
|
+
],
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
error: "Invalid Configuration: FIPS and custom endpoint are not supported",
|
|
84
|
+
type: "error",
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
conditions: [],
|
|
88
|
+
type: "tree",
|
|
89
|
+
rules: [
|
|
90
|
+
{
|
|
91
|
+
conditions: [
|
|
92
|
+
{
|
|
93
|
+
fn: "booleanEquals",
|
|
94
|
+
argv: [
|
|
95
|
+
{
|
|
96
|
+
ref: "UseDualStack",
|
|
97
|
+
},
|
|
98
|
+
true,
|
|
99
|
+
],
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
error: "Invalid Configuration: Dualstack and custom endpoint are not supported",
|
|
103
|
+
type: "error",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
conditions: [],
|
|
107
|
+
endpoint: {
|
|
108
|
+
url: {
|
|
109
|
+
ref: "Endpoint",
|
|
110
|
+
},
|
|
111
|
+
properties: {},
|
|
112
|
+
headers: {},
|
|
113
|
+
},
|
|
114
|
+
type: "endpoint",
|
|
115
|
+
},
|
|
116
|
+
],
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
conditions: [
|
|
122
|
+
{
|
|
123
|
+
fn: "booleanEquals",
|
|
124
|
+
argv: [
|
|
125
|
+
{
|
|
126
|
+
ref: "UseFIPS",
|
|
127
|
+
},
|
|
128
|
+
true,
|
|
129
|
+
],
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
fn: "booleanEquals",
|
|
133
|
+
argv: [
|
|
134
|
+
{
|
|
135
|
+
ref: "UseDualStack",
|
|
136
|
+
},
|
|
137
|
+
true,
|
|
138
|
+
],
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
type: "tree",
|
|
142
|
+
rules: [
|
|
143
|
+
{
|
|
144
|
+
conditions: [
|
|
145
|
+
{
|
|
146
|
+
fn: "booleanEquals",
|
|
147
|
+
argv: [
|
|
148
|
+
true,
|
|
149
|
+
{
|
|
150
|
+
fn: "getAttr",
|
|
151
|
+
argv: [
|
|
152
|
+
{
|
|
153
|
+
ref: "PartitionResult",
|
|
154
|
+
},
|
|
155
|
+
"supportsFIPS",
|
|
156
|
+
],
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
fn: "booleanEquals",
|
|
162
|
+
argv: [
|
|
163
|
+
true,
|
|
164
|
+
{
|
|
165
|
+
fn: "getAttr",
|
|
166
|
+
argv: [
|
|
167
|
+
{
|
|
168
|
+
ref: "PartitionResult",
|
|
169
|
+
},
|
|
170
|
+
"supportsDualStack",
|
|
171
|
+
],
|
|
172
|
+
},
|
|
173
|
+
],
|
|
174
|
+
},
|
|
175
|
+
],
|
|
176
|
+
type: "tree",
|
|
177
|
+
rules: [
|
|
178
|
+
{
|
|
179
|
+
conditions: [],
|
|
180
|
+
endpoint: {
|
|
181
|
+
url: "https://support-app-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
182
|
+
properties: {},
|
|
183
|
+
headers: {},
|
|
184
|
+
},
|
|
185
|
+
type: "endpoint",
|
|
186
|
+
},
|
|
187
|
+
],
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
conditions: [],
|
|
191
|
+
error: "FIPS and DualStack are enabled, but this partition does not support one or both",
|
|
192
|
+
type: "error",
|
|
193
|
+
},
|
|
194
|
+
],
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
conditions: [
|
|
198
|
+
{
|
|
199
|
+
fn: "booleanEquals",
|
|
200
|
+
argv: [
|
|
201
|
+
{
|
|
202
|
+
ref: "UseFIPS",
|
|
203
|
+
},
|
|
204
|
+
true,
|
|
205
|
+
],
|
|
206
|
+
},
|
|
207
|
+
],
|
|
208
|
+
type: "tree",
|
|
209
|
+
rules: [
|
|
210
|
+
{
|
|
211
|
+
conditions: [
|
|
212
|
+
{
|
|
213
|
+
fn: "booleanEquals",
|
|
214
|
+
argv: [
|
|
215
|
+
true,
|
|
216
|
+
{
|
|
217
|
+
fn: "getAttr",
|
|
218
|
+
argv: [
|
|
219
|
+
{
|
|
220
|
+
ref: "PartitionResult",
|
|
221
|
+
},
|
|
222
|
+
"supportsFIPS",
|
|
223
|
+
],
|
|
224
|
+
},
|
|
225
|
+
],
|
|
226
|
+
},
|
|
227
|
+
],
|
|
228
|
+
type: "tree",
|
|
229
|
+
rules: [
|
|
230
|
+
{
|
|
231
|
+
conditions: [],
|
|
232
|
+
endpoint: {
|
|
233
|
+
url: "https://support-app-fips.{Region}.{PartitionResult#dnsSuffix}",
|
|
234
|
+
properties: {},
|
|
235
|
+
headers: {},
|
|
236
|
+
},
|
|
237
|
+
type: "endpoint",
|
|
238
|
+
},
|
|
239
|
+
],
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
conditions: [],
|
|
243
|
+
error: "FIPS is enabled but this partition does not support FIPS",
|
|
244
|
+
type: "error",
|
|
245
|
+
},
|
|
246
|
+
],
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
conditions: [
|
|
250
|
+
{
|
|
251
|
+
fn: "booleanEquals",
|
|
252
|
+
argv: [
|
|
253
|
+
{
|
|
254
|
+
ref: "UseDualStack",
|
|
255
|
+
},
|
|
256
|
+
true,
|
|
257
|
+
],
|
|
258
|
+
},
|
|
259
|
+
],
|
|
260
|
+
type: "tree",
|
|
261
|
+
rules: [
|
|
262
|
+
{
|
|
263
|
+
conditions: [
|
|
264
|
+
{
|
|
265
|
+
fn: "booleanEquals",
|
|
266
|
+
argv: [
|
|
267
|
+
true,
|
|
268
|
+
{
|
|
269
|
+
fn: "getAttr",
|
|
270
|
+
argv: [
|
|
271
|
+
{
|
|
272
|
+
ref: "PartitionResult",
|
|
273
|
+
},
|
|
274
|
+
"supportsDualStack",
|
|
275
|
+
],
|
|
276
|
+
},
|
|
277
|
+
],
|
|
278
|
+
},
|
|
279
|
+
],
|
|
280
|
+
type: "tree",
|
|
281
|
+
rules: [
|
|
282
|
+
{
|
|
283
|
+
conditions: [],
|
|
284
|
+
endpoint: {
|
|
285
|
+
url: "https://support-app.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
286
|
+
properties: {},
|
|
287
|
+
headers: {},
|
|
288
|
+
},
|
|
289
|
+
type: "endpoint",
|
|
290
|
+
},
|
|
291
|
+
],
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
conditions: [],
|
|
295
|
+
error: "DualStack is enabled but this partition does not support DualStack",
|
|
296
|
+
type: "error",
|
|
297
|
+
},
|
|
298
|
+
],
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
conditions: [],
|
|
302
|
+
endpoint: {
|
|
303
|
+
url: "https://support-app.{Region}.{PartitionResult#dnsSuffix}",
|
|
304
|
+
properties: {},
|
|
305
|
+
headers: {},
|
|
306
|
+
},
|
|
307
|
+
type: "endpoint",
|
|
308
|
+
},
|
|
309
|
+
],
|
|
310
|
+
},
|
|
311
|
+
],
|
|
312
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateSlackChannelConfigurationResultFilterSensitiveLog = exports.UpdateSlackChannelConfigurationRequestFilterSensitiveLog = exports.PutAccountAliasResultFilterSensitiveLog = exports.PutAccountAliasRequestFilterSensitiveLog = exports.ListSlackWorkspaceConfigurationsResultFilterSensitiveLog = exports.SlackWorkspaceConfigurationFilterSensitiveLog = exports.ListSlackWorkspaceConfigurationsRequestFilterSensitiveLog = exports.ListSlackChannelConfigurationsResultFilterSensitiveLog = exports.SlackChannelConfigurationFilterSensitiveLog = exports.ListSlackChannelConfigurationsRequestFilterSensitiveLog = exports.GetAccountAliasResultFilterSensitiveLog = exports.GetAccountAliasRequestFilterSensitiveLog = exports.DeleteSlackWorkspaceConfigurationResultFilterSensitiveLog = exports.DeleteSlackWorkspaceConfigurationRequestFilterSensitiveLog = exports.DeleteSlackChannelConfigurationResultFilterSensitiveLog = exports.DeleteSlackChannelConfigurationRequestFilterSensitiveLog = exports.DeleteAccountAliasResultFilterSensitiveLog = exports.DeleteAccountAliasRequestFilterSensitiveLog = exports.CreateSlackChannelConfigurationResultFilterSensitiveLog = exports.CreateSlackChannelConfigurationRequestFilterSensitiveLog = exports.ResourceNotFoundException = exports.ValidationException = exports.ServiceQuotaExceededException = exports.InternalServerException = exports.NotificationSeverityLevel = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
3
|
+
exports.UpdateSlackChannelConfigurationResultFilterSensitiveLog = exports.UpdateSlackChannelConfigurationRequestFilterSensitiveLog = exports.RegisterSlackWorkspaceForOrganizationResultFilterSensitiveLog = exports.RegisterSlackWorkspaceForOrganizationRequestFilterSensitiveLog = exports.PutAccountAliasResultFilterSensitiveLog = exports.PutAccountAliasRequestFilterSensitiveLog = exports.ListSlackWorkspaceConfigurationsResultFilterSensitiveLog = exports.SlackWorkspaceConfigurationFilterSensitiveLog = exports.ListSlackWorkspaceConfigurationsRequestFilterSensitiveLog = exports.ListSlackChannelConfigurationsResultFilterSensitiveLog = exports.SlackChannelConfigurationFilterSensitiveLog = exports.ListSlackChannelConfigurationsRequestFilterSensitiveLog = exports.GetAccountAliasResultFilterSensitiveLog = exports.GetAccountAliasRequestFilterSensitiveLog = exports.DeleteSlackWorkspaceConfigurationResultFilterSensitiveLog = exports.DeleteSlackWorkspaceConfigurationRequestFilterSensitiveLog = exports.DeleteSlackChannelConfigurationResultFilterSensitiveLog = exports.DeleteSlackChannelConfigurationRequestFilterSensitiveLog = exports.DeleteAccountAliasResultFilterSensitiveLog = exports.DeleteAccountAliasRequestFilterSensitiveLog = exports.CreateSlackChannelConfigurationResultFilterSensitiveLog = exports.CreateSlackChannelConfigurationRequestFilterSensitiveLog = exports.ResourceNotFoundException = exports.ValidationException = exports.ServiceQuotaExceededException = exports.InternalServerException = exports.NotificationSeverityLevel = exports.ConflictException = exports.AccountType = exports.AccessDeniedException = void 0;
|
|
4
4
|
const SupportAppServiceException_1 = require("./SupportAppServiceException");
|
|
5
5
|
class AccessDeniedException extends SupportAppServiceException_1.SupportAppServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -15,6 +15,11 @@ class AccessDeniedException extends SupportAppServiceException_1.SupportAppServi
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
exports.AccessDeniedException = AccessDeniedException;
|
|
18
|
+
var AccountType;
|
|
19
|
+
(function (AccountType) {
|
|
20
|
+
AccountType["MANAGEMENT"] = "management";
|
|
21
|
+
AccountType["MEMBER"] = "member";
|
|
22
|
+
})(AccountType = exports.AccountType || (exports.AccountType = {}));
|
|
18
23
|
class ConflictException extends SupportAppServiceException_1.SupportAppServiceException {
|
|
19
24
|
constructor(opts) {
|
|
20
25
|
super({
|
|
@@ -158,6 +163,14 @@ const PutAccountAliasResultFilterSensitiveLog = (obj) => ({
|
|
|
158
163
|
...obj,
|
|
159
164
|
});
|
|
160
165
|
exports.PutAccountAliasResultFilterSensitiveLog = PutAccountAliasResultFilterSensitiveLog;
|
|
166
|
+
const RegisterSlackWorkspaceForOrganizationRequestFilterSensitiveLog = (obj) => ({
|
|
167
|
+
...obj,
|
|
168
|
+
});
|
|
169
|
+
exports.RegisterSlackWorkspaceForOrganizationRequestFilterSensitiveLog = RegisterSlackWorkspaceForOrganizationRequestFilterSensitiveLog;
|
|
170
|
+
const RegisterSlackWorkspaceForOrganizationResultFilterSensitiveLog = (obj) => ({
|
|
171
|
+
...obj,
|
|
172
|
+
});
|
|
173
|
+
exports.RegisterSlackWorkspaceForOrganizationResultFilterSensitiveLog = RegisterSlackWorkspaceForOrganizationResultFilterSensitiveLog;
|
|
161
174
|
const UpdateSlackChannelConfigurationRequestFilterSensitiveLog = (obj) => ({
|
|
162
175
|
...obj,
|
|
163
176
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deserializeAws_restJson1UpdateSlackChannelConfigurationCommand = exports.deserializeAws_restJson1PutAccountAliasCommand = exports.deserializeAws_restJson1ListSlackWorkspaceConfigurationsCommand = exports.deserializeAws_restJson1ListSlackChannelConfigurationsCommand = exports.deserializeAws_restJson1GetAccountAliasCommand = exports.deserializeAws_restJson1DeleteSlackWorkspaceConfigurationCommand = exports.deserializeAws_restJson1DeleteSlackChannelConfigurationCommand = exports.deserializeAws_restJson1DeleteAccountAliasCommand = exports.deserializeAws_restJson1CreateSlackChannelConfigurationCommand = exports.serializeAws_restJson1UpdateSlackChannelConfigurationCommand = exports.serializeAws_restJson1PutAccountAliasCommand = exports.serializeAws_restJson1ListSlackWorkspaceConfigurationsCommand = exports.serializeAws_restJson1ListSlackChannelConfigurationsCommand = exports.serializeAws_restJson1GetAccountAliasCommand = exports.serializeAws_restJson1DeleteSlackWorkspaceConfigurationCommand = exports.serializeAws_restJson1DeleteSlackChannelConfigurationCommand = exports.serializeAws_restJson1DeleteAccountAliasCommand = exports.serializeAws_restJson1CreateSlackChannelConfigurationCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1UpdateSlackChannelConfigurationCommand = exports.deserializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommand = exports.deserializeAws_restJson1PutAccountAliasCommand = exports.deserializeAws_restJson1ListSlackWorkspaceConfigurationsCommand = exports.deserializeAws_restJson1ListSlackChannelConfigurationsCommand = exports.deserializeAws_restJson1GetAccountAliasCommand = exports.deserializeAws_restJson1DeleteSlackWorkspaceConfigurationCommand = exports.deserializeAws_restJson1DeleteSlackChannelConfigurationCommand = exports.deserializeAws_restJson1DeleteAccountAliasCommand = exports.deserializeAws_restJson1CreateSlackChannelConfigurationCommand = exports.serializeAws_restJson1UpdateSlackChannelConfigurationCommand = exports.serializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommand = exports.serializeAws_restJson1PutAccountAliasCommand = exports.serializeAws_restJson1ListSlackWorkspaceConfigurationsCommand = exports.serializeAws_restJson1ListSlackChannelConfigurationsCommand = exports.serializeAws_restJson1GetAccountAliasCommand = exports.serializeAws_restJson1DeleteSlackWorkspaceConfigurationCommand = exports.serializeAws_restJson1DeleteSlackChannelConfigurationCommand = exports.serializeAws_restJson1DeleteAccountAliasCommand = exports.serializeAws_restJson1CreateSlackChannelConfigurationCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
@@ -184,6 +184,28 @@ const serializeAws_restJson1PutAccountAliasCommand = async (input, context) => {
|
|
|
184
184
|
});
|
|
185
185
|
};
|
|
186
186
|
exports.serializeAws_restJson1PutAccountAliasCommand = serializeAws_restJson1PutAccountAliasCommand;
|
|
187
|
+
const serializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommand = async (input, context) => {
|
|
188
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
189
|
+
const headers = {
|
|
190
|
+
"content-type": "application/json",
|
|
191
|
+
};
|
|
192
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
193
|
+
"/control/register-slack-workspace-for-organization";
|
|
194
|
+
let body;
|
|
195
|
+
body = JSON.stringify({
|
|
196
|
+
...(input.teamId != null && { teamId: input.teamId }),
|
|
197
|
+
});
|
|
198
|
+
return new protocol_http_1.HttpRequest({
|
|
199
|
+
protocol,
|
|
200
|
+
hostname,
|
|
201
|
+
port,
|
|
202
|
+
method: "POST",
|
|
203
|
+
headers,
|
|
204
|
+
path: resolvedPath,
|
|
205
|
+
body,
|
|
206
|
+
});
|
|
207
|
+
};
|
|
208
|
+
exports.serializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommand = serializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommand;
|
|
187
209
|
const serializeAws_restJson1UpdateSlackChannelConfigurationCommand = async (input, context) => {
|
|
188
210
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
189
211
|
const headers = {
|
|
@@ -532,6 +554,58 @@ const deserializeAws_restJson1PutAccountAliasCommandError = async (output, conte
|
|
|
532
554
|
});
|
|
533
555
|
}
|
|
534
556
|
};
|
|
557
|
+
const deserializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommand = async (output, context) => {
|
|
558
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
559
|
+
return deserializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommandError(output, context);
|
|
560
|
+
}
|
|
561
|
+
const contents = map({
|
|
562
|
+
$metadata: deserializeMetadata(output),
|
|
563
|
+
});
|
|
564
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
565
|
+
if (data.accountType != null) {
|
|
566
|
+
contents.accountType = (0, smithy_client_1.expectString)(data.accountType);
|
|
567
|
+
}
|
|
568
|
+
if (data.teamId != null) {
|
|
569
|
+
contents.teamId = (0, smithy_client_1.expectString)(data.teamId);
|
|
570
|
+
}
|
|
571
|
+
if (data.teamName != null) {
|
|
572
|
+
contents.teamName = (0, smithy_client_1.expectString)(data.teamName);
|
|
573
|
+
}
|
|
574
|
+
return contents;
|
|
575
|
+
};
|
|
576
|
+
exports.deserializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommand = deserializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommand;
|
|
577
|
+
const deserializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommandError = async (output, context) => {
|
|
578
|
+
const parsedOutput = {
|
|
579
|
+
...output,
|
|
580
|
+
body: await parseErrorBody(output.body, context),
|
|
581
|
+
};
|
|
582
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
583
|
+
switch (errorCode) {
|
|
584
|
+
case "AccessDeniedException":
|
|
585
|
+
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
586
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
587
|
+
case "ConflictException":
|
|
588
|
+
case "com.amazonaws.supportapp#ConflictException":
|
|
589
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
590
|
+
case "InternalServerException":
|
|
591
|
+
case "com.amazonaws.supportapp#InternalServerException":
|
|
592
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
593
|
+
case "ResourceNotFoundException":
|
|
594
|
+
case "com.amazonaws.supportapp#ResourceNotFoundException":
|
|
595
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
596
|
+
case "ValidationException":
|
|
597
|
+
case "com.amazonaws.supportapp#ValidationException":
|
|
598
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
599
|
+
default:
|
|
600
|
+
const parsedBody = parsedOutput.body;
|
|
601
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
602
|
+
output,
|
|
603
|
+
parsedBody,
|
|
604
|
+
exceptionCtor: SupportAppServiceException_1.SupportAppServiceException,
|
|
605
|
+
errorCode,
|
|
606
|
+
});
|
|
607
|
+
}
|
|
608
|
+
};
|
|
535
609
|
const deserializeAws_restJson1UpdateSlackChannelConfigurationCommand = async (output, context) => {
|
|
536
610
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
537
611
|
return deserializeAws_restJson1UpdateSlackChannelConfigurationCommandError(output, context);
|
|
@@ -697,7 +771,9 @@ const deserializeAws_restJson1slackChannelConfigurationList = (output, context)
|
|
|
697
771
|
};
|
|
698
772
|
const deserializeAws_restJson1SlackWorkspaceConfiguration = (output, context) => {
|
|
699
773
|
return {
|
|
774
|
+
allowOrganizationMemberAccount: (0, smithy_client_1.expectBoolean)(output.allowOrganizationMemberAccount),
|
|
700
775
|
teamId: (0, smithy_client_1.expectString)(output.teamId),
|
|
776
|
+
teamName: (0, smithy_client_1.expectString)(output.teamName),
|
|
701
777
|
};
|
|
702
778
|
};
|
|
703
779
|
const deserializeAws_restJson1SlackWorkspaceConfigurationList = (output, context) => {
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
|
-
const
|
|
5
|
+
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
7
|
var _a, _b, _c, _d, _e;
|
|
8
8
|
return ({
|
|
9
9
|
apiVersion: "2021-08-20",
|
|
10
10
|
disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
endpointProvider: (_b = config === null || config === void 0 ? void 0 : config.endpointProvider) !== null && _b !== void 0 ? _b : endpointResolver_1.defaultEndpointResolver,
|
|
12
|
+
logger: (_c = config === null || config === void 0 ? void 0 : config.logger) !== null && _c !== void 0 ? _c : {},
|
|
13
13
|
serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "Support App",
|
|
14
14
|
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
|
|
15
15
|
});
|
package/dist-es/SupportApp.js
CHANGED
|
@@ -6,6 +6,7 @@ import { GetAccountAliasCommand, } from "./commands/GetAccountAliasCommand";
|
|
|
6
6
|
import { ListSlackChannelConfigurationsCommand, } from "./commands/ListSlackChannelConfigurationsCommand";
|
|
7
7
|
import { ListSlackWorkspaceConfigurationsCommand, } from "./commands/ListSlackWorkspaceConfigurationsCommand";
|
|
8
8
|
import { PutAccountAliasCommand, } from "./commands/PutAccountAliasCommand";
|
|
9
|
+
import { RegisterSlackWorkspaceForOrganizationCommand, } from "./commands/RegisterSlackWorkspaceForOrganizationCommand";
|
|
9
10
|
import { UpdateSlackChannelConfigurationCommand, } from "./commands/UpdateSlackChannelConfigurationCommand";
|
|
10
11
|
import { SupportAppClient } from "./SupportAppClient";
|
|
11
12
|
export class SupportApp extends SupportAppClient {
|
|
@@ -121,6 +122,20 @@ export class SupportApp extends SupportAppClient {
|
|
|
121
122
|
return this.send(command, optionsOrCb);
|
|
122
123
|
}
|
|
123
124
|
}
|
|
125
|
+
registerSlackWorkspaceForOrganization(args, optionsOrCb, cb) {
|
|
126
|
+
const command = new RegisterSlackWorkspaceForOrganizationCommand(args);
|
|
127
|
+
if (typeof optionsOrCb === "function") {
|
|
128
|
+
this.send(command, optionsOrCb);
|
|
129
|
+
}
|
|
130
|
+
else if (typeof cb === "function") {
|
|
131
|
+
if (typeof optionsOrCb !== "object")
|
|
132
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
133
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
return this.send(command, optionsOrCb);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
124
139
|
updateSlackChannelConfiguration(args, optionsOrCb, cb) {
|
|
125
140
|
const command = new UpdateSlackChannelConfigurationCommand(args);
|
|
126
141
|
if (typeof optionsOrCb === "function") {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { resolveRegionConfig } from "@aws-sdk/config-resolver";
|
|
2
2
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
3
|
+
import { resolveEndpointConfig } from "@aws-sdk/middleware-endpoint";
|
|
3
4
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
4
5
|
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
5
6
|
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
@@ -7,18 +8,20 @@ import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
|
7
8
|
import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
|
|
8
9
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
9
10
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
|
+
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
10
12
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
13
|
export class SupportAppClient extends __Client {
|
|
12
14
|
constructor(configuration) {
|
|
13
15
|
const _config_0 = __getRuntimeConfig(configuration);
|
|
14
|
-
const _config_1 =
|
|
15
|
-
const _config_2 =
|
|
16
|
-
const _config_3 =
|
|
17
|
-
const _config_4 =
|
|
18
|
-
const _config_5 =
|
|
19
|
-
const _config_6 =
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
17
|
+
const _config_2 = resolveRegionConfig(_config_1);
|
|
18
|
+
const _config_3 = resolveEndpointConfig(_config_2);
|
|
19
|
+
const _config_4 = resolveRetryConfig(_config_3);
|
|
20
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
21
|
+
const _config_6 = resolveAwsAuthConfig(_config_5);
|
|
22
|
+
const _config_7 = resolveUserAgentConfig(_config_6);
|
|
23
|
+
super(_config_7);
|
|
24
|
+
this.config = _config_7;
|
|
22
25
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
23
26
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
24
27
|
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { CreateSlackChannelConfigurationRequestFilterSensitiveLog, CreateSlackChannelConfigurationResultFilterSensitiveLog, } from "../models/models_0";
|
|
@@ -7,8 +8,17 @@ export class CreateSlackChannelConfigurationCommand extends $Command {
|
|
|
7
8
|
super();
|
|
8
9
|
this.input = input;
|
|
9
10
|
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
10
19
|
resolveMiddleware(clientStack, configuration, options) {
|
|
11
20
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CreateSlackChannelConfigurationCommand.getEndpointParameterInstructions()));
|
|
12
22
|
const stack = clientStack.concat(this.middlewareStack);
|
|
13
23
|
const { logger } = configuration;
|
|
14
24
|
const clientName = "SupportAppClient";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { DeleteAccountAliasRequestFilterSensitiveLog, DeleteAccountAliasResultFilterSensitiveLog, } from "../models/models_0";
|
|
@@ -7,8 +8,17 @@ export class DeleteAccountAliasCommand extends $Command {
|
|
|
7
8
|
super();
|
|
8
9
|
this.input = input;
|
|
9
10
|
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
10
19
|
resolveMiddleware(clientStack, configuration, options) {
|
|
11
20
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DeleteAccountAliasCommand.getEndpointParameterInstructions()));
|
|
12
22
|
const stack = clientStack.concat(this.middlewareStack);
|
|
13
23
|
const { logger } = configuration;
|
|
14
24
|
const clientName = "SupportAppClient";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { DeleteSlackChannelConfigurationRequestFilterSensitiveLog, DeleteSlackChannelConfigurationResultFilterSensitiveLog, } from "../models/models_0";
|
|
@@ -7,8 +8,17 @@ export class DeleteSlackChannelConfigurationCommand extends $Command {
|
|
|
7
8
|
super();
|
|
8
9
|
this.input = input;
|
|
9
10
|
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
10
19
|
resolveMiddleware(clientStack, configuration, options) {
|
|
11
20
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DeleteSlackChannelConfigurationCommand.getEndpointParameterInstructions()));
|
|
12
22
|
const stack = clientStack.concat(this.middlewareStack);
|
|
13
23
|
const { logger } = configuration;
|
|
14
24
|
const clientName = "SupportAppClient";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { DeleteSlackWorkspaceConfigurationRequestFilterSensitiveLog, DeleteSlackWorkspaceConfigurationResultFilterSensitiveLog, } from "../models/models_0";
|
|
@@ -7,8 +8,17 @@ export class DeleteSlackWorkspaceConfigurationCommand extends $Command {
|
|
|
7
8
|
super();
|
|
8
9
|
this.input = input;
|
|
9
10
|
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
10
19
|
resolveMiddleware(clientStack, configuration, options) {
|
|
11
20
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DeleteSlackWorkspaceConfigurationCommand.getEndpointParameterInstructions()));
|
|
12
22
|
const stack = clientStack.concat(this.middlewareStack);
|
|
13
23
|
const { logger } = configuration;
|
|
14
24
|
const clientName = "SupportAppClient";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { GetAccountAliasRequestFilterSensitiveLog, GetAccountAliasResultFilterSensitiveLog, } from "../models/models_0";
|
|
@@ -7,8 +8,17 @@ export class GetAccountAliasCommand extends $Command {
|
|
|
7
8
|
super();
|
|
8
9
|
this.input = input;
|
|
9
10
|
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
10
19
|
resolveMiddleware(clientStack, configuration, options) {
|
|
11
20
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetAccountAliasCommand.getEndpointParameterInstructions()));
|
|
12
22
|
const stack = clientStack.concat(this.middlewareStack);
|
|
13
23
|
const { logger } = configuration;
|
|
14
24
|
const clientName = "SupportAppClient";
|