@aws-sdk/client-codestar-notifications 3.927.0 → 3.929.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/index.js +492 -694
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/CodestarNotificationsClient.js +2 -0
- package/dist-es/commands/CreateNotificationRuleCommand.js +3 -10
- package/dist-es/commands/DeleteNotificationRuleCommand.js +3 -9
- package/dist-es/commands/DeleteTargetCommand.js +3 -10
- package/dist-es/commands/DescribeNotificationRuleCommand.js +3 -10
- package/dist-es/commands/ListEventTypesCommand.js +3 -9
- package/dist-es/commands/ListNotificationRulesCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ListTargetsCommand.js +3 -10
- package/dist-es/commands/SubscribeCommand.js +3 -10
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UnsubscribeCommand.js +3 -10
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateNotificationRuleCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -40
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +446 -0
- package/dist-types/CodestarNotificationsClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -36
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +69 -0
- package/dist-types/ts3.4/CodestarNotificationsClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -25
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +75 -0
- package/package.json +5 -6
- package/dist-es/protocols/Aws_restJson1.js +0 -534
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -119
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -161
|
@@ -40,6 +40,10 @@ export declare const getRuntimeConfig: (
|
|
|
40
40
|
profile?: string;
|
|
41
41
|
logger: import("@smithy/types").Logger;
|
|
42
42
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
43
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
44
|
+
import("@smithy/types").HttpRequest,
|
|
45
|
+
import("@smithy/types").HttpResponse
|
|
46
|
+
>;
|
|
43
47
|
customUserAgent?: string | import("@smithy/types").UserAgent;
|
|
44
48
|
retryStrategy?:
|
|
45
49
|
| import("@smithy/types").RetryStrategy
|
|
@@ -39,6 +39,10 @@ export declare const getRuntimeConfig: (
|
|
|
39
39
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
40
40
|
logger: import("@smithy/types").Logger;
|
|
41
41
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
42
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
43
|
+
import("@smithy/types").HttpRequest,
|
|
44
|
+
import("@smithy/types").HttpResponse
|
|
45
|
+
>;
|
|
42
46
|
defaultsMode:
|
|
43
47
|
| import("@smithy/smithy-client").DefaultsMode
|
|
44
48
|
| import("@smithy/types").Provider<
|
|
@@ -16,6 +16,10 @@ export declare const getRuntimeConfig: (
|
|
|
16
16
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CodestarNotificationsHttpAuthSchemeProvider;
|
|
17
17
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
18
18
|
logger: import("@smithy/types").Logger;
|
|
19
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
20
|
+
import("@smithy/types").HttpRequest,
|
|
21
|
+
import("@smithy/types").HttpResponse
|
|
22
|
+
>;
|
|
19
23
|
serviceId: string;
|
|
20
24
|
urlParser: import("@smithy/types").UrlParser;
|
|
21
25
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StaticErrorSchema,
|
|
3
|
+
StaticListSchema,
|
|
4
|
+
StaticOperationSchema,
|
|
5
|
+
StaticSimpleSchema,
|
|
6
|
+
StaticStructureSchema,
|
|
7
|
+
} from "@smithy/types";
|
|
8
|
+
export declare var NotificationRuleName: StaticSimpleSchema;
|
|
9
|
+
export declare var TargetAddress: StaticSimpleSchema;
|
|
10
|
+
export declare var AccessDeniedException: StaticErrorSchema;
|
|
11
|
+
export declare var ConcurrentModificationException: StaticErrorSchema;
|
|
12
|
+
export declare var ConfigurationException: StaticErrorSchema;
|
|
13
|
+
export declare var CreateNotificationRuleRequest: StaticStructureSchema;
|
|
14
|
+
export declare var CreateNotificationRuleResult: StaticStructureSchema;
|
|
15
|
+
export declare var DeleteNotificationRuleRequest: StaticStructureSchema;
|
|
16
|
+
export declare var DeleteNotificationRuleResult: StaticStructureSchema;
|
|
17
|
+
export declare var DeleteTargetRequest: StaticStructureSchema;
|
|
18
|
+
export declare var DeleteTargetResult: StaticStructureSchema;
|
|
19
|
+
export declare var DescribeNotificationRuleRequest: StaticStructureSchema;
|
|
20
|
+
export declare var DescribeNotificationRuleResult: StaticStructureSchema;
|
|
21
|
+
export declare var EventTypeSummary: StaticStructureSchema;
|
|
22
|
+
export declare var InvalidNextTokenException: StaticErrorSchema;
|
|
23
|
+
export declare var LimitExceededException: StaticErrorSchema;
|
|
24
|
+
export declare var ListEventTypesFilter: StaticStructureSchema;
|
|
25
|
+
export declare var ListEventTypesRequest: StaticStructureSchema;
|
|
26
|
+
export declare var ListEventTypesResult: StaticStructureSchema;
|
|
27
|
+
export declare var ListNotificationRulesFilter: StaticStructureSchema;
|
|
28
|
+
export declare var ListNotificationRulesRequest: StaticStructureSchema;
|
|
29
|
+
export declare var ListNotificationRulesResult: StaticStructureSchema;
|
|
30
|
+
export declare var ListTagsForResourceRequest: StaticStructureSchema;
|
|
31
|
+
export declare var ListTagsForResourceResult: StaticStructureSchema;
|
|
32
|
+
export declare var ListTargetsFilter: StaticStructureSchema;
|
|
33
|
+
export declare var ListTargetsRequest: StaticStructureSchema;
|
|
34
|
+
export declare var ListTargetsResult: StaticStructureSchema;
|
|
35
|
+
export declare var NotificationRuleSummary: StaticStructureSchema;
|
|
36
|
+
export declare var ResourceAlreadyExistsException: StaticErrorSchema;
|
|
37
|
+
export declare var ResourceNotFoundException: StaticErrorSchema;
|
|
38
|
+
export declare var SubscribeRequest: StaticStructureSchema;
|
|
39
|
+
export declare var SubscribeResult: StaticStructureSchema;
|
|
40
|
+
export declare var TagResourceRequest: StaticStructureSchema;
|
|
41
|
+
export declare var TagResourceResult: StaticStructureSchema;
|
|
42
|
+
export declare var Target: StaticStructureSchema;
|
|
43
|
+
export declare var TargetSummary: StaticStructureSchema;
|
|
44
|
+
export declare var UnsubscribeRequest: StaticStructureSchema;
|
|
45
|
+
export declare var UnsubscribeResult: StaticStructureSchema;
|
|
46
|
+
export declare var UntagResourceRequest: StaticStructureSchema;
|
|
47
|
+
export declare var UntagResourceResult: StaticStructureSchema;
|
|
48
|
+
export declare var UpdateNotificationRuleRequest: StaticStructureSchema;
|
|
49
|
+
export declare var UpdateNotificationRuleResult: StaticStructureSchema;
|
|
50
|
+
export declare var ValidationException: StaticErrorSchema;
|
|
51
|
+
export declare var __Unit: "unit";
|
|
52
|
+
export declare var CodestarNotificationsServiceException: StaticErrorSchema;
|
|
53
|
+
export declare var EventTypeBatch: StaticListSchema;
|
|
54
|
+
export declare var EventTypeIds: number;
|
|
55
|
+
export declare var ListEventTypesFilters: StaticListSchema;
|
|
56
|
+
export declare var ListNotificationRulesFilters: StaticListSchema;
|
|
57
|
+
export declare var ListTargetsFilters: StaticListSchema;
|
|
58
|
+
export declare var NotificationRuleBatch: StaticListSchema;
|
|
59
|
+
export declare var TagKeys: number;
|
|
60
|
+
export declare var Targets: StaticListSchema;
|
|
61
|
+
export declare var TargetsBatch: StaticListSchema;
|
|
62
|
+
export declare var Tags: number;
|
|
63
|
+
export declare var CreateNotificationRule: StaticOperationSchema;
|
|
64
|
+
export declare var DeleteNotificationRule: StaticOperationSchema;
|
|
65
|
+
export declare var DeleteTarget: StaticOperationSchema;
|
|
66
|
+
export declare var DescribeNotificationRule: StaticOperationSchema;
|
|
67
|
+
export declare var ListEventTypes: StaticOperationSchema;
|
|
68
|
+
export declare var ListNotificationRules: StaticOperationSchema;
|
|
69
|
+
export declare var ListTagsForResource: StaticOperationSchema;
|
|
70
|
+
export declare var ListTargets: StaticOperationSchema;
|
|
71
|
+
export declare var Subscribe: StaticOperationSchema;
|
|
72
|
+
export declare var TagResource: StaticOperationSchema;
|
|
73
|
+
export declare var Unsubscribe: StaticOperationSchema;
|
|
74
|
+
export declare var UntagResource: StaticOperationSchema;
|
|
75
|
+
export declare var UpdateNotificationRule: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.929.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-codestar-notifications",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/core": "3.928.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.929.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.922.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.922.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.922.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.928.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.925.0",
|
|
30
30
|
"@aws-sdk/types": "3.922.0",
|
|
31
31
|
"@aws-sdk/util-endpoints": "3.922.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.922.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.928.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.4.2",
|
|
35
35
|
"@smithy/core": "^3.17.2",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.3.5",
|
|
@@ -56,7 +56,6 @@
|
|
|
56
56
|
"@smithy/util-middleware": "^4.2.4",
|
|
57
57
|
"@smithy/util-retry": "^4.2.4",
|
|
58
58
|
"@smithy/util-utf8": "^4.2.0",
|
|
59
|
-
"@smithy/uuid": "^1.1.0",
|
|
60
59
|
"tslib": "^2.6.2"
|
|
61
60
|
},
|
|
62
61
|
"devDependencies": {
|
|
@@ -1,534 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { CodestarNotificationsServiceException as __BaseException } from "../models/CodestarNotificationsServiceException";
|
|
6
|
-
import { AccessDeniedException, ConcurrentModificationException, ConfigurationException, InvalidNextTokenException, LimitExceededException, ResourceAlreadyExistsException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
|
|
7
|
-
export const se_CreateNotificationRuleCommand = async (input, context) => {
|
|
8
|
-
const b = rb(input, context);
|
|
9
|
-
const headers = {
|
|
10
|
-
"content-type": "application/json",
|
|
11
|
-
};
|
|
12
|
-
b.bp("/createNotificationRule");
|
|
13
|
-
let body;
|
|
14
|
-
body = JSON.stringify(take(input, {
|
|
15
|
-
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
16
|
-
DetailType: [],
|
|
17
|
-
EventTypeIds: (_) => _json(_),
|
|
18
|
-
Name: [],
|
|
19
|
-
Resource: [],
|
|
20
|
-
Status: [],
|
|
21
|
-
Tags: (_) => _json(_),
|
|
22
|
-
Targets: (_) => _json(_),
|
|
23
|
-
}));
|
|
24
|
-
b.m("POST").h(headers).b(body);
|
|
25
|
-
return b.build();
|
|
26
|
-
};
|
|
27
|
-
export const se_DeleteNotificationRuleCommand = async (input, context) => {
|
|
28
|
-
const b = rb(input, context);
|
|
29
|
-
const headers = {
|
|
30
|
-
"content-type": "application/json",
|
|
31
|
-
};
|
|
32
|
-
b.bp("/deleteNotificationRule");
|
|
33
|
-
let body;
|
|
34
|
-
body = JSON.stringify(take(input, {
|
|
35
|
-
Arn: [],
|
|
36
|
-
}));
|
|
37
|
-
b.m("POST").h(headers).b(body);
|
|
38
|
-
return b.build();
|
|
39
|
-
};
|
|
40
|
-
export const se_DeleteTargetCommand = async (input, context) => {
|
|
41
|
-
const b = rb(input, context);
|
|
42
|
-
const headers = {
|
|
43
|
-
"content-type": "application/json",
|
|
44
|
-
};
|
|
45
|
-
b.bp("/deleteTarget");
|
|
46
|
-
let body;
|
|
47
|
-
body = JSON.stringify(take(input, {
|
|
48
|
-
ForceUnsubscribeAll: [],
|
|
49
|
-
TargetAddress: [],
|
|
50
|
-
}));
|
|
51
|
-
b.m("POST").h(headers).b(body);
|
|
52
|
-
return b.build();
|
|
53
|
-
};
|
|
54
|
-
export const se_DescribeNotificationRuleCommand = async (input, context) => {
|
|
55
|
-
const b = rb(input, context);
|
|
56
|
-
const headers = {
|
|
57
|
-
"content-type": "application/json",
|
|
58
|
-
};
|
|
59
|
-
b.bp("/describeNotificationRule");
|
|
60
|
-
let body;
|
|
61
|
-
body = JSON.stringify(take(input, {
|
|
62
|
-
Arn: [],
|
|
63
|
-
}));
|
|
64
|
-
b.m("POST").h(headers).b(body);
|
|
65
|
-
return b.build();
|
|
66
|
-
};
|
|
67
|
-
export const se_ListEventTypesCommand = async (input, context) => {
|
|
68
|
-
const b = rb(input, context);
|
|
69
|
-
const headers = {
|
|
70
|
-
"content-type": "application/json",
|
|
71
|
-
};
|
|
72
|
-
b.bp("/listEventTypes");
|
|
73
|
-
let body;
|
|
74
|
-
body = JSON.stringify(take(input, {
|
|
75
|
-
Filters: (_) => _json(_),
|
|
76
|
-
MaxResults: [],
|
|
77
|
-
NextToken: [],
|
|
78
|
-
}));
|
|
79
|
-
b.m("POST").h(headers).b(body);
|
|
80
|
-
return b.build();
|
|
81
|
-
};
|
|
82
|
-
export const se_ListNotificationRulesCommand = async (input, context) => {
|
|
83
|
-
const b = rb(input, context);
|
|
84
|
-
const headers = {
|
|
85
|
-
"content-type": "application/json",
|
|
86
|
-
};
|
|
87
|
-
b.bp("/listNotificationRules");
|
|
88
|
-
let body;
|
|
89
|
-
body = JSON.stringify(take(input, {
|
|
90
|
-
Filters: (_) => _json(_),
|
|
91
|
-
MaxResults: [],
|
|
92
|
-
NextToken: [],
|
|
93
|
-
}));
|
|
94
|
-
b.m("POST").h(headers).b(body);
|
|
95
|
-
return b.build();
|
|
96
|
-
};
|
|
97
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
98
|
-
const b = rb(input, context);
|
|
99
|
-
const headers = {
|
|
100
|
-
"content-type": "application/json",
|
|
101
|
-
};
|
|
102
|
-
b.bp("/listTagsForResource");
|
|
103
|
-
let body;
|
|
104
|
-
body = JSON.stringify(take(input, {
|
|
105
|
-
Arn: [],
|
|
106
|
-
}));
|
|
107
|
-
b.m("POST").h(headers).b(body);
|
|
108
|
-
return b.build();
|
|
109
|
-
};
|
|
110
|
-
export const se_ListTargetsCommand = async (input, context) => {
|
|
111
|
-
const b = rb(input, context);
|
|
112
|
-
const headers = {
|
|
113
|
-
"content-type": "application/json",
|
|
114
|
-
};
|
|
115
|
-
b.bp("/listTargets");
|
|
116
|
-
let body;
|
|
117
|
-
body = JSON.stringify(take(input, {
|
|
118
|
-
Filters: (_) => _json(_),
|
|
119
|
-
MaxResults: [],
|
|
120
|
-
NextToken: [],
|
|
121
|
-
}));
|
|
122
|
-
b.m("POST").h(headers).b(body);
|
|
123
|
-
return b.build();
|
|
124
|
-
};
|
|
125
|
-
export const se_SubscribeCommand = async (input, context) => {
|
|
126
|
-
const b = rb(input, context);
|
|
127
|
-
const headers = {
|
|
128
|
-
"content-type": "application/json",
|
|
129
|
-
};
|
|
130
|
-
b.bp("/subscribe");
|
|
131
|
-
let body;
|
|
132
|
-
body = JSON.stringify(take(input, {
|
|
133
|
-
Arn: [],
|
|
134
|
-
ClientRequestToken: [],
|
|
135
|
-
Target: (_) => _json(_),
|
|
136
|
-
}));
|
|
137
|
-
b.m("POST").h(headers).b(body);
|
|
138
|
-
return b.build();
|
|
139
|
-
};
|
|
140
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
141
|
-
const b = rb(input, context);
|
|
142
|
-
const headers = {
|
|
143
|
-
"content-type": "application/json",
|
|
144
|
-
};
|
|
145
|
-
b.bp("/tagResource");
|
|
146
|
-
let body;
|
|
147
|
-
body = JSON.stringify(take(input, {
|
|
148
|
-
Arn: [],
|
|
149
|
-
Tags: (_) => _json(_),
|
|
150
|
-
}));
|
|
151
|
-
b.m("POST").h(headers).b(body);
|
|
152
|
-
return b.build();
|
|
153
|
-
};
|
|
154
|
-
export const se_UnsubscribeCommand = async (input, context) => {
|
|
155
|
-
const b = rb(input, context);
|
|
156
|
-
const headers = {
|
|
157
|
-
"content-type": "application/json",
|
|
158
|
-
};
|
|
159
|
-
b.bp("/unsubscribe");
|
|
160
|
-
let body;
|
|
161
|
-
body = JSON.stringify(take(input, {
|
|
162
|
-
Arn: [],
|
|
163
|
-
TargetAddress: [],
|
|
164
|
-
}));
|
|
165
|
-
b.m("POST").h(headers).b(body);
|
|
166
|
-
return b.build();
|
|
167
|
-
};
|
|
168
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
169
|
-
const b = rb(input, context);
|
|
170
|
-
const headers = {};
|
|
171
|
-
b.bp("/untagResource/{Arn}");
|
|
172
|
-
b.p("Arn", () => input.Arn, "{Arn}", false);
|
|
173
|
-
const query = map({
|
|
174
|
-
[_tK]: [__expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
|
|
175
|
-
});
|
|
176
|
-
let body;
|
|
177
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
178
|
-
return b.build();
|
|
179
|
-
};
|
|
180
|
-
export const se_UpdateNotificationRuleCommand = async (input, context) => {
|
|
181
|
-
const b = rb(input, context);
|
|
182
|
-
const headers = {
|
|
183
|
-
"content-type": "application/json",
|
|
184
|
-
};
|
|
185
|
-
b.bp("/updateNotificationRule");
|
|
186
|
-
let body;
|
|
187
|
-
body = JSON.stringify(take(input, {
|
|
188
|
-
Arn: [],
|
|
189
|
-
DetailType: [],
|
|
190
|
-
EventTypeIds: (_) => _json(_),
|
|
191
|
-
Name: [],
|
|
192
|
-
Status: [],
|
|
193
|
-
Targets: (_) => _json(_),
|
|
194
|
-
}));
|
|
195
|
-
b.m("POST").h(headers).b(body);
|
|
196
|
-
return b.build();
|
|
197
|
-
};
|
|
198
|
-
export const de_CreateNotificationRuleCommand = async (output, context) => {
|
|
199
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
200
|
-
return de_CommandError(output, context);
|
|
201
|
-
}
|
|
202
|
-
const contents = map({
|
|
203
|
-
$metadata: deserializeMetadata(output),
|
|
204
|
-
});
|
|
205
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
206
|
-
const doc = take(data, {
|
|
207
|
-
Arn: __expectString,
|
|
208
|
-
});
|
|
209
|
-
Object.assign(contents, doc);
|
|
210
|
-
return contents;
|
|
211
|
-
};
|
|
212
|
-
export const de_DeleteNotificationRuleCommand = async (output, context) => {
|
|
213
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
214
|
-
return de_CommandError(output, context);
|
|
215
|
-
}
|
|
216
|
-
const contents = map({
|
|
217
|
-
$metadata: deserializeMetadata(output),
|
|
218
|
-
});
|
|
219
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
220
|
-
const doc = take(data, {
|
|
221
|
-
Arn: __expectString,
|
|
222
|
-
});
|
|
223
|
-
Object.assign(contents, doc);
|
|
224
|
-
return contents;
|
|
225
|
-
};
|
|
226
|
-
export const de_DeleteTargetCommand = async (output, context) => {
|
|
227
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
228
|
-
return de_CommandError(output, context);
|
|
229
|
-
}
|
|
230
|
-
const contents = map({
|
|
231
|
-
$metadata: deserializeMetadata(output),
|
|
232
|
-
});
|
|
233
|
-
await collectBody(output.body, context);
|
|
234
|
-
return contents;
|
|
235
|
-
};
|
|
236
|
-
export const de_DescribeNotificationRuleCommand = async (output, context) => {
|
|
237
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
238
|
-
return de_CommandError(output, context);
|
|
239
|
-
}
|
|
240
|
-
const contents = map({
|
|
241
|
-
$metadata: deserializeMetadata(output),
|
|
242
|
-
});
|
|
243
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
244
|
-
const doc = take(data, {
|
|
245
|
-
Arn: __expectString,
|
|
246
|
-
CreatedBy: __expectString,
|
|
247
|
-
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
248
|
-
DetailType: __expectString,
|
|
249
|
-
EventTypes: _json,
|
|
250
|
-
LastModifiedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
251
|
-
Name: __expectString,
|
|
252
|
-
Resource: __expectString,
|
|
253
|
-
Status: __expectString,
|
|
254
|
-
Tags: _json,
|
|
255
|
-
Targets: _json,
|
|
256
|
-
});
|
|
257
|
-
Object.assign(contents, doc);
|
|
258
|
-
return contents;
|
|
259
|
-
};
|
|
260
|
-
export const de_ListEventTypesCommand = async (output, context) => {
|
|
261
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
262
|
-
return de_CommandError(output, context);
|
|
263
|
-
}
|
|
264
|
-
const contents = map({
|
|
265
|
-
$metadata: deserializeMetadata(output),
|
|
266
|
-
});
|
|
267
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
268
|
-
const doc = take(data, {
|
|
269
|
-
EventTypes: _json,
|
|
270
|
-
NextToken: __expectString,
|
|
271
|
-
});
|
|
272
|
-
Object.assign(contents, doc);
|
|
273
|
-
return contents;
|
|
274
|
-
};
|
|
275
|
-
export const de_ListNotificationRulesCommand = async (output, context) => {
|
|
276
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
277
|
-
return de_CommandError(output, context);
|
|
278
|
-
}
|
|
279
|
-
const contents = map({
|
|
280
|
-
$metadata: deserializeMetadata(output),
|
|
281
|
-
});
|
|
282
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
283
|
-
const doc = take(data, {
|
|
284
|
-
NextToken: __expectString,
|
|
285
|
-
NotificationRules: _json,
|
|
286
|
-
});
|
|
287
|
-
Object.assign(contents, doc);
|
|
288
|
-
return contents;
|
|
289
|
-
};
|
|
290
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
291
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
292
|
-
return de_CommandError(output, context);
|
|
293
|
-
}
|
|
294
|
-
const contents = map({
|
|
295
|
-
$metadata: deserializeMetadata(output),
|
|
296
|
-
});
|
|
297
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
298
|
-
const doc = take(data, {
|
|
299
|
-
Tags: _json,
|
|
300
|
-
});
|
|
301
|
-
Object.assign(contents, doc);
|
|
302
|
-
return contents;
|
|
303
|
-
};
|
|
304
|
-
export const de_ListTargetsCommand = async (output, context) => {
|
|
305
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
306
|
-
return de_CommandError(output, context);
|
|
307
|
-
}
|
|
308
|
-
const contents = map({
|
|
309
|
-
$metadata: deserializeMetadata(output),
|
|
310
|
-
});
|
|
311
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
312
|
-
const doc = take(data, {
|
|
313
|
-
NextToken: __expectString,
|
|
314
|
-
Targets: _json,
|
|
315
|
-
});
|
|
316
|
-
Object.assign(contents, doc);
|
|
317
|
-
return contents;
|
|
318
|
-
};
|
|
319
|
-
export const de_SubscribeCommand = async (output, context) => {
|
|
320
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
321
|
-
return de_CommandError(output, context);
|
|
322
|
-
}
|
|
323
|
-
const contents = map({
|
|
324
|
-
$metadata: deserializeMetadata(output),
|
|
325
|
-
});
|
|
326
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
327
|
-
const doc = take(data, {
|
|
328
|
-
Arn: __expectString,
|
|
329
|
-
});
|
|
330
|
-
Object.assign(contents, doc);
|
|
331
|
-
return contents;
|
|
332
|
-
};
|
|
333
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
334
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
335
|
-
return de_CommandError(output, context);
|
|
336
|
-
}
|
|
337
|
-
const contents = map({
|
|
338
|
-
$metadata: deserializeMetadata(output),
|
|
339
|
-
});
|
|
340
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
341
|
-
const doc = take(data, {
|
|
342
|
-
Tags: _json,
|
|
343
|
-
});
|
|
344
|
-
Object.assign(contents, doc);
|
|
345
|
-
return contents;
|
|
346
|
-
};
|
|
347
|
-
export const de_UnsubscribeCommand = async (output, context) => {
|
|
348
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
349
|
-
return de_CommandError(output, context);
|
|
350
|
-
}
|
|
351
|
-
const contents = map({
|
|
352
|
-
$metadata: deserializeMetadata(output),
|
|
353
|
-
});
|
|
354
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
355
|
-
const doc = take(data, {
|
|
356
|
-
Arn: __expectString,
|
|
357
|
-
});
|
|
358
|
-
Object.assign(contents, doc);
|
|
359
|
-
return contents;
|
|
360
|
-
};
|
|
361
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
362
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
363
|
-
return de_CommandError(output, context);
|
|
364
|
-
}
|
|
365
|
-
const contents = map({
|
|
366
|
-
$metadata: deserializeMetadata(output),
|
|
367
|
-
});
|
|
368
|
-
await collectBody(output.body, context);
|
|
369
|
-
return contents;
|
|
370
|
-
};
|
|
371
|
-
export const de_UpdateNotificationRuleCommand = async (output, context) => {
|
|
372
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
373
|
-
return de_CommandError(output, context);
|
|
374
|
-
}
|
|
375
|
-
const contents = map({
|
|
376
|
-
$metadata: deserializeMetadata(output),
|
|
377
|
-
});
|
|
378
|
-
await collectBody(output.body, context);
|
|
379
|
-
return contents;
|
|
380
|
-
};
|
|
381
|
-
const de_CommandError = async (output, context) => {
|
|
382
|
-
const parsedOutput = {
|
|
383
|
-
...output,
|
|
384
|
-
body: await parseErrorBody(output.body, context),
|
|
385
|
-
};
|
|
386
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
387
|
-
switch (errorCode) {
|
|
388
|
-
case "AccessDeniedException":
|
|
389
|
-
case "com.amazonaws.codestarnotifications#AccessDeniedException":
|
|
390
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
391
|
-
case "ConcurrentModificationException":
|
|
392
|
-
case "com.amazonaws.codestarnotifications#ConcurrentModificationException":
|
|
393
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
394
|
-
case "ConfigurationException":
|
|
395
|
-
case "com.amazonaws.codestarnotifications#ConfigurationException":
|
|
396
|
-
throw await de_ConfigurationExceptionRes(parsedOutput, context);
|
|
397
|
-
case "LimitExceededException":
|
|
398
|
-
case "com.amazonaws.codestarnotifications#LimitExceededException":
|
|
399
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
400
|
-
case "ResourceAlreadyExistsException":
|
|
401
|
-
case "com.amazonaws.codestarnotifications#ResourceAlreadyExistsException":
|
|
402
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
403
|
-
case "ValidationException":
|
|
404
|
-
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
405
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
406
|
-
case "ResourceNotFoundException":
|
|
407
|
-
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
408
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
409
|
-
case "InvalidNextTokenException":
|
|
410
|
-
case "com.amazonaws.codestarnotifications#InvalidNextTokenException":
|
|
411
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
412
|
-
default:
|
|
413
|
-
const parsedBody = parsedOutput.body;
|
|
414
|
-
return throwDefaultError({
|
|
415
|
-
output,
|
|
416
|
-
parsedBody,
|
|
417
|
-
errorCode,
|
|
418
|
-
});
|
|
419
|
-
}
|
|
420
|
-
};
|
|
421
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
422
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
423
|
-
const contents = map({});
|
|
424
|
-
const data = parsedOutput.body;
|
|
425
|
-
const doc = take(data, {
|
|
426
|
-
Message: __expectString,
|
|
427
|
-
});
|
|
428
|
-
Object.assign(contents, doc);
|
|
429
|
-
const exception = new AccessDeniedException({
|
|
430
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
431
|
-
...contents,
|
|
432
|
-
});
|
|
433
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
434
|
-
};
|
|
435
|
-
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
436
|
-
const contents = map({});
|
|
437
|
-
const data = parsedOutput.body;
|
|
438
|
-
const doc = take(data, {
|
|
439
|
-
Message: __expectString,
|
|
440
|
-
});
|
|
441
|
-
Object.assign(contents, doc);
|
|
442
|
-
const exception = new ConcurrentModificationException({
|
|
443
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
444
|
-
...contents,
|
|
445
|
-
});
|
|
446
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
447
|
-
};
|
|
448
|
-
const de_ConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
449
|
-
const contents = map({});
|
|
450
|
-
const data = parsedOutput.body;
|
|
451
|
-
const doc = take(data, {
|
|
452
|
-
Message: __expectString,
|
|
453
|
-
});
|
|
454
|
-
Object.assign(contents, doc);
|
|
455
|
-
const exception = new ConfigurationException({
|
|
456
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
457
|
-
...contents,
|
|
458
|
-
});
|
|
459
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
460
|
-
};
|
|
461
|
-
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
462
|
-
const contents = map({});
|
|
463
|
-
const data = parsedOutput.body;
|
|
464
|
-
const doc = take(data, {
|
|
465
|
-
Message: __expectString,
|
|
466
|
-
});
|
|
467
|
-
Object.assign(contents, doc);
|
|
468
|
-
const exception = new InvalidNextTokenException({
|
|
469
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
470
|
-
...contents,
|
|
471
|
-
});
|
|
472
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
473
|
-
};
|
|
474
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
475
|
-
const contents = map({});
|
|
476
|
-
const data = parsedOutput.body;
|
|
477
|
-
const doc = take(data, {
|
|
478
|
-
Message: __expectString,
|
|
479
|
-
});
|
|
480
|
-
Object.assign(contents, doc);
|
|
481
|
-
const exception = new LimitExceededException({
|
|
482
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
483
|
-
...contents,
|
|
484
|
-
});
|
|
485
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
486
|
-
};
|
|
487
|
-
const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
488
|
-
const contents = map({});
|
|
489
|
-
const data = parsedOutput.body;
|
|
490
|
-
const doc = take(data, {
|
|
491
|
-
Message: __expectString,
|
|
492
|
-
});
|
|
493
|
-
Object.assign(contents, doc);
|
|
494
|
-
const exception = new ResourceAlreadyExistsException({
|
|
495
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
496
|
-
...contents,
|
|
497
|
-
});
|
|
498
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
499
|
-
};
|
|
500
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
501
|
-
const contents = map({});
|
|
502
|
-
const data = parsedOutput.body;
|
|
503
|
-
const doc = take(data, {
|
|
504
|
-
Message: __expectString,
|
|
505
|
-
});
|
|
506
|
-
Object.assign(contents, doc);
|
|
507
|
-
const exception = new ResourceNotFoundException({
|
|
508
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
509
|
-
...contents,
|
|
510
|
-
});
|
|
511
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
512
|
-
};
|
|
513
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
514
|
-
const contents = map({});
|
|
515
|
-
const data = parsedOutput.body;
|
|
516
|
-
const doc = take(data, {
|
|
517
|
-
Message: __expectString,
|
|
518
|
-
});
|
|
519
|
-
Object.assign(contents, doc);
|
|
520
|
-
const exception = new ValidationException({
|
|
521
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
522
|
-
...contents,
|
|
523
|
-
});
|
|
524
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
525
|
-
};
|
|
526
|
-
const deserializeMetadata = (output) => ({
|
|
527
|
-
httpStatusCode: output.statusCode,
|
|
528
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
529
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
530
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
531
|
-
});
|
|
532
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
533
|
-
const _TK = "TagKeys";
|
|
534
|
-
const _tK = "tagKeys";
|