@aws-sdk/client-codestar-notifications 3.1068.0 → 3.1069.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/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/dist-cjs/endpoint/bdd.js +2 -5
- package/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/dist-cjs/index.js +82 -102
- package/dist-cjs/models/CodestarNotificationsServiceException.js +4 -8
- package/dist-cjs/models/errors.js +17 -28
- package/dist-cjs/runtimeConfig.browser.js +22 -26
- package/dist-cjs/runtimeConfig.js +30 -34
- package/dist-cjs/runtimeConfig.native.js +4 -7
- package/dist-cjs/runtimeConfig.shared.js +20 -24
- package/dist-cjs/schemas/schemas_0.js +119 -81
- package/package.json +8 -8
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.
|
|
4
|
-
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
5
|
-
const client_1 = require("@smithy/core/client");
|
|
6
|
-
const defaultCodestarNotificationsHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
1
|
+
const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
+
const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
|
|
3
|
+
exports.defaultCodestarNotificationsHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
4
|
return {
|
|
8
|
-
operation:
|
|
9
|
-
region: await
|
|
5
|
+
operation: getSmithyContext(context).operation,
|
|
6
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
10
7
|
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
11
8
|
})(),
|
|
12
9
|
};
|
|
13
10
|
};
|
|
14
|
-
exports.defaultCodestarNotificationsHttpAuthSchemeParametersProvider = defaultCodestarNotificationsHttpAuthSchemeParametersProvider;
|
|
15
11
|
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
16
12
|
return {
|
|
17
13
|
schemeId: "aws.auth#sigv4",
|
|
@@ -27,7 +23,7 @@ function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
|
27
23
|
}),
|
|
28
24
|
};
|
|
29
25
|
}
|
|
30
|
-
|
|
26
|
+
exports.defaultCodestarNotificationsHttpAuthSchemeProvider = (authParameters) => {
|
|
31
27
|
const options = [];
|
|
32
28
|
switch (authParameters.operation) {
|
|
33
29
|
default: {
|
|
@@ -36,11 +32,9 @@ const defaultCodestarNotificationsHttpAuthSchemeProvider = (authParameters) => {
|
|
|
36
32
|
}
|
|
37
33
|
return options;
|
|
38
34
|
};
|
|
39
|
-
exports.
|
|
40
|
-
const
|
|
41
|
-
const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
|
|
35
|
+
exports.resolveHttpAuthSchemeConfig = (config) => {
|
|
36
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
42
37
|
return Object.assign(config_0, {
|
|
43
|
-
authSchemePreference:
|
|
38
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
44
39
|
});
|
|
45
40
|
};
|
|
46
|
-
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/endpoint/bdd.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bdd = void 0;
|
|
4
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
1
|
+
const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
|
|
5
2
|
const k = "ref";
|
|
6
3
|
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
7
4
|
const _data = {
|
|
@@ -46,4 +43,4 @@ const nodes = new Int32Array([
|
|
|
46
43
|
3, r + 1, 13,
|
|
47
44
|
4, r + 2, r + 3,
|
|
48
45
|
]);
|
|
49
|
-
exports.bdd =
|
|
46
|
+
exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
6
|
-
const bdd_1 = require("./bdd");
|
|
7
|
-
const cache = new endpoints_1.EndpointCache({
|
|
1
|
+
const { awsEndpointFunctions } = require("@aws-sdk/core/client");
|
|
2
|
+
const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
|
|
3
|
+
const { bdd } = require("./bdd");
|
|
4
|
+
const cache = new EndpointCache({
|
|
8
5
|
size: 50,
|
|
9
6
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
10
7
|
});
|
|
11
|
-
|
|
12
|
-
return cache.get(endpointParams, () =>
|
|
8
|
+
exports.defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
13
10
|
endpointParams: endpointParams,
|
|
14
11
|
logger: context.logger,
|
|
15
12
|
}));
|
|
16
13
|
};
|
|
17
|
-
|
|
18
|
-
endpoints_1.customEndpointFunctions.aws = client_1.awsEndpointFunctions;
|
|
14
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
var __exportStar = (m, e) => { Object.assign(e, m); };
|
|
2
|
+
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
|
+
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
4
|
+
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
5
|
+
exports.$Command = Command;
|
|
6
|
+
exports.__Client = Client;
|
|
7
|
+
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
8
|
+
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
9
|
+
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
10
|
+
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
11
|
+
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
12
|
+
const { resolveHttpAuthSchemeConfig, defaultCodestarNotificationsHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
|
|
13
|
+
const { getRuntimeConfig } = require("./runtimeConfig");
|
|
14
|
+
const { CreateNotificationRule$, DeleteNotificationRule$, DeleteTarget$, DescribeNotificationRule$, ListEventTypes$, ListNotificationRules$, ListTagsForResource$, ListTargets$, Subscribe$, TagResource$, Unsubscribe$, UntagResource$, UpdateNotificationRule$ } = require("./schemas/schemas_0");
|
|
15
|
+
__exportStar(require("./schemas/schemas_0"), exports);
|
|
16
|
+
__exportStar(require("./models/errors"), exports);
|
|
17
|
+
const { CodestarNotificationsServiceException } = require("./models/CodestarNotificationsServiceException");
|
|
18
|
+
exports.CodestarNotificationsServiceException = CodestarNotificationsServiceException;
|
|
16
19
|
|
|
17
20
|
const resolveClientEndpointParameters = (options) => {
|
|
18
21
|
return Object.assign(options, {
|
|
@@ -68,207 +71,207 @@ const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
68
71
|
};
|
|
69
72
|
|
|
70
73
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
71
|
-
const extensionConfiguration = Object.assign(
|
|
74
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
72
75
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
73
|
-
return Object.assign(runtimeConfig,
|
|
76
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
74
77
|
};
|
|
75
78
|
|
|
76
|
-
class CodestarNotificationsClient extends
|
|
79
|
+
class CodestarNotificationsClient extends Client {
|
|
77
80
|
config;
|
|
78
81
|
constructor(...[configuration]) {
|
|
79
|
-
const _config_0 =
|
|
82
|
+
const _config_0 = getRuntimeConfig(configuration || {});
|
|
80
83
|
super(_config_0);
|
|
81
84
|
this.initConfig = _config_0;
|
|
82
85
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
83
|
-
const _config_2 =
|
|
84
|
-
const _config_3 =
|
|
85
|
-
const _config_4 =
|
|
86
|
-
const _config_5 =
|
|
87
|
-
const _config_6 =
|
|
88
|
-
const _config_7 =
|
|
86
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
87
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
88
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
89
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
90
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
91
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
89
92
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
90
93
|
this.config = _config_8;
|
|
91
|
-
this.middlewareStack.use(
|
|
92
|
-
this.middlewareStack.use(
|
|
93
|
-
this.middlewareStack.use(
|
|
94
|
-
this.middlewareStack.use(
|
|
95
|
-
this.middlewareStack.use(
|
|
96
|
-
this.middlewareStack.use(
|
|
97
|
-
this.middlewareStack.use(
|
|
98
|
-
this.middlewareStack.use(
|
|
99
|
-
httpAuthSchemeParametersProvider:
|
|
100
|
-
identityProviderConfigProvider: async (config) => new
|
|
94
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
102
|
+
httpAuthSchemeParametersProvider: defaultCodestarNotificationsHttpAuthSchemeParametersProvider,
|
|
103
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
101
104
|
"aws.auth#sigv4": config.credentials,
|
|
102
105
|
}),
|
|
103
106
|
}));
|
|
104
|
-
this.middlewareStack.use(
|
|
107
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
105
108
|
}
|
|
106
109
|
destroy() {
|
|
107
110
|
super.destroy();
|
|
108
111
|
}
|
|
109
112
|
}
|
|
110
113
|
|
|
111
|
-
class CreateNotificationRuleCommand extends
|
|
114
|
+
class CreateNotificationRuleCommand extends Command
|
|
112
115
|
.classBuilder()
|
|
113
116
|
.ep(commonParams)
|
|
114
117
|
.m(function (Command, cs, config, o) {
|
|
115
|
-
return [
|
|
118
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
116
119
|
})
|
|
117
120
|
.s("CodeStarNotifications_20191015", "CreateNotificationRule", {})
|
|
118
121
|
.n("CodestarNotificationsClient", "CreateNotificationRuleCommand")
|
|
119
|
-
.sc(
|
|
122
|
+
.sc(CreateNotificationRule$)
|
|
120
123
|
.build() {
|
|
121
124
|
}
|
|
122
125
|
|
|
123
|
-
class DeleteNotificationRuleCommand extends
|
|
126
|
+
class DeleteNotificationRuleCommand extends Command
|
|
124
127
|
.classBuilder()
|
|
125
128
|
.ep(commonParams)
|
|
126
129
|
.m(function (Command, cs, config, o) {
|
|
127
|
-
return [
|
|
130
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
128
131
|
})
|
|
129
132
|
.s("CodeStarNotifications_20191015", "DeleteNotificationRule", {})
|
|
130
133
|
.n("CodestarNotificationsClient", "DeleteNotificationRuleCommand")
|
|
131
|
-
.sc(
|
|
134
|
+
.sc(DeleteNotificationRule$)
|
|
132
135
|
.build() {
|
|
133
136
|
}
|
|
134
137
|
|
|
135
|
-
class DeleteTargetCommand extends
|
|
138
|
+
class DeleteTargetCommand extends Command
|
|
136
139
|
.classBuilder()
|
|
137
140
|
.ep(commonParams)
|
|
138
141
|
.m(function (Command, cs, config, o) {
|
|
139
|
-
return [
|
|
142
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
140
143
|
})
|
|
141
144
|
.s("CodeStarNotifications_20191015", "DeleteTarget", {})
|
|
142
145
|
.n("CodestarNotificationsClient", "DeleteTargetCommand")
|
|
143
|
-
.sc(
|
|
146
|
+
.sc(DeleteTarget$)
|
|
144
147
|
.build() {
|
|
145
148
|
}
|
|
146
149
|
|
|
147
|
-
class DescribeNotificationRuleCommand extends
|
|
150
|
+
class DescribeNotificationRuleCommand extends Command
|
|
148
151
|
.classBuilder()
|
|
149
152
|
.ep(commonParams)
|
|
150
153
|
.m(function (Command, cs, config, o) {
|
|
151
|
-
return [
|
|
154
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
152
155
|
})
|
|
153
156
|
.s("CodeStarNotifications_20191015", "DescribeNotificationRule", {})
|
|
154
157
|
.n("CodestarNotificationsClient", "DescribeNotificationRuleCommand")
|
|
155
|
-
.sc(
|
|
158
|
+
.sc(DescribeNotificationRule$)
|
|
156
159
|
.build() {
|
|
157
160
|
}
|
|
158
161
|
|
|
159
|
-
class ListEventTypesCommand extends
|
|
162
|
+
class ListEventTypesCommand extends Command
|
|
160
163
|
.classBuilder()
|
|
161
164
|
.ep(commonParams)
|
|
162
165
|
.m(function (Command, cs, config, o) {
|
|
163
|
-
return [
|
|
166
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
164
167
|
})
|
|
165
168
|
.s("CodeStarNotifications_20191015", "ListEventTypes", {})
|
|
166
169
|
.n("CodestarNotificationsClient", "ListEventTypesCommand")
|
|
167
|
-
.sc(
|
|
170
|
+
.sc(ListEventTypes$)
|
|
168
171
|
.build() {
|
|
169
172
|
}
|
|
170
173
|
|
|
171
|
-
class ListNotificationRulesCommand extends
|
|
174
|
+
class ListNotificationRulesCommand extends Command
|
|
172
175
|
.classBuilder()
|
|
173
176
|
.ep(commonParams)
|
|
174
177
|
.m(function (Command, cs, config, o) {
|
|
175
|
-
return [
|
|
178
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
176
179
|
})
|
|
177
180
|
.s("CodeStarNotifications_20191015", "ListNotificationRules", {})
|
|
178
181
|
.n("CodestarNotificationsClient", "ListNotificationRulesCommand")
|
|
179
|
-
.sc(
|
|
182
|
+
.sc(ListNotificationRules$)
|
|
180
183
|
.build() {
|
|
181
184
|
}
|
|
182
185
|
|
|
183
|
-
class ListTagsForResourceCommand extends
|
|
186
|
+
class ListTagsForResourceCommand extends Command
|
|
184
187
|
.classBuilder()
|
|
185
188
|
.ep(commonParams)
|
|
186
189
|
.m(function (Command, cs, config, o) {
|
|
187
|
-
return [
|
|
190
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
188
191
|
})
|
|
189
192
|
.s("CodeStarNotifications_20191015", "ListTagsForResource", {})
|
|
190
193
|
.n("CodestarNotificationsClient", "ListTagsForResourceCommand")
|
|
191
|
-
.sc(
|
|
194
|
+
.sc(ListTagsForResource$)
|
|
192
195
|
.build() {
|
|
193
196
|
}
|
|
194
197
|
|
|
195
|
-
class ListTargetsCommand extends
|
|
198
|
+
class ListTargetsCommand extends Command
|
|
196
199
|
.classBuilder()
|
|
197
200
|
.ep(commonParams)
|
|
198
201
|
.m(function (Command, cs, config, o) {
|
|
199
|
-
return [
|
|
202
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
200
203
|
})
|
|
201
204
|
.s("CodeStarNotifications_20191015", "ListTargets", {})
|
|
202
205
|
.n("CodestarNotificationsClient", "ListTargetsCommand")
|
|
203
|
-
.sc(
|
|
206
|
+
.sc(ListTargets$)
|
|
204
207
|
.build() {
|
|
205
208
|
}
|
|
206
209
|
|
|
207
|
-
class SubscribeCommand extends
|
|
210
|
+
class SubscribeCommand extends Command
|
|
208
211
|
.classBuilder()
|
|
209
212
|
.ep(commonParams)
|
|
210
213
|
.m(function (Command, cs, config, o) {
|
|
211
|
-
return [
|
|
214
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
212
215
|
})
|
|
213
216
|
.s("CodeStarNotifications_20191015", "Subscribe", {})
|
|
214
217
|
.n("CodestarNotificationsClient", "SubscribeCommand")
|
|
215
|
-
.sc(
|
|
218
|
+
.sc(Subscribe$)
|
|
216
219
|
.build() {
|
|
217
220
|
}
|
|
218
221
|
|
|
219
|
-
class TagResourceCommand extends
|
|
222
|
+
class TagResourceCommand extends Command
|
|
220
223
|
.classBuilder()
|
|
221
224
|
.ep(commonParams)
|
|
222
225
|
.m(function (Command, cs, config, o) {
|
|
223
|
-
return [
|
|
226
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
224
227
|
})
|
|
225
228
|
.s("CodeStarNotifications_20191015", "TagResource", {})
|
|
226
229
|
.n("CodestarNotificationsClient", "TagResourceCommand")
|
|
227
|
-
.sc(
|
|
230
|
+
.sc(TagResource$)
|
|
228
231
|
.build() {
|
|
229
232
|
}
|
|
230
233
|
|
|
231
|
-
class UnsubscribeCommand extends
|
|
234
|
+
class UnsubscribeCommand extends Command
|
|
232
235
|
.classBuilder()
|
|
233
236
|
.ep(commonParams)
|
|
234
237
|
.m(function (Command, cs, config, o) {
|
|
235
|
-
return [
|
|
238
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
236
239
|
})
|
|
237
240
|
.s("CodeStarNotifications_20191015", "Unsubscribe", {})
|
|
238
241
|
.n("CodestarNotificationsClient", "UnsubscribeCommand")
|
|
239
|
-
.sc(
|
|
242
|
+
.sc(Unsubscribe$)
|
|
240
243
|
.build() {
|
|
241
244
|
}
|
|
242
245
|
|
|
243
|
-
class UntagResourceCommand extends
|
|
246
|
+
class UntagResourceCommand extends Command
|
|
244
247
|
.classBuilder()
|
|
245
248
|
.ep(commonParams)
|
|
246
249
|
.m(function (Command, cs, config, o) {
|
|
247
|
-
return [
|
|
250
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
248
251
|
})
|
|
249
252
|
.s("CodeStarNotifications_20191015", "UntagResource", {})
|
|
250
253
|
.n("CodestarNotificationsClient", "UntagResourceCommand")
|
|
251
|
-
.sc(
|
|
254
|
+
.sc(UntagResource$)
|
|
252
255
|
.build() {
|
|
253
256
|
}
|
|
254
257
|
|
|
255
|
-
class UpdateNotificationRuleCommand extends
|
|
258
|
+
class UpdateNotificationRuleCommand extends Command
|
|
256
259
|
.classBuilder()
|
|
257
260
|
.ep(commonParams)
|
|
258
261
|
.m(function (Command, cs, config, o) {
|
|
259
|
-
return [
|
|
262
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
260
263
|
})
|
|
261
264
|
.s("CodeStarNotifications_20191015", "UpdateNotificationRule", {})
|
|
262
265
|
.n("CodestarNotificationsClient", "UpdateNotificationRuleCommand")
|
|
263
|
-
.sc(
|
|
266
|
+
.sc(UpdateNotificationRule$)
|
|
264
267
|
.build() {
|
|
265
268
|
}
|
|
266
269
|
|
|
267
|
-
const paginateListEventTypes =
|
|
270
|
+
const paginateListEventTypes = createPaginator(CodestarNotificationsClient, ListEventTypesCommand, "NextToken", "NextToken", "MaxResults");
|
|
268
271
|
|
|
269
|
-
const paginateListNotificationRules =
|
|
272
|
+
const paginateListNotificationRules = createPaginator(CodestarNotificationsClient, ListNotificationRulesCommand, "NextToken", "NextToken", "MaxResults");
|
|
270
273
|
|
|
271
|
-
const paginateListTargets =
|
|
274
|
+
const paginateListTargets = createPaginator(CodestarNotificationsClient, ListTargetsCommand, "NextToken", "NextToken", "MaxResults");
|
|
272
275
|
|
|
273
276
|
const commands = {
|
|
274
277
|
CreateNotificationRuleCommand,
|
|
@@ -292,7 +295,7 @@ const paginators = {
|
|
|
292
295
|
};
|
|
293
296
|
class CodestarNotifications extends CodestarNotificationsClient {
|
|
294
297
|
}
|
|
295
|
-
|
|
298
|
+
createAggregatedClient(commands, CodestarNotifications, { paginators });
|
|
296
299
|
|
|
297
300
|
const DetailType = {
|
|
298
301
|
BASIC: "BASIC",
|
|
@@ -325,9 +328,6 @@ const ListTargetsFilterName = {
|
|
|
325
328
|
TARGET_TYPE: "TARGET_TYPE",
|
|
326
329
|
};
|
|
327
330
|
|
|
328
|
-
exports.$Command = client.Command;
|
|
329
|
-
exports.__Client = client.Client;
|
|
330
|
-
exports.CodestarNotificationsServiceException = CodestarNotificationsServiceException.CodestarNotificationsServiceException;
|
|
331
331
|
exports.CodestarNotifications = CodestarNotifications;
|
|
332
332
|
exports.CodestarNotificationsClient = CodestarNotificationsClient;
|
|
333
333
|
exports.CreateNotificationRuleCommand = CreateNotificationRuleCommand;
|
|
@@ -352,23 +352,3 @@ exports.UpdateNotificationRuleCommand = UpdateNotificationRuleCommand;
|
|
|
352
352
|
exports.paginateListEventTypes = paginateListEventTypes;
|
|
353
353
|
exports.paginateListNotificationRules = paginateListNotificationRules;
|
|
354
354
|
exports.paginateListTargets = paginateListTargets;
|
|
355
|
-
Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
|
|
356
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
357
|
-
Object.defineProperty(exports, '__proto__', {
|
|
358
|
-
enumerable: true,
|
|
359
|
-
value: schemas_0['__proto__']
|
|
360
|
-
});
|
|
361
|
-
|
|
362
|
-
Object.keys(schemas_0).forEach(function (k) {
|
|
363
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
|
|
364
|
-
});
|
|
365
|
-
Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
|
|
366
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
367
|
-
Object.defineProperty(exports, '__proto__', {
|
|
368
|
-
enumerable: true,
|
|
369
|
-
value: errors['__proto__']
|
|
370
|
-
});
|
|
371
|
-
|
|
372
|
-
Object.keys(errors).forEach(function (k) {
|
|
373
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
|
|
374
|
-
});
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.CodestarNotificationsServiceException =
|
|
4
|
-
const client_1 = require("@smithy/core/client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
|
|
6
|
-
class CodestarNotificationsServiceException extends client_1.ServiceException {
|
|
1
|
+
const { ServiceException: __ServiceException } = require("@smithy/core/client");
|
|
2
|
+
exports.__ServiceException = __ServiceException;
|
|
3
|
+
exports.CodestarNotificationsServiceException = class CodestarNotificationsServiceException extends __ServiceException {
|
|
7
4
|
constructor(options) {
|
|
8
5
|
super(options);
|
|
9
6
|
Object.setPrototypeOf(this, CodestarNotificationsServiceException.prototype);
|
|
10
7
|
}
|
|
11
|
-
}
|
|
12
|
-
exports.CodestarNotificationsServiceException = CodestarNotificationsServiceException;
|
|
8
|
+
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.InvalidNextTokenException = exports.ResourceNotFoundException = exports.ValidationException = exports.ResourceAlreadyExistsException = exports.LimitExceededException = exports.ConfigurationException = exports.ConcurrentModificationException = exports.AccessDeniedException = void 0;
|
|
4
|
-
const CodestarNotificationsServiceException_1 = require("./CodestarNotificationsServiceException");
|
|
5
|
-
class AccessDeniedException extends CodestarNotificationsServiceException_1.CodestarNotificationsServiceException {
|
|
1
|
+
const { CodestarNotificationsServiceException: __BaseException } = require("./CodestarNotificationsServiceException");
|
|
2
|
+
exports.AccessDeniedException = class AccessDeniedException extends __BaseException {
|
|
6
3
|
name = "AccessDeniedException";
|
|
7
4
|
$fault = "client";
|
|
8
5
|
Message;
|
|
@@ -15,9 +12,8 @@ class AccessDeniedException extends CodestarNotificationsServiceException_1.Code
|
|
|
15
12
|
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
16
13
|
this.Message = opts.Message;
|
|
17
14
|
}
|
|
18
|
-
}
|
|
19
|
-
exports.
|
|
20
|
-
class ConcurrentModificationException extends CodestarNotificationsServiceException_1.CodestarNotificationsServiceException {
|
|
15
|
+
};
|
|
16
|
+
exports.ConcurrentModificationException = class ConcurrentModificationException extends __BaseException {
|
|
21
17
|
name = "ConcurrentModificationException";
|
|
22
18
|
$fault = "client";
|
|
23
19
|
Message;
|
|
@@ -30,9 +26,8 @@ class ConcurrentModificationException extends CodestarNotificationsServiceExcept
|
|
|
30
26
|
Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
|
|
31
27
|
this.Message = opts.Message;
|
|
32
28
|
}
|
|
33
|
-
}
|
|
34
|
-
exports.
|
|
35
|
-
class ConfigurationException extends CodestarNotificationsServiceException_1.CodestarNotificationsServiceException {
|
|
29
|
+
};
|
|
30
|
+
exports.ConfigurationException = class ConfigurationException extends __BaseException {
|
|
36
31
|
name = "ConfigurationException";
|
|
37
32
|
$fault = "client";
|
|
38
33
|
Message;
|
|
@@ -45,9 +40,8 @@ class ConfigurationException extends CodestarNotificationsServiceException_1.Cod
|
|
|
45
40
|
Object.setPrototypeOf(this, ConfigurationException.prototype);
|
|
46
41
|
this.Message = opts.Message;
|
|
47
42
|
}
|
|
48
|
-
}
|
|
49
|
-
exports.
|
|
50
|
-
class LimitExceededException extends CodestarNotificationsServiceException_1.CodestarNotificationsServiceException {
|
|
43
|
+
};
|
|
44
|
+
exports.LimitExceededException = class LimitExceededException extends __BaseException {
|
|
51
45
|
name = "LimitExceededException";
|
|
52
46
|
$fault = "client";
|
|
53
47
|
Message;
|
|
@@ -60,9 +54,8 @@ class LimitExceededException extends CodestarNotificationsServiceException_1.Cod
|
|
|
60
54
|
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
61
55
|
this.Message = opts.Message;
|
|
62
56
|
}
|
|
63
|
-
}
|
|
64
|
-
exports.
|
|
65
|
-
class ResourceAlreadyExistsException extends CodestarNotificationsServiceException_1.CodestarNotificationsServiceException {
|
|
57
|
+
};
|
|
58
|
+
exports.ResourceAlreadyExistsException = class ResourceAlreadyExistsException extends __BaseException {
|
|
66
59
|
name = "ResourceAlreadyExistsException";
|
|
67
60
|
$fault = "client";
|
|
68
61
|
Message;
|
|
@@ -75,9 +68,8 @@ class ResourceAlreadyExistsException extends CodestarNotificationsServiceExcepti
|
|
|
75
68
|
Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
|
|
76
69
|
this.Message = opts.Message;
|
|
77
70
|
}
|
|
78
|
-
}
|
|
79
|
-
exports.
|
|
80
|
-
class ValidationException extends CodestarNotificationsServiceException_1.CodestarNotificationsServiceException {
|
|
71
|
+
};
|
|
72
|
+
exports.ValidationException = class ValidationException extends __BaseException {
|
|
81
73
|
name = "ValidationException";
|
|
82
74
|
$fault = "client";
|
|
83
75
|
Message;
|
|
@@ -90,9 +82,8 @@ class ValidationException extends CodestarNotificationsServiceException_1.Codest
|
|
|
90
82
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
91
83
|
this.Message = opts.Message;
|
|
92
84
|
}
|
|
93
|
-
}
|
|
94
|
-
exports.
|
|
95
|
-
class ResourceNotFoundException extends CodestarNotificationsServiceException_1.CodestarNotificationsServiceException {
|
|
85
|
+
};
|
|
86
|
+
exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
|
|
96
87
|
name = "ResourceNotFoundException";
|
|
97
88
|
$fault = "client";
|
|
98
89
|
Message;
|
|
@@ -105,9 +96,8 @@ class ResourceNotFoundException extends CodestarNotificationsServiceException_1.
|
|
|
105
96
|
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
106
97
|
this.Message = opts.Message;
|
|
107
98
|
}
|
|
108
|
-
}
|
|
109
|
-
exports.
|
|
110
|
-
class InvalidNextTokenException extends CodestarNotificationsServiceException_1.CodestarNotificationsServiceException {
|
|
99
|
+
};
|
|
100
|
+
exports.InvalidNextTokenException = class InvalidNextTokenException extends __BaseException {
|
|
111
101
|
name = "InvalidNextTokenException";
|
|
112
102
|
$fault = "client";
|
|
113
103
|
Message;
|
|
@@ -120,5 +110,4 @@ class InvalidNextTokenException extends CodestarNotificationsServiceException_1.
|
|
|
120
110
|
Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
|
|
121
111
|
this.Message = opts.Message;
|
|
122
112
|
}
|
|
123
|
-
}
|
|
124
|
-
exports.InvalidNextTokenException = InvalidNextTokenException;
|
|
113
|
+
};
|
|
@@ -1,36 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const retry_1 = require("@smithy/core/retry");
|
|
11
|
-
const serde_1 = require("@smithy/core/serde");
|
|
12
|
-
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
13
|
-
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
1
|
+
const packageInfo = require("../package.json");
|
|
2
|
+
const { Sha256 } = require("@aws-crypto/sha256-browser");
|
|
3
|
+
const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
|
|
4
|
+
const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
5
|
+
const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
6
|
+
const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
|
|
7
|
+
const { calculateBodyLength } = require("@smithy/core/serde");
|
|
8
|
+
const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
|
|
9
|
+
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
14
10
|
const getRuntimeConfig = (config) => {
|
|
15
|
-
const defaultsMode =
|
|
16
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
17
|
-
const clientSharedValues = (
|
|
11
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
12
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
13
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
18
14
|
return {
|
|
19
15
|
...clientSharedValues,
|
|
20
16
|
...config,
|
|
21
17
|
runtime: "browser",
|
|
22
18
|
defaultsMode,
|
|
23
|
-
bodyLengthChecker: config?.bodyLengthChecker ??
|
|
19
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
24
20
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
25
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
26
|
-
maxAttempts: config?.maxAttempts ??
|
|
27
|
-
region: config?.region ??
|
|
28
|
-
requestHandler:
|
|
29
|
-
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode ||
|
|
30
|
-
sha256: config?.sha256 ??
|
|
31
|
-
streamCollector: config?.streamCollector ??
|
|
32
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(
|
|
33
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(
|
|
21
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
22
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
23
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
|
24
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
25
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
26
|
+
sha256: config?.sha256 ?? Sha256,
|
|
27
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
28
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
29
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
34
30
|
};
|
|
35
31
|
};
|
|
36
32
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,23 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const retry_1 = require("@smithy/core/retry");
|
|
12
|
-
const serde_1 = require("@smithy/core/serde");
|
|
13
|
-
const node_http_handler_1 = require("@smithy/node-http-handler");
|
|
14
|
-
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
1
|
+
const packageInfo = require("../package.json");
|
|
2
|
+
const { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion: awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS } = require("@aws-sdk/core/client");
|
|
3
|
+
const { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
4
|
+
const { defaultProvider: credentialDefaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
5
|
+
const { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
6
|
+
const { loadConfig: loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
7
|
+
const { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } = require("@smithy/core/retry");
|
|
8
|
+
const { calculateBodyLength, Hash } = require("@smithy/core/serde");
|
|
9
|
+
const { NodeHttpHandler: RequestHandler, streamCollector } = require("@smithy/node-http-handler");
|
|
10
|
+
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
15
11
|
const getRuntimeConfig = (config) => {
|
|
16
|
-
|
|
17
|
-
const defaultsMode =
|
|
18
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
19
|
-
const clientSharedValues = (
|
|
20
|
-
(
|
|
12
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
13
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
14
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
15
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
+
awsCheckVersion(process.version);
|
|
21
17
|
const loaderConfig = {
|
|
22
18
|
profile: config?.profile,
|
|
23
19
|
logger: clientSharedValues.logger,
|
|
@@ -27,23 +23,23 @@ const getRuntimeConfig = (config) => {
|
|
|
27
23
|
...config,
|
|
28
24
|
runtime: "node",
|
|
29
25
|
defaultsMode,
|
|
30
|
-
authSchemePreference: config?.authSchemePreference ?? (
|
|
31
|
-
bodyLengthChecker: config?.bodyLengthChecker ??
|
|
32
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ??
|
|
33
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
34
|
-
maxAttempts: config?.maxAttempts ?? (
|
|
35
|
-
region: config?.region ?? (
|
|
36
|
-
requestHandler:
|
|
26
|
+
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
27
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
28
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
29
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
30
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
31
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
32
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
37
33
|
retryMode: config?.retryMode ??
|
|
38
|
-
(
|
|
39
|
-
...
|
|
40
|
-
default: async () => (await defaultConfigProvider()).retryMode ||
|
|
34
|
+
loadNodeConfig({
|
|
35
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
36
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
41
37
|
}, config),
|
|
42
|
-
sha256: config?.sha256 ??
|
|
43
|
-
streamCollector: config?.streamCollector ??
|
|
44
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (
|
|
45
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (
|
|
46
|
-
userAgentAppId: config?.userAgentAppId ?? (
|
|
38
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
39
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
40
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
41
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
42
|
+
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
47
43
|
};
|
|
48
44
|
};
|
|
49
45
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.getRuntimeConfig = void 0;
|
|
4
|
-
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
|
-
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
1
|
+
const { Sha256 } = require("@aws-crypto/sha256-js");
|
|
2
|
+
const { getRuntimeConfig: getBrowserRuntimeConfig } = require("./runtimeConfig.browser");
|
|
6
3
|
const getRuntimeConfig = (config) => {
|
|
7
|
-
const browserDefaults = (
|
|
4
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
8
5
|
return {
|
|
9
6
|
...browserDefaults,
|
|
10
7
|
...config,
|
|
11
8
|
runtime: "react-native",
|
|
12
|
-
sha256: config?.sha256 ??
|
|
9
|
+
sha256: config?.sha256 ?? Sha256,
|
|
13
10
|
};
|
|
14
11
|
};
|
|
15
12
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,42 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
11
|
-
const schemas_0_1 = require("./schemas/schemas_0");
|
|
12
|
-
const getRuntimeConfig = (config) => {
|
|
1
|
+
const { AwsSdkSigV4Signer } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
+
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
3
|
+
const { NoOpLogger } = require("@smithy/core/client");
|
|
4
|
+
const { parseUrl } = require("@smithy/core/protocols");
|
|
5
|
+
const { fromBase64, fromUtf8, toBase64, toUtf8 } = require("@smithy/core/serde");
|
|
6
|
+
const { defaultCodestarNotificationsHttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
|
|
7
|
+
const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
|
|
8
|
+
const { errorTypeRegistries } = require("./schemas/schemas_0");
|
|
9
|
+
exports.getRuntimeConfig = (config) => {
|
|
13
10
|
return {
|
|
14
11
|
apiVersion: "2019-10-15",
|
|
15
|
-
base64Decoder: config?.base64Decoder ??
|
|
16
|
-
base64Encoder: config?.base64Encoder ??
|
|
12
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
13
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
17
14
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
18
|
-
endpointProvider: config?.endpointProvider ??
|
|
15
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
19
16
|
extensions: config?.extensions ?? [],
|
|
20
|
-
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ??
|
|
17
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultCodestarNotificationsHttpAuthSchemeProvider,
|
|
21
18
|
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
22
19
|
{
|
|
23
20
|
schemeId: "aws.auth#sigv4",
|
|
24
21
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
25
|
-
signer: new
|
|
22
|
+
signer: new AwsSdkSigV4Signer(),
|
|
26
23
|
},
|
|
27
24
|
],
|
|
28
|
-
logger: config?.logger ?? new
|
|
29
|
-
protocol: config?.protocol ??
|
|
25
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
30
27
|
protocolSettings: config?.protocolSettings ?? {
|
|
31
28
|
defaultNamespace: "com.amazonaws.codestarnotifications",
|
|
32
|
-
errorTypeRegistries
|
|
29
|
+
errorTypeRegistries,
|
|
33
30
|
version: "2019-10-15",
|
|
34
31
|
serviceTarget: "CodeStarNotifications_20191015",
|
|
35
32
|
},
|
|
36
33
|
serviceId: config?.serviceId ?? "codestar notifications",
|
|
37
|
-
urlParser: config?.urlParser ??
|
|
38
|
-
utf8Decoder: config?.utf8Decoder ??
|
|
39
|
-
utf8Encoder: config?.utf8Encoder ??
|
|
34
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
35
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
36
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
40
37
|
};
|
|
41
38
|
};
|
|
42
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListTagsForResource$ = exports.ListNotificationRules$ = exports.ListEventTypes$ = exports.DescribeNotificationRule$ = exports.DeleteTarget$ = exports.DeleteNotificationRule$ = exports.CreateNotificationRule$ = exports.UpdateNotificationRuleResult$ = exports.UpdateNotificationRuleRequest$ = exports.UntagResourceResult$ = exports.UntagResourceRequest$ = exports.UnsubscribeResult$ = exports.UnsubscribeRequest$ = exports.TargetSummary$ = exports.Target$ = exports.TagResourceResult$ = exports.TagResourceRequest$ = exports.SubscribeResult$ = exports.SubscribeRequest$ = exports.NotificationRuleSummary$ = exports.ListTargetsResult$ = exports.ListTargetsRequest$ = exports.ListTargetsFilter$ = exports.ListTagsForResourceResult$ = exports.ListTagsForResourceRequest$ = exports.ListNotificationRulesResult$ = exports.ListNotificationRulesRequest$ = exports.ListNotificationRulesFilter$ = exports.ListEventTypesResult$ = exports.ListEventTypesRequest$ = exports.ListEventTypesFilter$ = exports.EventTypeSummary$ = exports.DescribeNotificationRuleResult$ = exports.DescribeNotificationRuleRequest$ = exports.DeleteTargetResult$ = exports.DeleteTargetRequest$ = exports.DeleteNotificationRuleResult$ = exports.DeleteNotificationRuleRequest$ = exports.CreateNotificationRuleResult$ = exports.CreateNotificationRuleRequest$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.ResourceNotFoundException$ = exports.ResourceAlreadyExistsException$ = exports.LimitExceededException$ = exports.InvalidNextTokenException$ = exports.ConfigurationException$ = exports.ConcurrentModificationException$ = exports.AccessDeniedException$ = exports.CodestarNotificationsServiceException$ = void 0;
|
|
4
|
-
exports.UpdateNotificationRule$ = exports.UntagResource$ = exports.Unsubscribe$ = exports.TagResource$ = exports.Subscribe$ = exports.ListTargets$ = void 0;
|
|
5
1
|
const _A = "Arn";
|
|
6
2
|
const _ADE = "AccessDeniedException";
|
|
7
3
|
const _CB = "CreatedBy";
|
|
@@ -100,294 +96,336 @@ const _hQ = "httpQuery";
|
|
|
100
96
|
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.codestarnotifications";
|
|
101
97
|
const _tK = "tagKeys";
|
|
102
98
|
const n0 = "com.amazonaws.codestarnotifications";
|
|
103
|
-
const
|
|
104
|
-
const
|
|
105
|
-
const
|
|
106
|
-
const _s_registry =
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
99
|
+
const { TypeRegistry } = require("@smithy/core/schema");
|
|
100
|
+
const { CodestarNotificationsServiceException } = require("../models/CodestarNotificationsServiceException");
|
|
101
|
+
const { AccessDeniedException, ConcurrentModificationException, ConfigurationException, InvalidNextTokenException, LimitExceededException, ResourceAlreadyExistsException, ResourceNotFoundException, ValidationException } = require("../models/errors");
|
|
102
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
103
|
+
const CodestarNotificationsServiceException$ = [-3, _s, "CodestarNotificationsServiceException", 0, [], []];
|
|
104
|
+
exports.CodestarNotificationsServiceException$ = CodestarNotificationsServiceException$;
|
|
105
|
+
_s_registry.registerError(CodestarNotificationsServiceException$, CodestarNotificationsServiceException);
|
|
106
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
107
|
+
const AccessDeniedException$ = [-3, n0, _ADE,
|
|
111
108
|
{ [_e]: _c, [_hE]: 403 },
|
|
112
109
|
[_M],
|
|
113
110
|
[0]
|
|
114
111
|
];
|
|
115
|
-
|
|
116
|
-
|
|
112
|
+
exports.AccessDeniedException$ = AccessDeniedException$;
|
|
113
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
114
|
+
const ConcurrentModificationException$ = [-3, n0, _CME,
|
|
117
115
|
{ [_e]: _c, [_hE]: 400 },
|
|
118
116
|
[_M],
|
|
119
117
|
[0]
|
|
120
118
|
];
|
|
121
|
-
|
|
122
|
-
|
|
119
|
+
exports.ConcurrentModificationException$ = ConcurrentModificationException$;
|
|
120
|
+
n0_registry.registerError(ConcurrentModificationException$, ConcurrentModificationException);
|
|
121
|
+
const ConfigurationException$ = [-3, n0, _CE,
|
|
123
122
|
{ [_e]: _c, [_hE]: 400 },
|
|
124
123
|
[_M],
|
|
125
124
|
[0]
|
|
126
125
|
];
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
exports.ConfigurationException$ = ConfigurationException$;
|
|
127
|
+
n0_registry.registerError(ConfigurationException$, ConfigurationException);
|
|
128
|
+
const InvalidNextTokenException$ = [-3, n0, _INTE,
|
|
129
129
|
{ [_e]: _c, [_hE]: 400 },
|
|
130
130
|
[_M],
|
|
131
131
|
[0]
|
|
132
132
|
];
|
|
133
|
-
|
|
134
|
-
|
|
133
|
+
exports.InvalidNextTokenException$ = InvalidNextTokenException$;
|
|
134
|
+
n0_registry.registerError(InvalidNextTokenException$, InvalidNextTokenException);
|
|
135
|
+
const LimitExceededException$ = [-3, n0, _LEE,
|
|
135
136
|
{ [_e]: _c, [_hE]: 400 },
|
|
136
137
|
[_M],
|
|
137
138
|
[0]
|
|
138
139
|
];
|
|
139
|
-
|
|
140
|
-
|
|
140
|
+
exports.LimitExceededException$ = LimitExceededException$;
|
|
141
|
+
n0_registry.registerError(LimitExceededException$, LimitExceededException);
|
|
142
|
+
const ResourceAlreadyExistsException$ = [-3, n0, _RAEE,
|
|
141
143
|
{ [_e]: _c, [_hE]: 409 },
|
|
142
144
|
[_M],
|
|
143
145
|
[0]
|
|
144
146
|
];
|
|
145
|
-
|
|
146
|
-
|
|
147
|
+
exports.ResourceAlreadyExistsException$ = ResourceAlreadyExistsException$;
|
|
148
|
+
n0_registry.registerError(ResourceAlreadyExistsException$, ResourceAlreadyExistsException);
|
|
149
|
+
const ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
147
150
|
{ [_e]: _c, [_hE]: 404 },
|
|
148
151
|
[_M],
|
|
149
152
|
[0]
|
|
150
153
|
];
|
|
151
|
-
|
|
152
|
-
|
|
154
|
+
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
155
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
156
|
+
const ValidationException$ = [-3, n0, _VE,
|
|
153
157
|
{ [_e]: _c, [_hE]: 400 },
|
|
154
158
|
[_M],
|
|
155
159
|
[0]
|
|
156
160
|
];
|
|
157
|
-
|
|
161
|
+
exports.ValidationException$ = ValidationException$;
|
|
162
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
158
163
|
exports.errorTypeRegistries = [
|
|
159
164
|
_s_registry,
|
|
160
165
|
n0_registry,
|
|
161
166
|
];
|
|
162
167
|
var NotificationRuleName = [0, n0, _NRN, 8, 0];
|
|
163
168
|
var TargetAddress = [0, n0, _TA, 8, 0];
|
|
164
|
-
|
|
169
|
+
const CreateNotificationRuleRequest$ = [3, n0, _CNRR,
|
|
165
170
|
0,
|
|
166
171
|
[_N, _ETI, _R, _T, _DT, _CRT, _Ta, _S],
|
|
167
172
|
[[() => NotificationRuleName, 0], 64 | 0, 0, [() => Targets, 0], 0, [0, 4], 128 | 0, 0], 5
|
|
168
173
|
];
|
|
169
|
-
exports.
|
|
174
|
+
exports.CreateNotificationRuleRequest$ = CreateNotificationRuleRequest$;
|
|
175
|
+
const CreateNotificationRuleResult$ = [3, n0, _CNRRr,
|
|
170
176
|
0,
|
|
171
177
|
[_A],
|
|
172
178
|
[0]
|
|
173
179
|
];
|
|
174
|
-
exports.
|
|
180
|
+
exports.CreateNotificationRuleResult$ = CreateNotificationRuleResult$;
|
|
181
|
+
const DeleteNotificationRuleRequest$ = [3, n0, _DNRR,
|
|
175
182
|
0,
|
|
176
183
|
[_A],
|
|
177
184
|
[0], 1
|
|
178
185
|
];
|
|
179
|
-
exports.
|
|
186
|
+
exports.DeleteNotificationRuleRequest$ = DeleteNotificationRuleRequest$;
|
|
187
|
+
const DeleteNotificationRuleResult$ = [3, n0, _DNRRe,
|
|
180
188
|
0,
|
|
181
189
|
[_A],
|
|
182
190
|
[0]
|
|
183
191
|
];
|
|
184
|
-
exports.
|
|
192
|
+
exports.DeleteNotificationRuleResult$ = DeleteNotificationRuleResult$;
|
|
193
|
+
const DeleteTargetRequest$ = [3, n0, _DTR,
|
|
185
194
|
0,
|
|
186
195
|
[_TA, _FUA],
|
|
187
196
|
[[() => TargetAddress, 0], 2], 1
|
|
188
197
|
];
|
|
189
|
-
exports.
|
|
198
|
+
exports.DeleteTargetRequest$ = DeleteTargetRequest$;
|
|
199
|
+
const DeleteTargetResult$ = [3, n0, _DTRe,
|
|
190
200
|
0,
|
|
191
201
|
[],
|
|
192
202
|
[]
|
|
193
203
|
];
|
|
194
|
-
exports.
|
|
204
|
+
exports.DeleteTargetResult$ = DeleteTargetResult$;
|
|
205
|
+
const DescribeNotificationRuleRequest$ = [3, n0, _DNRRes,
|
|
195
206
|
0,
|
|
196
207
|
[_A],
|
|
197
208
|
[0], 1
|
|
198
209
|
];
|
|
199
|
-
exports.
|
|
210
|
+
exports.DescribeNotificationRuleRequest$ = DescribeNotificationRuleRequest$;
|
|
211
|
+
const DescribeNotificationRuleResult$ = [3, n0, _DNRResc,
|
|
200
212
|
0,
|
|
201
213
|
[_A, _N, _ET, _R, _T, _DT, _CB, _S, _CT, _LMT, _Ta],
|
|
202
214
|
[0, [() => NotificationRuleName, 0], () => EventTypeBatch, 0, [() => TargetsBatch, 0], 0, 0, 0, 4, 4, 128 | 0], 1
|
|
203
215
|
];
|
|
204
|
-
exports.
|
|
216
|
+
exports.DescribeNotificationRuleResult$ = DescribeNotificationRuleResult$;
|
|
217
|
+
const EventTypeSummary$ = [3, n0, _ETS,
|
|
205
218
|
0,
|
|
206
219
|
[_ETIv, _SN, _ETN, _RT],
|
|
207
220
|
[0, 0, 0, 0]
|
|
208
221
|
];
|
|
209
|
-
exports.
|
|
222
|
+
exports.EventTypeSummary$ = EventTypeSummary$;
|
|
223
|
+
const ListEventTypesFilter$ = [3, n0, _LETF,
|
|
210
224
|
0,
|
|
211
225
|
[_N, _V],
|
|
212
226
|
[0, 0], 2
|
|
213
227
|
];
|
|
214
|
-
exports.
|
|
228
|
+
exports.ListEventTypesFilter$ = ListEventTypesFilter$;
|
|
229
|
+
const ListEventTypesRequest$ = [3, n0, _LETR,
|
|
215
230
|
0,
|
|
216
231
|
[_F, _NT, _MR],
|
|
217
232
|
[() => ListEventTypesFilters, 0, 1]
|
|
218
233
|
];
|
|
219
|
-
exports.
|
|
234
|
+
exports.ListEventTypesRequest$ = ListEventTypesRequest$;
|
|
235
|
+
const ListEventTypesResult$ = [3, n0, _LETRi,
|
|
220
236
|
0,
|
|
221
237
|
[_ET, _NT],
|
|
222
238
|
[() => EventTypeBatch, 0]
|
|
223
239
|
];
|
|
224
|
-
exports.
|
|
240
|
+
exports.ListEventTypesResult$ = ListEventTypesResult$;
|
|
241
|
+
const ListNotificationRulesFilter$ = [3, n0, _LNRF,
|
|
225
242
|
0,
|
|
226
243
|
[_N, _V],
|
|
227
244
|
[0, 0], 2
|
|
228
245
|
];
|
|
229
|
-
exports.
|
|
246
|
+
exports.ListNotificationRulesFilter$ = ListNotificationRulesFilter$;
|
|
247
|
+
const ListNotificationRulesRequest$ = [3, n0, _LNRR,
|
|
230
248
|
0,
|
|
231
249
|
[_F, _NT, _MR],
|
|
232
250
|
[() => ListNotificationRulesFilters, 0, 1]
|
|
233
251
|
];
|
|
234
|
-
exports.
|
|
252
|
+
exports.ListNotificationRulesRequest$ = ListNotificationRulesRequest$;
|
|
253
|
+
const ListNotificationRulesResult$ = [3, n0, _LNRRi,
|
|
235
254
|
0,
|
|
236
255
|
[_NT, _NR],
|
|
237
256
|
[0, () => NotificationRuleBatch]
|
|
238
257
|
];
|
|
239
|
-
exports.
|
|
258
|
+
exports.ListNotificationRulesResult$ = ListNotificationRulesResult$;
|
|
259
|
+
const ListTagsForResourceRequest$ = [3, n0, _LTFRR,
|
|
240
260
|
0,
|
|
241
261
|
[_A],
|
|
242
262
|
[0], 1
|
|
243
263
|
];
|
|
244
|
-
exports.
|
|
264
|
+
exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
|
|
265
|
+
const ListTagsForResourceResult$ = [3, n0, _LTFRRi,
|
|
245
266
|
0,
|
|
246
267
|
[_Ta],
|
|
247
268
|
[128 | 0]
|
|
248
269
|
];
|
|
249
|
-
exports.
|
|
270
|
+
exports.ListTagsForResourceResult$ = ListTagsForResourceResult$;
|
|
271
|
+
const ListTargetsFilter$ = [3, n0, _LTF,
|
|
250
272
|
0,
|
|
251
273
|
[_N, _V],
|
|
252
274
|
[0, 0], 2
|
|
253
275
|
];
|
|
254
|
-
exports.
|
|
276
|
+
exports.ListTargetsFilter$ = ListTargetsFilter$;
|
|
277
|
+
const ListTargetsRequest$ = [3, n0, _LTR,
|
|
255
278
|
0,
|
|
256
279
|
[_F, _NT, _MR],
|
|
257
280
|
[() => ListTargetsFilters, 0, 1]
|
|
258
281
|
];
|
|
259
|
-
exports.
|
|
282
|
+
exports.ListTargetsRequest$ = ListTargetsRequest$;
|
|
283
|
+
const ListTargetsResult$ = [3, n0, _LTRi,
|
|
260
284
|
0,
|
|
261
285
|
[_T, _NT],
|
|
262
286
|
[[() => TargetsBatch, 0], 0]
|
|
263
287
|
];
|
|
264
|
-
exports.
|
|
288
|
+
exports.ListTargetsResult$ = ListTargetsResult$;
|
|
289
|
+
const NotificationRuleSummary$ = [3, n0, _NRS,
|
|
265
290
|
0,
|
|
266
291
|
[_I, _A],
|
|
267
292
|
[0, 0]
|
|
268
293
|
];
|
|
269
|
-
exports.
|
|
294
|
+
exports.NotificationRuleSummary$ = NotificationRuleSummary$;
|
|
295
|
+
const SubscribeRequest$ = [3, n0, _SR,
|
|
270
296
|
0,
|
|
271
297
|
[_A, _Tar, _CRT],
|
|
272
|
-
[0, [() =>
|
|
298
|
+
[0, [() => Target$, 0], 0], 2
|
|
273
299
|
];
|
|
274
|
-
exports.
|
|
300
|
+
exports.SubscribeRequest$ = SubscribeRequest$;
|
|
301
|
+
const SubscribeResult$ = [3, n0, _SRu,
|
|
275
302
|
0,
|
|
276
303
|
[_A],
|
|
277
304
|
[0]
|
|
278
305
|
];
|
|
279
|
-
exports.
|
|
306
|
+
exports.SubscribeResult$ = SubscribeResult$;
|
|
307
|
+
const TagResourceRequest$ = [3, n0, _TRR,
|
|
280
308
|
0,
|
|
281
309
|
[_A, _Ta],
|
|
282
310
|
[0, 128 | 0], 2
|
|
283
311
|
];
|
|
284
|
-
exports.
|
|
312
|
+
exports.TagResourceRequest$ = TagResourceRequest$;
|
|
313
|
+
const TagResourceResult$ = [3, n0, _TRRa,
|
|
285
314
|
0,
|
|
286
315
|
[_Ta],
|
|
287
316
|
[128 | 0]
|
|
288
317
|
];
|
|
289
|
-
exports.
|
|
318
|
+
exports.TagResourceResult$ = TagResourceResult$;
|
|
319
|
+
const Target$ = [3, n0, _Tar,
|
|
290
320
|
0,
|
|
291
321
|
[_TT, _TA],
|
|
292
322
|
[0, [() => TargetAddress, 0]]
|
|
293
323
|
];
|
|
294
|
-
exports.
|
|
324
|
+
exports.Target$ = Target$;
|
|
325
|
+
const TargetSummary$ = [3, n0, _TS,
|
|
295
326
|
0,
|
|
296
327
|
[_TA, _TT, _TSa],
|
|
297
328
|
[[() => TargetAddress, 0], 0, 0]
|
|
298
329
|
];
|
|
299
|
-
exports.
|
|
330
|
+
exports.TargetSummary$ = TargetSummary$;
|
|
331
|
+
const UnsubscribeRequest$ = [3, n0, _UR,
|
|
300
332
|
0,
|
|
301
333
|
[_A, _TA],
|
|
302
334
|
[0, [() => TargetAddress, 0]], 2
|
|
303
335
|
];
|
|
304
|
-
exports.
|
|
336
|
+
exports.UnsubscribeRequest$ = UnsubscribeRequest$;
|
|
337
|
+
const UnsubscribeResult$ = [3, n0, _URn,
|
|
305
338
|
0,
|
|
306
339
|
[_A],
|
|
307
340
|
[0], 1
|
|
308
341
|
];
|
|
309
|
-
exports.
|
|
342
|
+
exports.UnsubscribeResult$ = UnsubscribeResult$;
|
|
343
|
+
const UntagResourceRequest$ = [3, n0, _URR,
|
|
310
344
|
0,
|
|
311
345
|
[_A, _TK],
|
|
312
346
|
[[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
|
|
313
347
|
];
|
|
314
|
-
exports.
|
|
348
|
+
exports.UntagResourceRequest$ = UntagResourceRequest$;
|
|
349
|
+
const UntagResourceResult$ = [3, n0, _URRn,
|
|
315
350
|
0,
|
|
316
351
|
[],
|
|
317
352
|
[]
|
|
318
353
|
];
|
|
319
|
-
exports.
|
|
354
|
+
exports.UntagResourceResult$ = UntagResourceResult$;
|
|
355
|
+
const UpdateNotificationRuleRequest$ = [3, n0, _UNRR,
|
|
320
356
|
0,
|
|
321
357
|
[_A, _N, _S, _ETI, _T, _DT],
|
|
322
358
|
[0, [() => NotificationRuleName, 0], 0, 64 | 0, [() => Targets, 0], 0], 1
|
|
323
359
|
];
|
|
324
|
-
exports.
|
|
360
|
+
exports.UpdateNotificationRuleRequest$ = UpdateNotificationRuleRequest$;
|
|
361
|
+
const UpdateNotificationRuleResult$ = [3, n0, _UNRRp,
|
|
325
362
|
0,
|
|
326
363
|
[],
|
|
327
364
|
[]
|
|
328
365
|
];
|
|
366
|
+
exports.UpdateNotificationRuleResult$ = UpdateNotificationRuleResult$;
|
|
329
367
|
var EventTypeBatch = [1, n0, _ETB,
|
|
330
|
-
0, () =>
|
|
368
|
+
0, () => EventTypeSummary$
|
|
331
369
|
];
|
|
332
370
|
var EventTypeIds = 64 | 0;
|
|
333
371
|
var ListEventTypesFilters = [1, n0, _LETFi,
|
|
334
|
-
0, () =>
|
|
372
|
+
0, () => ListEventTypesFilter$
|
|
335
373
|
];
|
|
336
374
|
var ListNotificationRulesFilters = [1, n0, _LNRFi,
|
|
337
|
-
0, () =>
|
|
375
|
+
0, () => ListNotificationRulesFilter$
|
|
338
376
|
];
|
|
339
377
|
var ListTargetsFilters = [1, n0, _LTFi,
|
|
340
|
-
0, () =>
|
|
378
|
+
0, () => ListTargetsFilter$
|
|
341
379
|
];
|
|
342
380
|
var NotificationRuleBatch = [1, n0, _NRB,
|
|
343
|
-
0, () =>
|
|
381
|
+
0, () => NotificationRuleSummary$
|
|
344
382
|
];
|
|
345
383
|
var TagKeys = 64 | 0;
|
|
346
384
|
var Targets = [1, n0, _T,
|
|
347
|
-
0, [() =>
|
|
385
|
+
0, [() => Target$,
|
|
348
386
|
0]
|
|
349
387
|
];
|
|
350
388
|
var TargetsBatch = [1, n0, _TB,
|
|
351
|
-
0, [() =>
|
|
389
|
+
0, [() => TargetSummary$,
|
|
352
390
|
0]
|
|
353
391
|
];
|
|
354
392
|
var Tags = 128 | 0;
|
|
355
393
|
exports.CreateNotificationRule$ = [9, n0, _CNR,
|
|
356
|
-
{ [_h]: ["POST", "/createNotificationRule", 200] }, () =>
|
|
394
|
+
{ [_h]: ["POST", "/createNotificationRule", 200] }, () => CreateNotificationRuleRequest$, () => CreateNotificationRuleResult$
|
|
357
395
|
];
|
|
358
396
|
exports.DeleteNotificationRule$ = [9, n0, _DNR,
|
|
359
|
-
{ [_h]: ["POST", "/deleteNotificationRule", 200] }, () =>
|
|
397
|
+
{ [_h]: ["POST", "/deleteNotificationRule", 200] }, () => DeleteNotificationRuleRequest$, () => DeleteNotificationRuleResult$
|
|
360
398
|
];
|
|
361
399
|
exports.DeleteTarget$ = [9, n0, _DTe,
|
|
362
|
-
{ [_h]: ["POST", "/deleteTarget", 200] }, () =>
|
|
400
|
+
{ [_h]: ["POST", "/deleteTarget", 200] }, () => DeleteTargetRequest$, () => DeleteTargetResult$
|
|
363
401
|
];
|
|
364
402
|
exports.DescribeNotificationRule$ = [9, n0, _DNRe,
|
|
365
|
-
{ [_h]: ["POST", "/describeNotificationRule", 200] }, () =>
|
|
403
|
+
{ [_h]: ["POST", "/describeNotificationRule", 200] }, () => DescribeNotificationRuleRequest$, () => DescribeNotificationRuleResult$
|
|
366
404
|
];
|
|
367
405
|
exports.ListEventTypes$ = [9, n0, _LET,
|
|
368
|
-
{ [_h]: ["POST", "/listEventTypes", 200] }, () =>
|
|
406
|
+
{ [_h]: ["POST", "/listEventTypes", 200] }, () => ListEventTypesRequest$, () => ListEventTypesResult$
|
|
369
407
|
];
|
|
370
408
|
exports.ListNotificationRules$ = [9, n0, _LNR,
|
|
371
|
-
{ [_h]: ["POST", "/listNotificationRules", 200] }, () =>
|
|
409
|
+
{ [_h]: ["POST", "/listNotificationRules", 200] }, () => ListNotificationRulesRequest$, () => ListNotificationRulesResult$
|
|
372
410
|
];
|
|
373
411
|
exports.ListTagsForResource$ = [9, n0, _LTFR,
|
|
374
|
-
{ [_h]: ["POST", "/listTagsForResource", 200] }, () =>
|
|
412
|
+
{ [_h]: ["POST", "/listTagsForResource", 200] }, () => ListTagsForResourceRequest$, () => ListTagsForResourceResult$
|
|
375
413
|
];
|
|
376
414
|
exports.ListTargets$ = [9, n0, _LT,
|
|
377
|
-
{ [_h]: ["POST", "/listTargets", 200] }, () =>
|
|
415
|
+
{ [_h]: ["POST", "/listTargets", 200] }, () => ListTargetsRequest$, () => ListTargetsResult$
|
|
378
416
|
];
|
|
379
417
|
exports.Subscribe$ = [9, n0, _Su,
|
|
380
|
-
{ [_h]: ["POST", "/subscribe", 200] }, () =>
|
|
418
|
+
{ [_h]: ["POST", "/subscribe", 200] }, () => SubscribeRequest$, () => SubscribeResult$
|
|
381
419
|
];
|
|
382
420
|
exports.TagResource$ = [9, n0, _TR,
|
|
383
|
-
{ [_h]: ["POST", "/tagResource", 200] }, () =>
|
|
421
|
+
{ [_h]: ["POST", "/tagResource", 200] }, () => TagResourceRequest$, () => TagResourceResult$
|
|
384
422
|
];
|
|
385
423
|
exports.Unsubscribe$ = [9, n0, _U,
|
|
386
|
-
{ [_h]: ["POST", "/unsubscribe", 200] }, () =>
|
|
424
|
+
{ [_h]: ["POST", "/unsubscribe", 200] }, () => UnsubscribeRequest$, () => UnsubscribeResult$
|
|
387
425
|
];
|
|
388
426
|
exports.UntagResource$ = [9, n0, _URnt,
|
|
389
|
-
{ [_h]: ["POST", "/untagResource/{Arn}", 200] }, () =>
|
|
427
|
+
{ [_h]: ["POST", "/untagResource/{Arn}", 200] }, () => UntagResourceRequest$, () => UntagResourceResult$
|
|
390
428
|
];
|
|
391
429
|
exports.UpdateNotificationRule$ = [9, n0, _UNR,
|
|
392
|
-
{ [_h]: ["POST", "/updateNotificationRule", 200] }, () =>
|
|
430
|
+
{ [_h]: ["POST", "/updateNotificationRule", 200] }, () => UpdateNotificationRuleRequest$, () => UpdateNotificationRuleResult$
|
|
393
431
|
];
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-codestar-notifications",
|
|
3
3
|
"description": "AWS SDK for JavaScript Codestar Notifications Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1069.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline",
|
|
8
|
-
"build:es": "tsc -p tsconfig.es.json",
|
|
8
|
+
"build:es": "premove dist-es && tsc -p tsconfig.es.json",
|
|
9
9
|
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
|
|
10
|
-
"build:types": "tsc -p tsconfig.types.json",
|
|
10
|
+
"build:types": "premove dist-types && tsc -p tsconfig.types.json",
|
|
11
11
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
|
-
"clean": "premove dist-cjs dist-es dist-types
|
|
12
|
+
"clean": "premove dist-cjs dist-es dist-types",
|
|
13
13
|
"extract:docs": "api-extractor run --local",
|
|
14
|
-
"generate:client": "node ../../scripts/generate-clients/single-service
|
|
14
|
+
"generate:client": "node ../../scripts/generate-clients/single-service",
|
|
15
15
|
"test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
|
|
16
16
|
},
|
|
17
17
|
"main": "./dist-cjs/index.js",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.974.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
-
"@aws-sdk/types": "^3.973.
|
|
24
|
+
"@aws-sdk/core": "^3.974.21",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.56",
|
|
26
|
+
"@aws-sdk/types": "^3.973.13",
|
|
27
27
|
"@smithy/core": "^3.24.6",
|
|
28
28
|
"@smithy/fetch-http-handler": "^5.4.6",
|
|
29
29
|
"@smithy/node-http-handler": "^4.7.6",
|