@aws-sdk/client-notificationscontacts 3.698.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 +277 -0
- package/dist-cjs/NotificationsContacts.js +29 -0
- package/dist-cjs/NotificationsContactsClient.js +50 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/commands/ActivateEmailContactCommand.js +27 -0
- package/dist-cjs/commands/CreateEmailContactCommand.js +27 -0
- package/dist-cjs/commands/DeleteEmailContactCommand.js +26 -0
- package/dist-cjs/commands/GetEmailContactCommand.js +27 -0
- package/dist-cjs/commands/ListEmailContactsCommand.js +27 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +26 -0
- package/dist-cjs/commands/SendActivationCodeCommand.js +26 -0
- package/dist-cjs/commands/TagResourceCommand.js +26 -0
- package/dist-cjs/commands/UntagResourceCommand.js +26 -0
- package/dist-cjs/commands/index.js +12 -0
- package/dist-cjs/endpoint/EndpointParameters.js +16 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/NotificationsContactsServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +147 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListEmailContactsPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +5 -0
- package/dist-cjs/protocols/Aws_restJson1.js +405 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +34 -0
- package/dist-cjs/runtimeExtensions.js +25 -0
- package/dist-es/NotificationsContacts.js +25 -0
- package/dist-es/NotificationsContactsClient.js +46 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/ActivateEmailContactCommand.js +23 -0
- package/dist-es/commands/CreateEmailContactCommand.js +23 -0
- package/dist-es/commands/DeleteEmailContactCommand.js +22 -0
- package/dist-es/commands/GetEmailContactCommand.js +23 -0
- package/dist-es/commands/ListEmailContactsCommand.js +23 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
- package/dist-es/commands/SendActivationCodeCommand.js +22 -0
- package/dist-es/commands/TagResourceCommand.js +22 -0
- package/dist-es/commands/UntagResourceCommand.js +22 -0
- package/dist-es/commands/index.js +9 -0
- package/dist-es/endpoint/EndpointParameters.js +12 -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 +6 -0
- package/dist-es/models/NotificationsContactsServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +132 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListEmailContactsPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +384 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +30 -0
- package/dist-es/runtimeExtensions.js +21 -0
- package/dist-types/NotificationsContacts.d.ts +74 -0
- package/dist-types/NotificationsContactsClient.d.ts +178 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/dist-types/commands/ActivateEmailContactCommand.d.ts +88 -0
- package/dist-types/commands/CreateEmailContactCommand.d.ts +93 -0
- package/dist-types/commands/DeleteEmailContactCommand.d.ts +90 -0
- package/dist-types/commands/GetEmailContactCommand.d.ts +93 -0
- package/dist-types/commands/ListEmailContactsCommand.d.ts +94 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +88 -0
- package/dist-types/commands/SendActivationCodeCommand.d.ts +90 -0
- package/dist-types/commands/TagResourceCommand.d.ts +87 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +87 -0
- package/dist-types/commands/index.d.ts +9 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +34 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +14 -0
- package/dist-types/models/NotificationsContactsServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +445 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListEmailContactsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +83 -0
- package/dist-types/runtimeConfig.browser.d.ts +48 -0
- package/dist-types/runtimeConfig.d.ts +48 -0
- package/dist-types/runtimeConfig.native.d.ts +47 -0
- package/dist-types/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/NotificationsContacts.d.ts +161 -0
- package/dist-types/ts3.4/NotificationsContactsClient.d.ts +175 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
- package/dist-types/ts3.4/commands/ActivateEmailContactCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateEmailContactCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteEmailContactCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetEmailContactCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListEmailContactsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/SendActivationCodeCommand.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/index.d.ts +9 -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 +9 -0
- package/dist-types/ts3.4/models/NotificationsContactsServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +154 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListEmailContactsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +113 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +95 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +96 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +89 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +23 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
- package/package.json +101 -0
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SendActivationCodeCommand = exports.de_ListTagsForResourceCommand = exports.de_ListEmailContactsCommand = exports.de_GetEmailContactCommand = exports.de_DeleteEmailContactCommand = exports.de_CreateEmailContactCommand = exports.de_ActivateEmailContactCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SendActivationCodeCommand = exports.se_ListTagsForResourceCommand = exports.se_ListEmailContactsCommand = exports.se_GetEmailContactCommand = exports.se_DeleteEmailContactCommand = exports.se_CreateEmailContactCommand = exports.se_ActivateEmailContactCommand = void 0;
|
|
4
|
+
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const core_2 = require("@smithy/core");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const NotificationsContactsServiceException_1 = require("../models/NotificationsContactsServiceException");
|
|
9
|
+
const se_ActivateEmailContactCommand = async (input, context) => {
|
|
10
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
11
|
+
const headers = {};
|
|
12
|
+
b.bp("/emailcontacts/{arn}/activate/{code}");
|
|
13
|
+
b.p("arn", () => input.arn, "{arn}", false);
|
|
14
|
+
b.p("code", () => input.code, "{code}", false);
|
|
15
|
+
let body;
|
|
16
|
+
b.m("PUT").h(headers).b(body);
|
|
17
|
+
return b.build();
|
|
18
|
+
};
|
|
19
|
+
exports.se_ActivateEmailContactCommand = se_ActivateEmailContactCommand;
|
|
20
|
+
const se_CreateEmailContactCommand = async (input, context) => {
|
|
21
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
22
|
+
const headers = {
|
|
23
|
+
"content-type": "application/json",
|
|
24
|
+
};
|
|
25
|
+
b.bp("/2022-09-19/emailcontacts");
|
|
26
|
+
let body;
|
|
27
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
28
|
+
emailAddress: [],
|
|
29
|
+
name: [],
|
|
30
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
31
|
+
}));
|
|
32
|
+
b.m("POST").h(headers).b(body);
|
|
33
|
+
return b.build();
|
|
34
|
+
};
|
|
35
|
+
exports.se_CreateEmailContactCommand = se_CreateEmailContactCommand;
|
|
36
|
+
const se_DeleteEmailContactCommand = async (input, context) => {
|
|
37
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
38
|
+
const headers = {};
|
|
39
|
+
b.bp("/emailcontacts/{arn}");
|
|
40
|
+
b.p("arn", () => input.arn, "{arn}", false);
|
|
41
|
+
let body;
|
|
42
|
+
b.m("DELETE").h(headers).b(body);
|
|
43
|
+
return b.build();
|
|
44
|
+
};
|
|
45
|
+
exports.se_DeleteEmailContactCommand = se_DeleteEmailContactCommand;
|
|
46
|
+
const se_GetEmailContactCommand = async (input, context) => {
|
|
47
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
48
|
+
const headers = {};
|
|
49
|
+
b.bp("/emailcontacts/{arn}");
|
|
50
|
+
b.p("arn", () => input.arn, "{arn}", false);
|
|
51
|
+
let body;
|
|
52
|
+
b.m("GET").h(headers).b(body);
|
|
53
|
+
return b.build();
|
|
54
|
+
};
|
|
55
|
+
exports.se_GetEmailContactCommand = se_GetEmailContactCommand;
|
|
56
|
+
const se_ListEmailContactsCommand = async (input, context) => {
|
|
57
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
58
|
+
const headers = {};
|
|
59
|
+
b.bp("/emailcontacts");
|
|
60
|
+
const query = (0, smithy_client_1.map)({
|
|
61
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
62
|
+
[_nT]: [, input[_nT]],
|
|
63
|
+
});
|
|
64
|
+
let body;
|
|
65
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
66
|
+
return b.build();
|
|
67
|
+
};
|
|
68
|
+
exports.se_ListEmailContactsCommand = se_ListEmailContactsCommand;
|
|
69
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
70
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
71
|
+
const headers = {};
|
|
72
|
+
b.bp("/tags/{arn}");
|
|
73
|
+
b.p("arn", () => input.arn, "{arn}", false);
|
|
74
|
+
let body;
|
|
75
|
+
b.m("GET").h(headers).b(body);
|
|
76
|
+
return b.build();
|
|
77
|
+
};
|
|
78
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
79
|
+
const se_SendActivationCodeCommand = async (input, context) => {
|
|
80
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
81
|
+
const headers = {};
|
|
82
|
+
b.bp("/2022-10-31/emailcontacts/{arn}/activate/send");
|
|
83
|
+
b.p("arn", () => input.arn, "{arn}", false);
|
|
84
|
+
let body;
|
|
85
|
+
b.m("POST").h(headers).b(body);
|
|
86
|
+
return b.build();
|
|
87
|
+
};
|
|
88
|
+
exports.se_SendActivationCodeCommand = se_SendActivationCodeCommand;
|
|
89
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
90
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
91
|
+
const headers = {
|
|
92
|
+
"content-type": "application/json",
|
|
93
|
+
};
|
|
94
|
+
b.bp("/tags/{arn}");
|
|
95
|
+
b.p("arn", () => input.arn, "{arn}", false);
|
|
96
|
+
let body;
|
|
97
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
98
|
+
tags: (_) => (0, smithy_client_1._json)(_),
|
|
99
|
+
}));
|
|
100
|
+
b.m("POST").h(headers).b(body);
|
|
101
|
+
return b.build();
|
|
102
|
+
};
|
|
103
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
104
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
105
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
106
|
+
const headers = {};
|
|
107
|
+
b.bp("/tags/{arn}");
|
|
108
|
+
b.p("arn", () => input.arn, "{arn}", false);
|
|
109
|
+
const query = (0, smithy_client_1.map)({
|
|
110
|
+
[_tK]: [(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
111
|
+
});
|
|
112
|
+
let body;
|
|
113
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
114
|
+
return b.build();
|
|
115
|
+
};
|
|
116
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
117
|
+
const de_ActivateEmailContactCommand = async (output, context) => {
|
|
118
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
119
|
+
return de_CommandError(output, context);
|
|
120
|
+
}
|
|
121
|
+
const contents = (0, smithy_client_1.map)({
|
|
122
|
+
$metadata: deserializeMetadata(output),
|
|
123
|
+
});
|
|
124
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
125
|
+
return contents;
|
|
126
|
+
};
|
|
127
|
+
exports.de_ActivateEmailContactCommand = de_ActivateEmailContactCommand;
|
|
128
|
+
const de_CreateEmailContactCommand = async (output, context) => {
|
|
129
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
130
|
+
return de_CommandError(output, context);
|
|
131
|
+
}
|
|
132
|
+
const contents = (0, smithy_client_1.map)({
|
|
133
|
+
$metadata: deserializeMetadata(output),
|
|
134
|
+
});
|
|
135
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
136
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
137
|
+
arn: smithy_client_1.expectString,
|
|
138
|
+
});
|
|
139
|
+
Object.assign(contents, doc);
|
|
140
|
+
return contents;
|
|
141
|
+
};
|
|
142
|
+
exports.de_CreateEmailContactCommand = de_CreateEmailContactCommand;
|
|
143
|
+
const de_DeleteEmailContactCommand = async (output, context) => {
|
|
144
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
145
|
+
return de_CommandError(output, context);
|
|
146
|
+
}
|
|
147
|
+
const contents = (0, smithy_client_1.map)({
|
|
148
|
+
$metadata: deserializeMetadata(output),
|
|
149
|
+
});
|
|
150
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
151
|
+
return contents;
|
|
152
|
+
};
|
|
153
|
+
exports.de_DeleteEmailContactCommand = de_DeleteEmailContactCommand;
|
|
154
|
+
const de_GetEmailContactCommand = async (output, context) => {
|
|
155
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
156
|
+
return de_CommandError(output, context);
|
|
157
|
+
}
|
|
158
|
+
const contents = (0, smithy_client_1.map)({
|
|
159
|
+
$metadata: deserializeMetadata(output),
|
|
160
|
+
});
|
|
161
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
162
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
163
|
+
emailContact: (_) => de_EmailContact(_, context),
|
|
164
|
+
});
|
|
165
|
+
Object.assign(contents, doc);
|
|
166
|
+
return contents;
|
|
167
|
+
};
|
|
168
|
+
exports.de_GetEmailContactCommand = de_GetEmailContactCommand;
|
|
169
|
+
const de_ListEmailContactsCommand = async (output, context) => {
|
|
170
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
171
|
+
return de_CommandError(output, context);
|
|
172
|
+
}
|
|
173
|
+
const contents = (0, smithy_client_1.map)({
|
|
174
|
+
$metadata: deserializeMetadata(output),
|
|
175
|
+
});
|
|
176
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
177
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
178
|
+
emailContacts: (_) => de_EmailContacts(_, context),
|
|
179
|
+
nextToken: smithy_client_1.expectString,
|
|
180
|
+
});
|
|
181
|
+
Object.assign(contents, doc);
|
|
182
|
+
return contents;
|
|
183
|
+
};
|
|
184
|
+
exports.de_ListEmailContactsCommand = de_ListEmailContactsCommand;
|
|
185
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
186
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
187
|
+
return de_CommandError(output, context);
|
|
188
|
+
}
|
|
189
|
+
const contents = (0, smithy_client_1.map)({
|
|
190
|
+
$metadata: deserializeMetadata(output),
|
|
191
|
+
});
|
|
192
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
193
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
194
|
+
tags: smithy_client_1._json,
|
|
195
|
+
});
|
|
196
|
+
Object.assign(contents, doc);
|
|
197
|
+
return contents;
|
|
198
|
+
};
|
|
199
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
200
|
+
const de_SendActivationCodeCommand = async (output, context) => {
|
|
201
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
202
|
+
return de_CommandError(output, context);
|
|
203
|
+
}
|
|
204
|
+
const contents = (0, smithy_client_1.map)({
|
|
205
|
+
$metadata: deserializeMetadata(output),
|
|
206
|
+
});
|
|
207
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
208
|
+
return contents;
|
|
209
|
+
};
|
|
210
|
+
exports.de_SendActivationCodeCommand = de_SendActivationCodeCommand;
|
|
211
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
212
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
213
|
+
return de_CommandError(output, context);
|
|
214
|
+
}
|
|
215
|
+
const contents = (0, smithy_client_1.map)({
|
|
216
|
+
$metadata: deserializeMetadata(output),
|
|
217
|
+
});
|
|
218
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
219
|
+
return contents;
|
|
220
|
+
};
|
|
221
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
222
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
223
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
224
|
+
return de_CommandError(output, context);
|
|
225
|
+
}
|
|
226
|
+
const contents = (0, smithy_client_1.map)({
|
|
227
|
+
$metadata: deserializeMetadata(output),
|
|
228
|
+
});
|
|
229
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
230
|
+
return contents;
|
|
231
|
+
};
|
|
232
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
233
|
+
const de_CommandError = async (output, context) => {
|
|
234
|
+
const parsedOutput = {
|
|
235
|
+
...output,
|
|
236
|
+
body: await (0, core_1.parseJsonErrorBody)(output.body, context),
|
|
237
|
+
};
|
|
238
|
+
const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
239
|
+
switch (errorCode) {
|
|
240
|
+
case "AccessDeniedException":
|
|
241
|
+
case "com.amazonaws.notificationscontacts#AccessDeniedException":
|
|
242
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
243
|
+
case "ConflictException":
|
|
244
|
+
case "com.amazonaws.notificationscontacts#ConflictException":
|
|
245
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
246
|
+
case "InternalServerException":
|
|
247
|
+
case "com.amazonaws.notificationscontacts#InternalServerException":
|
|
248
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
249
|
+
case "ResourceNotFoundException":
|
|
250
|
+
case "com.amazonaws.notificationscontacts#ResourceNotFoundException":
|
|
251
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
252
|
+
case "ThrottlingException":
|
|
253
|
+
case "com.amazonaws.notificationscontacts#ThrottlingException":
|
|
254
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
255
|
+
case "ValidationException":
|
|
256
|
+
case "com.amazonaws.notificationscontacts#ValidationException":
|
|
257
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
258
|
+
case "ServiceQuotaExceededException":
|
|
259
|
+
case "com.amazonaws.notificationscontacts#ServiceQuotaExceededException":
|
|
260
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
261
|
+
default:
|
|
262
|
+
const parsedBody = parsedOutput.body;
|
|
263
|
+
return throwDefaultError({
|
|
264
|
+
output,
|
|
265
|
+
parsedBody,
|
|
266
|
+
errorCode,
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(NotificationsContactsServiceException_1.NotificationsContactsServiceException);
|
|
271
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
272
|
+
const contents = (0, smithy_client_1.map)({});
|
|
273
|
+
const data = parsedOutput.body;
|
|
274
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
275
|
+
message: smithy_client_1.expectString,
|
|
276
|
+
});
|
|
277
|
+
Object.assign(contents, doc);
|
|
278
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
279
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
280
|
+
...contents,
|
|
281
|
+
});
|
|
282
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
283
|
+
};
|
|
284
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
285
|
+
const contents = (0, smithy_client_1.map)({});
|
|
286
|
+
const data = parsedOutput.body;
|
|
287
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
288
|
+
message: smithy_client_1.expectString,
|
|
289
|
+
resourceId: smithy_client_1.expectString,
|
|
290
|
+
resourceType: smithy_client_1.expectString,
|
|
291
|
+
});
|
|
292
|
+
Object.assign(contents, doc);
|
|
293
|
+
const exception = new models_0_1.ConflictException({
|
|
294
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
295
|
+
...contents,
|
|
296
|
+
});
|
|
297
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
298
|
+
};
|
|
299
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
300
|
+
const contents = (0, smithy_client_1.map)({});
|
|
301
|
+
const data = parsedOutput.body;
|
|
302
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
303
|
+
message: smithy_client_1.expectString,
|
|
304
|
+
});
|
|
305
|
+
Object.assign(contents, doc);
|
|
306
|
+
const exception = new models_0_1.InternalServerException({
|
|
307
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
308
|
+
...contents,
|
|
309
|
+
});
|
|
310
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
311
|
+
};
|
|
312
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
313
|
+
const contents = (0, smithy_client_1.map)({});
|
|
314
|
+
const data = parsedOutput.body;
|
|
315
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
316
|
+
message: smithy_client_1.expectString,
|
|
317
|
+
resourceId: smithy_client_1.expectString,
|
|
318
|
+
resourceType: smithy_client_1.expectString,
|
|
319
|
+
});
|
|
320
|
+
Object.assign(contents, doc);
|
|
321
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
322
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
323
|
+
...contents,
|
|
324
|
+
});
|
|
325
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
326
|
+
};
|
|
327
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
328
|
+
const contents = (0, smithy_client_1.map)({});
|
|
329
|
+
const data = parsedOutput.body;
|
|
330
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
331
|
+
message: smithy_client_1.expectString,
|
|
332
|
+
quotaCode: smithy_client_1.expectString,
|
|
333
|
+
resourceId: smithy_client_1.expectString,
|
|
334
|
+
resourceType: smithy_client_1.expectString,
|
|
335
|
+
serviceCode: smithy_client_1.expectString,
|
|
336
|
+
});
|
|
337
|
+
Object.assign(contents, doc);
|
|
338
|
+
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
339
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
340
|
+
...contents,
|
|
341
|
+
});
|
|
342
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
343
|
+
};
|
|
344
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
345
|
+
const contents = (0, smithy_client_1.map)({
|
|
346
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
347
|
+
});
|
|
348
|
+
const data = parsedOutput.body;
|
|
349
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
350
|
+
message: smithy_client_1.expectString,
|
|
351
|
+
quotaCode: smithy_client_1.expectString,
|
|
352
|
+
serviceCode: smithy_client_1.expectString,
|
|
353
|
+
});
|
|
354
|
+
Object.assign(contents, doc);
|
|
355
|
+
const exception = new models_0_1.ThrottlingException({
|
|
356
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
357
|
+
...contents,
|
|
358
|
+
});
|
|
359
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
360
|
+
};
|
|
361
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
362
|
+
const contents = (0, smithy_client_1.map)({});
|
|
363
|
+
const data = parsedOutput.body;
|
|
364
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
365
|
+
fieldList: smithy_client_1._json,
|
|
366
|
+
message: smithy_client_1.expectString,
|
|
367
|
+
reason: smithy_client_1.expectString,
|
|
368
|
+
});
|
|
369
|
+
Object.assign(contents, doc);
|
|
370
|
+
const exception = new models_0_1.ValidationException({
|
|
371
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
372
|
+
...contents,
|
|
373
|
+
});
|
|
374
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
375
|
+
};
|
|
376
|
+
const de_EmailContact = (output, context) => {
|
|
377
|
+
return (0, smithy_client_1.take)(output, {
|
|
378
|
+
address: smithy_client_1.expectString,
|
|
379
|
+
arn: smithy_client_1.expectString,
|
|
380
|
+
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
381
|
+
name: smithy_client_1.expectString,
|
|
382
|
+
status: smithy_client_1.expectString,
|
|
383
|
+
updateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
384
|
+
});
|
|
385
|
+
};
|
|
386
|
+
const de_EmailContacts = (output, context) => {
|
|
387
|
+
const retVal = (output || [])
|
|
388
|
+
.filter((e) => e != null)
|
|
389
|
+
.map((entry) => {
|
|
390
|
+
return de_EmailContact(entry, context);
|
|
391
|
+
});
|
|
392
|
+
return retVal;
|
|
393
|
+
};
|
|
394
|
+
const deserializeMetadata = (output) => ({
|
|
395
|
+
httpStatusCode: output.statusCode,
|
|
396
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
397
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
398
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
399
|
+
});
|
|
400
|
+
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
401
|
+
const _mR = "maxResults";
|
|
402
|
+
const _nT = "nextToken";
|
|
403
|
+
const _rAS = "retryAfterSeconds";
|
|
404
|
+
const _ra = "retry-after";
|
|
405
|
+
const _tK = "tagKeys";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
+
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
|
+
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
8
|
+
const config_resolver_1 = require("@smithy/config-resolver");
|
|
9
|
+
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
10
|
+
const invalid_dependency_1 = require("@smithy/invalid-dependency");
|
|
11
|
+
const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
|
|
12
|
+
const util_retry_1 = require("@smithy/util-retry");
|
|
13
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
14
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
15
|
+
const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
|
|
16
|
+
const getRuntimeConfig = (config) => {
|
|
17
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
18
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
19
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
20
|
+
return {
|
|
21
|
+
...clientSharedValues,
|
|
22
|
+
...config,
|
|
23
|
+
runtime: "browser",
|
|
24
|
+
defaultsMode,
|
|
25
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
26
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
27
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
28
|
+
(0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
29
|
+
maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
30
|
+
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
31
|
+
requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
32
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
|
|
33
|
+
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
34
|
+
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
35
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
36
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
+
const core_1 = require("@aws-sdk/core");
|
|
7
|
+
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
8
|
+
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
9
|
+
const config_resolver_1 = require("@smithy/config-resolver");
|
|
10
|
+
const hash_node_1 = require("@smithy/hash-node");
|
|
11
|
+
const middleware_retry_1 = require("@smithy/middleware-retry");
|
|
12
|
+
const node_config_provider_1 = require("@smithy/node-config-provider");
|
|
13
|
+
const node_http_handler_1 = require("@smithy/node-http-handler");
|
|
14
|
+
const util_body_length_node_1 = require("@smithy/util-body-length-node");
|
|
15
|
+
const util_retry_1 = require("@smithy/util-retry");
|
|
16
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
17
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
18
|
+
const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
|
|
19
|
+
const smithy_client_2 = require("@smithy/smithy-client");
|
|
20
|
+
const getRuntimeConfig = (config) => {
|
|
21
|
+
(0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
|
|
22
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
25
|
+
(0, core_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
26
|
+
return {
|
|
27
|
+
...clientSharedValues,
|
|
28
|
+
...config,
|
|
29
|
+
runtime: "node",
|
|
30
|
+
defaultsMode,
|
|
31
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
32
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
|
|
33
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
34
|
+
(0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
+
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
+
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
37
|
+
requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
38
|
+
retryMode: config?.retryMode ??
|
|
39
|
+
(0, node_config_provider_1.loadConfig)({
|
|
40
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
41
|
+
default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
|
|
42
|
+
}),
|
|
43
|
+
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
44
|
+
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
45
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
46
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
47
|
+
userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS),
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
|
+
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
|
+
const getRuntimeConfig = (config) => {
|
|
7
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
8
|
+
return {
|
|
9
|
+
...browserDefaults,
|
|
10
|
+
...config,
|
|
11
|
+
runtime: "react-native",
|
|
12
|
+
sha256: config?.sha256 ?? sha256_js_1.Sha256,
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
+
const url_parser_1 = require("@smithy/url-parser");
|
|
7
|
+
const util_base64_1 = require("@smithy/util-base64");
|
|
8
|
+
const util_utf8_1 = require("@smithy/util-utf8");
|
|
9
|
+
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
10
|
+
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
11
|
+
const getRuntimeConfig = (config) => {
|
|
12
|
+
return {
|
|
13
|
+
apiVersion: "2018-05-10",
|
|
14
|
+
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
15
|
+
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
16
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
17
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
18
|
+
extensions: config?.extensions ?? [],
|
|
19
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultNotificationsContactsHttpAuthSchemeProvider,
|
|
20
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
21
|
+
{
|
|
22
|
+
schemeId: "aws.auth#sigv4",
|
|
23
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
24
|
+
signer: new core_1.AwsSdkSigV4Signer(),
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
28
|
+
serviceId: config?.serviceId ?? "NotificationsContacts",
|
|
29
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
30
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
31
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
+
const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
|
5
|
+
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
const httpAuthExtensionConfiguration_1 = require("./auth/httpAuthExtensionConfiguration");
|
|
8
|
+
const asPartial = (t) => t;
|
|
9
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
10
|
+
const extensionConfiguration = {
|
|
11
|
+
...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
12
|
+
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
13
|
+
...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
14
|
+
...asPartial((0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig)),
|
|
15
|
+
};
|
|
16
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
17
|
+
return {
|
|
18
|
+
...runtimeConfig,
|
|
19
|
+
...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
20
|
+
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
21
|
+
...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
22
|
+
...(0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration),
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
2
|
+
import { ActivateEmailContactCommand, } from "./commands/ActivateEmailContactCommand";
|
|
3
|
+
import { CreateEmailContactCommand, } from "./commands/CreateEmailContactCommand";
|
|
4
|
+
import { DeleteEmailContactCommand, } from "./commands/DeleteEmailContactCommand";
|
|
5
|
+
import { GetEmailContactCommand, } from "./commands/GetEmailContactCommand";
|
|
6
|
+
import { ListEmailContactsCommand, } from "./commands/ListEmailContactsCommand";
|
|
7
|
+
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
8
|
+
import { SendActivationCodeCommand, } from "./commands/SendActivationCodeCommand";
|
|
9
|
+
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
10
|
+
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
11
|
+
import { NotificationsContactsClient } from "./NotificationsContactsClient";
|
|
12
|
+
const commands = {
|
|
13
|
+
ActivateEmailContactCommand,
|
|
14
|
+
CreateEmailContactCommand,
|
|
15
|
+
DeleteEmailContactCommand,
|
|
16
|
+
GetEmailContactCommand,
|
|
17
|
+
ListEmailContactsCommand,
|
|
18
|
+
ListTagsForResourceCommand,
|
|
19
|
+
SendActivationCodeCommand,
|
|
20
|
+
TagResourceCommand,
|
|
21
|
+
UntagResourceCommand,
|
|
22
|
+
};
|
|
23
|
+
export class NotificationsContacts extends NotificationsContactsClient {
|
|
24
|
+
}
|
|
25
|
+
createAggregatedClient(commands, NotificationsContacts);
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
2
|
+
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
3
|
+
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
4
|
+
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
5
|
+
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
6
|
+
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
7
|
+
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
8
|
+
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
|
9
|
+
import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
|
|
10
|
+
import { Client as __Client, } from "@smithy/smithy-client";
|
|
11
|
+
import { defaultNotificationsContactsHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
|
|
12
|
+
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
13
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
14
|
+
import { resolveRuntimeExtensions } from "./runtimeExtensions";
|
|
15
|
+
export { __Client };
|
|
16
|
+
export class NotificationsContactsClient extends __Client {
|
|
17
|
+
constructor(...[configuration]) {
|
|
18
|
+
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
19
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
20
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
21
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
22
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
23
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
24
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
25
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
26
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
27
|
+
super(_config_8);
|
|
28
|
+
this.config = _config_8;
|
|
29
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
30
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
31
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
32
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
33
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
34
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
35
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
36
|
+
httpAuthSchemeParametersProvider: defaultNotificationsContactsHttpAuthSchemeParametersProvider,
|
|
37
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
38
|
+
"aws.auth#sigv4": config.credentials,
|
|
39
|
+
}),
|
|
40
|
+
}));
|
|
41
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
42
|
+
}
|
|
43
|
+
destroy() {
|
|
44
|
+
super.destroy();
|
|
45
|
+
}
|
|
46
|
+
}
|