@aws-sdk/client-application-signals 3.594.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +345 -0
- package/dist-cjs/ApplicationSignals.js +41 -0
- package/dist-cjs/ApplicationSignalsClient.js +56 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/commands/BatchGetServiceLevelObjectiveBudgetReportCommand.js +28 -0
- package/dist-cjs/commands/CreateServiceLevelObjectiveCommand.js +28 -0
- package/dist-cjs/commands/DeleteServiceLevelObjectiveCommand.js +28 -0
- package/dist-cjs/commands/GetServiceCommand.js +28 -0
- package/dist-cjs/commands/GetServiceLevelObjectiveCommand.js +28 -0
- package/dist-cjs/commands/ListServiceDependenciesCommand.js +28 -0
- package/dist-cjs/commands/ListServiceDependentsCommand.js +28 -0
- package/dist-cjs/commands/ListServiceLevelObjectivesCommand.js +28 -0
- package/dist-cjs/commands/ListServiceOperationsCommand.js +28 -0
- package/dist-cjs/commands/ListServicesCommand.js +28 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +28 -0
- package/dist-cjs/commands/StartDiscoveryCommand.js +28 -0
- package/dist-cjs/commands/TagResourceCommand.js +28 -0
- package/dist-cjs/commands/UntagResourceCommand.js +28 -0
- package/dist-cjs/commands/UpdateServiceLevelObjectiveCommand.js +28 -0
- package/dist-cjs/commands/index.js +18 -0
- package/dist-cjs/endpoint/EndpointParameters.js +16 -0
- package/dist-cjs/endpoint/endpointResolver.js +14 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/ApplicationSignalsServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +148 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListServiceDependenciesPaginator.js +7 -0
- package/dist-cjs/pagination/ListServiceDependentsPaginator.js +7 -0
- package/dist-cjs/pagination/ListServiceLevelObjectivesPaginator.js +7 -0
- package/dist-cjs/pagination/ListServiceOperationsPaginator.js +7 -0
- package/dist-cjs/pagination/ListServicesPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +9 -0
- package/dist-cjs/protocols/Aws_restJson1.js +713 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +49 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +34 -0
- package/dist-cjs/runtimeExtensions.js +25 -0
- package/dist-es/ApplicationSignals.js +37 -0
- package/dist-es/ApplicationSignalsClient.js +52 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/BatchGetServiceLevelObjectiveBudgetReportCommand.js +24 -0
- package/dist-es/commands/CreateServiceLevelObjectiveCommand.js +24 -0
- package/dist-es/commands/DeleteServiceLevelObjectiveCommand.js +24 -0
- package/dist-es/commands/GetServiceCommand.js +24 -0
- package/dist-es/commands/GetServiceLevelObjectiveCommand.js +24 -0
- package/dist-es/commands/ListServiceDependenciesCommand.js +24 -0
- package/dist-es/commands/ListServiceDependentsCommand.js +24 -0
- package/dist-es/commands/ListServiceLevelObjectivesCommand.js +24 -0
- package/dist-es/commands/ListServiceOperationsCommand.js +24 -0
- package/dist-es/commands/ListServicesCommand.js +24 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +24 -0
- package/dist-es/commands/StartDiscoveryCommand.js +24 -0
- package/dist-es/commands/TagResourceCommand.js +24 -0
- package/dist-es/commands/UntagResourceCommand.js +24 -0
- package/dist-es/commands/UpdateServiceLevelObjectiveCommand.js +24 -0
- package/dist-es/commands/index.js +15 -0
- package/dist-es/endpoint/EndpointParameters.js +12 -0
- package/dist-es/endpoint/endpointResolver.js +10 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/ApplicationSignalsServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +139 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListServiceDependenciesPaginator.js +4 -0
- package/dist-es/pagination/ListServiceDependentsPaginator.js +4 -0
- package/dist-es/pagination/ListServiceLevelObjectivesPaginator.js +4 -0
- package/dist-es/pagination/ListServiceOperationsPaginator.js +4 -0
- package/dist-es/pagination/ListServicesPaginator.js +4 -0
- package/dist-es/pagination/index.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +680 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +44 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +30 -0
- package/dist-es/runtimeExtensions.js +21 -0
- package/dist-types/ApplicationSignals.d.ts +137 -0
- package/dist-types/ApplicationSignalsClient.d.ts +206 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/dist-types/commands/BatchGetServiceLevelObjectiveBudgetReportCommand.d.ts +148 -0
- package/dist-types/commands/CreateServiceLevelObjectiveCommand.d.ts +252 -0
- package/dist-types/commands/DeleteServiceLevelObjectiveCommand.d.ts +67 -0
- package/dist-types/commands/GetServiceCommand.d.ts +94 -0
- package/dist-types/commands/GetServiceLevelObjectiveCommand.d.ts +126 -0
- package/dist-types/commands/ListServiceDependenciesCommand.d.ts +99 -0
- package/dist-types/commands/ListServiceDependentsCommand.d.ts +97 -0
- package/dist-types/commands/ListServiceLevelObjectivesCommand.d.ts +82 -0
- package/dist-types/commands/ListServiceOperationsCommand.d.ts +93 -0
- package/dist-types/commands/ListServicesCommand.d.ts +98 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +71 -0
- package/dist-types/commands/StartDiscoveryCommand.d.ts +108 -0
- package/dist-types/commands/TagResourceCommand.d.ts +82 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +67 -0
- package/dist-types/commands/UpdateServiceLevelObjectiveCommand.d.ts +181 -0
- package/dist-types/commands/index.d.ts +15 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +34 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +34 -0
- package/dist-types/models/ApplicationSignalsServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +2004 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListServiceDependenciesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListServiceDependentsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListServiceLevelObjectivesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListServiceOperationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListServicesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +6 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +137 -0
- package/dist-types/runtimeConfig.browser.d.ts +45 -0
- package/dist-types/runtimeConfig.d.ts +45 -0
- package/dist-types/runtimeConfig.native.d.ts +44 -0
- package/dist-types/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/ApplicationSignals.d.ts +270 -0
- package/dist-types/ts3.4/ApplicationSignalsClient.d.ts +213 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
- package/dist-types/ts3.4/commands/BatchGetServiceLevelObjectiveBudgetReportCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/CreateServiceLevelObjectiveCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/DeleteServiceLevelObjectiveCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/GetServiceCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/GetServiceLevelObjectiveCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/ListServiceDependenciesCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/ListServiceDependentsCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/ListServiceLevelObjectivesCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/ListServiceOperationsCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/ListServicesCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/StartDiscoveryCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateServiceLevelObjectiveCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/index.d.ts +15 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +9 -0
- package/dist-types/ts3.4/models/ApplicationSignalsServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +390 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListServiceDependenciesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListServiceDependentsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListServiceLevelObjectivesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListServiceOperationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListServicesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +6 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +185 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +87 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +81 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +23 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
- package/package.json +101 -0
|
@@ -0,0 +1,680 @@
|
|
|
1
|
+
import { awsExpectUnion as __expectUnion, 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, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeDateTime as __serializeDateTime, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
+
import { ApplicationSignalsServiceException as __BaseException } from "../models/ApplicationSignalsServiceException";
|
|
5
|
+
import { AccessDeniedException, ConflictException, Interval, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
|
+
export const se_BatchGetServiceLevelObjectiveBudgetReportCommand = async (input, context) => {
|
|
7
|
+
const b = rb(input, context);
|
|
8
|
+
const headers = {
|
|
9
|
+
"content-type": "application/json",
|
|
10
|
+
};
|
|
11
|
+
b.bp("/budget-report");
|
|
12
|
+
let body;
|
|
13
|
+
body = JSON.stringify(take(input, {
|
|
14
|
+
SloIds: (_) => _json(_),
|
|
15
|
+
Timestamp: (_) => _.getTime() / 1000,
|
|
16
|
+
}));
|
|
17
|
+
b.m("POST").h(headers).b(body);
|
|
18
|
+
return b.build();
|
|
19
|
+
};
|
|
20
|
+
export const se_CreateServiceLevelObjectiveCommand = async (input, context) => {
|
|
21
|
+
const b = rb(input, context);
|
|
22
|
+
const headers = {
|
|
23
|
+
"content-type": "application/json",
|
|
24
|
+
};
|
|
25
|
+
b.bp("/slo");
|
|
26
|
+
let body;
|
|
27
|
+
body = JSON.stringify(take(input, {
|
|
28
|
+
Description: [],
|
|
29
|
+
Goal: (_) => se_Goal(_, context),
|
|
30
|
+
Name: [],
|
|
31
|
+
SliConfig: (_) => se_ServiceLevelIndicatorConfig(_, context),
|
|
32
|
+
Tags: (_) => _json(_),
|
|
33
|
+
}));
|
|
34
|
+
b.m("POST").h(headers).b(body);
|
|
35
|
+
return b.build();
|
|
36
|
+
};
|
|
37
|
+
export const se_DeleteServiceLevelObjectiveCommand = async (input, context) => {
|
|
38
|
+
const b = rb(input, context);
|
|
39
|
+
const headers = {};
|
|
40
|
+
b.bp("/slo/{Id}");
|
|
41
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
42
|
+
let body;
|
|
43
|
+
b.m("DELETE").h(headers).b(body);
|
|
44
|
+
return b.build();
|
|
45
|
+
};
|
|
46
|
+
export const se_GetServiceCommand = async (input, context) => {
|
|
47
|
+
const b = rb(input, context);
|
|
48
|
+
const headers = {
|
|
49
|
+
"content-type": "application/json",
|
|
50
|
+
};
|
|
51
|
+
b.bp("/service");
|
|
52
|
+
const query = map({
|
|
53
|
+
[_ST]: [__expectNonNull(input.StartTime, `StartTime`) != null, () => __serializeDateTime(input[_ST]).toString()],
|
|
54
|
+
[_ET]: [__expectNonNull(input.EndTime, `EndTime`) != null, () => __serializeDateTime(input[_ET]).toString()],
|
|
55
|
+
});
|
|
56
|
+
let body;
|
|
57
|
+
body = JSON.stringify(take(input, {
|
|
58
|
+
KeyAttributes: (_) => _json(_),
|
|
59
|
+
}));
|
|
60
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
61
|
+
return b.build();
|
|
62
|
+
};
|
|
63
|
+
export const se_GetServiceLevelObjectiveCommand = async (input, context) => {
|
|
64
|
+
const b = rb(input, context);
|
|
65
|
+
const headers = {};
|
|
66
|
+
b.bp("/slo/{Id}");
|
|
67
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
68
|
+
let body;
|
|
69
|
+
b.m("GET").h(headers).b(body);
|
|
70
|
+
return b.build();
|
|
71
|
+
};
|
|
72
|
+
export const se_ListServiceDependenciesCommand = async (input, context) => {
|
|
73
|
+
const b = rb(input, context);
|
|
74
|
+
const headers = {
|
|
75
|
+
"content-type": "application/json",
|
|
76
|
+
};
|
|
77
|
+
b.bp("/service-dependencies");
|
|
78
|
+
const query = map({
|
|
79
|
+
[_ST]: [__expectNonNull(input.StartTime, `StartTime`) != null, () => __serializeDateTime(input[_ST]).toString()],
|
|
80
|
+
[_ET]: [__expectNonNull(input.EndTime, `EndTime`) != null, () => __serializeDateTime(input[_ET]).toString()],
|
|
81
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
82
|
+
[_NT]: [, input[_NT]],
|
|
83
|
+
});
|
|
84
|
+
let body;
|
|
85
|
+
body = JSON.stringify(take(input, {
|
|
86
|
+
KeyAttributes: (_) => _json(_),
|
|
87
|
+
}));
|
|
88
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
89
|
+
return b.build();
|
|
90
|
+
};
|
|
91
|
+
export const se_ListServiceDependentsCommand = async (input, context) => {
|
|
92
|
+
const b = rb(input, context);
|
|
93
|
+
const headers = {
|
|
94
|
+
"content-type": "application/json",
|
|
95
|
+
};
|
|
96
|
+
b.bp("/service-dependents");
|
|
97
|
+
const query = map({
|
|
98
|
+
[_ST]: [__expectNonNull(input.StartTime, `StartTime`) != null, () => __serializeDateTime(input[_ST]).toString()],
|
|
99
|
+
[_ET]: [__expectNonNull(input.EndTime, `EndTime`) != null, () => __serializeDateTime(input[_ET]).toString()],
|
|
100
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
101
|
+
[_NT]: [, input[_NT]],
|
|
102
|
+
});
|
|
103
|
+
let body;
|
|
104
|
+
body = JSON.stringify(take(input, {
|
|
105
|
+
KeyAttributes: (_) => _json(_),
|
|
106
|
+
}));
|
|
107
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
108
|
+
return b.build();
|
|
109
|
+
};
|
|
110
|
+
export const se_ListServiceLevelObjectivesCommand = async (input, context) => {
|
|
111
|
+
const b = rb(input, context);
|
|
112
|
+
const headers = {
|
|
113
|
+
"content-type": "application/json",
|
|
114
|
+
};
|
|
115
|
+
b.bp("/slos");
|
|
116
|
+
const query = map({
|
|
117
|
+
[_ON]: [, input[_ON]],
|
|
118
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
119
|
+
[_NT]: [, input[_NT]],
|
|
120
|
+
});
|
|
121
|
+
let body;
|
|
122
|
+
body = JSON.stringify(take(input, {
|
|
123
|
+
KeyAttributes: (_) => _json(_),
|
|
124
|
+
}));
|
|
125
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
126
|
+
return b.build();
|
|
127
|
+
};
|
|
128
|
+
export const se_ListServiceOperationsCommand = async (input, context) => {
|
|
129
|
+
const b = rb(input, context);
|
|
130
|
+
const headers = {
|
|
131
|
+
"content-type": "application/json",
|
|
132
|
+
};
|
|
133
|
+
b.bp("/service-operations");
|
|
134
|
+
const query = map({
|
|
135
|
+
[_ST]: [__expectNonNull(input.StartTime, `StartTime`) != null, () => __serializeDateTime(input[_ST]).toString()],
|
|
136
|
+
[_ET]: [__expectNonNull(input.EndTime, `EndTime`) != null, () => __serializeDateTime(input[_ET]).toString()],
|
|
137
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
138
|
+
[_NT]: [, input[_NT]],
|
|
139
|
+
});
|
|
140
|
+
let body;
|
|
141
|
+
body = JSON.stringify(take(input, {
|
|
142
|
+
KeyAttributes: (_) => _json(_),
|
|
143
|
+
}));
|
|
144
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
145
|
+
return b.build();
|
|
146
|
+
};
|
|
147
|
+
export const se_ListServicesCommand = async (input, context) => {
|
|
148
|
+
const b = rb(input, context);
|
|
149
|
+
const headers = {};
|
|
150
|
+
b.bp("/services");
|
|
151
|
+
const query = map({
|
|
152
|
+
[_ST]: [__expectNonNull(input.StartTime, `StartTime`) != null, () => __serializeDateTime(input[_ST]).toString()],
|
|
153
|
+
[_ET]: [__expectNonNull(input.EndTime, `EndTime`) != null, () => __serializeDateTime(input[_ET]).toString()],
|
|
154
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
155
|
+
[_NT]: [, input[_NT]],
|
|
156
|
+
});
|
|
157
|
+
let body;
|
|
158
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
159
|
+
return b.build();
|
|
160
|
+
};
|
|
161
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
162
|
+
const b = rb(input, context);
|
|
163
|
+
const headers = {};
|
|
164
|
+
b.bp("/tags");
|
|
165
|
+
const query = map({
|
|
166
|
+
[_RA]: [, __expectNonNull(input[_RA], `ResourceArn`)],
|
|
167
|
+
});
|
|
168
|
+
let body;
|
|
169
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
170
|
+
return b.build();
|
|
171
|
+
};
|
|
172
|
+
export const se_StartDiscoveryCommand = async (input, context) => {
|
|
173
|
+
const b = rb(input, context);
|
|
174
|
+
const headers = {
|
|
175
|
+
"content-type": "application/json",
|
|
176
|
+
};
|
|
177
|
+
b.bp("/start-discovery");
|
|
178
|
+
let body;
|
|
179
|
+
body = "";
|
|
180
|
+
b.m("POST").h(headers).b(body);
|
|
181
|
+
return b.build();
|
|
182
|
+
};
|
|
183
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
184
|
+
const b = rb(input, context);
|
|
185
|
+
const headers = {
|
|
186
|
+
"content-type": "application/json",
|
|
187
|
+
};
|
|
188
|
+
b.bp("/tag-resource");
|
|
189
|
+
let body;
|
|
190
|
+
body = JSON.stringify(take(input, {
|
|
191
|
+
ResourceArn: [],
|
|
192
|
+
Tags: (_) => _json(_),
|
|
193
|
+
}));
|
|
194
|
+
b.m("POST").h(headers).b(body);
|
|
195
|
+
return b.build();
|
|
196
|
+
};
|
|
197
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
198
|
+
const b = rb(input, context);
|
|
199
|
+
const headers = {
|
|
200
|
+
"content-type": "application/json",
|
|
201
|
+
};
|
|
202
|
+
b.bp("/untag-resource");
|
|
203
|
+
let body;
|
|
204
|
+
body = JSON.stringify(take(input, {
|
|
205
|
+
ResourceArn: [],
|
|
206
|
+
TagKeys: (_) => _json(_),
|
|
207
|
+
}));
|
|
208
|
+
b.m("POST").h(headers).b(body);
|
|
209
|
+
return b.build();
|
|
210
|
+
};
|
|
211
|
+
export const se_UpdateServiceLevelObjectiveCommand = async (input, context) => {
|
|
212
|
+
const b = rb(input, context);
|
|
213
|
+
const headers = {
|
|
214
|
+
"content-type": "application/json",
|
|
215
|
+
};
|
|
216
|
+
b.bp("/slo/{Id}");
|
|
217
|
+
b.p("Id", () => input.Id, "{Id}", false);
|
|
218
|
+
let body;
|
|
219
|
+
body = JSON.stringify(take(input, {
|
|
220
|
+
Description: [],
|
|
221
|
+
Goal: (_) => se_Goal(_, context),
|
|
222
|
+
SliConfig: (_) => se_ServiceLevelIndicatorConfig(_, context),
|
|
223
|
+
}));
|
|
224
|
+
b.m("PATCH").h(headers).b(body);
|
|
225
|
+
return b.build();
|
|
226
|
+
};
|
|
227
|
+
export const de_BatchGetServiceLevelObjectiveBudgetReportCommand = async (output, context) => {
|
|
228
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
229
|
+
return de_CommandError(output, context);
|
|
230
|
+
}
|
|
231
|
+
const contents = map({
|
|
232
|
+
$metadata: deserializeMetadata(output),
|
|
233
|
+
});
|
|
234
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
235
|
+
const doc = take(data, {
|
|
236
|
+
Errors: _json,
|
|
237
|
+
Reports: (_) => de_ServiceLevelObjectiveBudgetReports(_, context),
|
|
238
|
+
Timestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
239
|
+
});
|
|
240
|
+
Object.assign(contents, doc);
|
|
241
|
+
return contents;
|
|
242
|
+
};
|
|
243
|
+
export const de_CreateServiceLevelObjectiveCommand = async (output, context) => {
|
|
244
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
245
|
+
return de_CommandError(output, context);
|
|
246
|
+
}
|
|
247
|
+
const contents = map({
|
|
248
|
+
$metadata: deserializeMetadata(output),
|
|
249
|
+
});
|
|
250
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
251
|
+
const doc = take(data, {
|
|
252
|
+
Slo: (_) => de_ServiceLevelObjective(_, context),
|
|
253
|
+
});
|
|
254
|
+
Object.assign(contents, doc);
|
|
255
|
+
return contents;
|
|
256
|
+
};
|
|
257
|
+
export const de_DeleteServiceLevelObjectiveCommand = async (output, context) => {
|
|
258
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
259
|
+
return de_CommandError(output, context);
|
|
260
|
+
}
|
|
261
|
+
const contents = map({
|
|
262
|
+
$metadata: deserializeMetadata(output),
|
|
263
|
+
});
|
|
264
|
+
await collectBody(output.body, context);
|
|
265
|
+
return contents;
|
|
266
|
+
};
|
|
267
|
+
export const de_GetServiceCommand = async (output, context) => {
|
|
268
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
269
|
+
return de_CommandError(output, context);
|
|
270
|
+
}
|
|
271
|
+
const contents = map({
|
|
272
|
+
$metadata: deserializeMetadata(output),
|
|
273
|
+
});
|
|
274
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
275
|
+
const doc = take(data, {
|
|
276
|
+
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
277
|
+
Service: _json,
|
|
278
|
+
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
279
|
+
});
|
|
280
|
+
Object.assign(contents, doc);
|
|
281
|
+
return contents;
|
|
282
|
+
};
|
|
283
|
+
export const de_GetServiceLevelObjectiveCommand = async (output, context) => {
|
|
284
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
285
|
+
return de_CommandError(output, context);
|
|
286
|
+
}
|
|
287
|
+
const contents = map({
|
|
288
|
+
$metadata: deserializeMetadata(output),
|
|
289
|
+
});
|
|
290
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
291
|
+
const doc = take(data, {
|
|
292
|
+
Slo: (_) => de_ServiceLevelObjective(_, context),
|
|
293
|
+
});
|
|
294
|
+
Object.assign(contents, doc);
|
|
295
|
+
return contents;
|
|
296
|
+
};
|
|
297
|
+
export const de_ListServiceDependenciesCommand = async (output, context) => {
|
|
298
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
299
|
+
return de_CommandError(output, context);
|
|
300
|
+
}
|
|
301
|
+
const contents = map({
|
|
302
|
+
$metadata: deserializeMetadata(output),
|
|
303
|
+
});
|
|
304
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
305
|
+
const doc = take(data, {
|
|
306
|
+
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
307
|
+
NextToken: __expectString,
|
|
308
|
+
ServiceDependencies: _json,
|
|
309
|
+
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
310
|
+
});
|
|
311
|
+
Object.assign(contents, doc);
|
|
312
|
+
return contents;
|
|
313
|
+
};
|
|
314
|
+
export const de_ListServiceDependentsCommand = async (output, context) => {
|
|
315
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
316
|
+
return de_CommandError(output, context);
|
|
317
|
+
}
|
|
318
|
+
const contents = map({
|
|
319
|
+
$metadata: deserializeMetadata(output),
|
|
320
|
+
});
|
|
321
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
322
|
+
const doc = take(data, {
|
|
323
|
+
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
324
|
+
NextToken: __expectString,
|
|
325
|
+
ServiceDependents: _json,
|
|
326
|
+
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
327
|
+
});
|
|
328
|
+
Object.assign(contents, doc);
|
|
329
|
+
return contents;
|
|
330
|
+
};
|
|
331
|
+
export const de_ListServiceLevelObjectivesCommand = async (output, context) => {
|
|
332
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
333
|
+
return de_CommandError(output, context);
|
|
334
|
+
}
|
|
335
|
+
const contents = map({
|
|
336
|
+
$metadata: deserializeMetadata(output),
|
|
337
|
+
});
|
|
338
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
339
|
+
const doc = take(data, {
|
|
340
|
+
NextToken: __expectString,
|
|
341
|
+
SloSummaries: (_) => de_ServiceLevelObjectiveSummaries(_, context),
|
|
342
|
+
});
|
|
343
|
+
Object.assign(contents, doc);
|
|
344
|
+
return contents;
|
|
345
|
+
};
|
|
346
|
+
export const de_ListServiceOperationsCommand = async (output, context) => {
|
|
347
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
348
|
+
return de_CommandError(output, context);
|
|
349
|
+
}
|
|
350
|
+
const contents = map({
|
|
351
|
+
$metadata: deserializeMetadata(output),
|
|
352
|
+
});
|
|
353
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
354
|
+
const doc = take(data, {
|
|
355
|
+
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
356
|
+
NextToken: __expectString,
|
|
357
|
+
ServiceOperations: _json,
|
|
358
|
+
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
359
|
+
});
|
|
360
|
+
Object.assign(contents, doc);
|
|
361
|
+
return contents;
|
|
362
|
+
};
|
|
363
|
+
export const de_ListServicesCommand = async (output, context) => {
|
|
364
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
365
|
+
return de_CommandError(output, context);
|
|
366
|
+
}
|
|
367
|
+
const contents = map({
|
|
368
|
+
$metadata: deserializeMetadata(output),
|
|
369
|
+
});
|
|
370
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
371
|
+
const doc = take(data, {
|
|
372
|
+
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
373
|
+
NextToken: __expectString,
|
|
374
|
+
ServiceSummaries: _json,
|
|
375
|
+
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
376
|
+
});
|
|
377
|
+
Object.assign(contents, doc);
|
|
378
|
+
return contents;
|
|
379
|
+
};
|
|
380
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
381
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
382
|
+
return de_CommandError(output, context);
|
|
383
|
+
}
|
|
384
|
+
const contents = map({
|
|
385
|
+
$metadata: deserializeMetadata(output),
|
|
386
|
+
});
|
|
387
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
388
|
+
const doc = take(data, {
|
|
389
|
+
Tags: _json,
|
|
390
|
+
});
|
|
391
|
+
Object.assign(contents, doc);
|
|
392
|
+
return contents;
|
|
393
|
+
};
|
|
394
|
+
export const de_StartDiscoveryCommand = async (output, context) => {
|
|
395
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
396
|
+
return de_CommandError(output, context);
|
|
397
|
+
}
|
|
398
|
+
const contents = map({
|
|
399
|
+
$metadata: deserializeMetadata(output),
|
|
400
|
+
});
|
|
401
|
+
await collectBody(output.body, context);
|
|
402
|
+
return contents;
|
|
403
|
+
};
|
|
404
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
405
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
406
|
+
return de_CommandError(output, context);
|
|
407
|
+
}
|
|
408
|
+
const contents = map({
|
|
409
|
+
$metadata: deserializeMetadata(output),
|
|
410
|
+
});
|
|
411
|
+
await collectBody(output.body, context);
|
|
412
|
+
return contents;
|
|
413
|
+
};
|
|
414
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
415
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
416
|
+
return de_CommandError(output, context);
|
|
417
|
+
}
|
|
418
|
+
const contents = map({
|
|
419
|
+
$metadata: deserializeMetadata(output),
|
|
420
|
+
});
|
|
421
|
+
await collectBody(output.body, context);
|
|
422
|
+
return contents;
|
|
423
|
+
};
|
|
424
|
+
export const de_UpdateServiceLevelObjectiveCommand = async (output, context) => {
|
|
425
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
426
|
+
return de_CommandError(output, context);
|
|
427
|
+
}
|
|
428
|
+
const contents = map({
|
|
429
|
+
$metadata: deserializeMetadata(output),
|
|
430
|
+
});
|
|
431
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
432
|
+
const doc = take(data, {
|
|
433
|
+
Slo: (_) => de_ServiceLevelObjective(_, context),
|
|
434
|
+
});
|
|
435
|
+
Object.assign(contents, doc);
|
|
436
|
+
return contents;
|
|
437
|
+
};
|
|
438
|
+
const de_CommandError = async (output, context) => {
|
|
439
|
+
const parsedOutput = {
|
|
440
|
+
...output,
|
|
441
|
+
body: await parseErrorBody(output.body, context),
|
|
442
|
+
};
|
|
443
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
444
|
+
switch (errorCode) {
|
|
445
|
+
case "ThrottlingException":
|
|
446
|
+
case "com.amazonaws.applicationsignals#ThrottlingException":
|
|
447
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
448
|
+
case "ValidationException":
|
|
449
|
+
case "com.amazonaws.applicationsignals#ValidationException":
|
|
450
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
451
|
+
case "AccessDeniedException":
|
|
452
|
+
case "com.amazonaws.applicationsignals#AccessDeniedException":
|
|
453
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
454
|
+
case "ConflictException":
|
|
455
|
+
case "com.amazonaws.applicationsignals#ConflictException":
|
|
456
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
457
|
+
case "ServiceQuotaExceededException":
|
|
458
|
+
case "com.amazonaws.applicationsignals#ServiceQuotaExceededException":
|
|
459
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
460
|
+
case "ResourceNotFoundException":
|
|
461
|
+
case "com.amazonaws.applicationsignals#ResourceNotFoundException":
|
|
462
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
463
|
+
default:
|
|
464
|
+
const parsedBody = parsedOutput.body;
|
|
465
|
+
return throwDefaultError({
|
|
466
|
+
output,
|
|
467
|
+
parsedBody,
|
|
468
|
+
errorCode,
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
};
|
|
472
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
473
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
474
|
+
const contents = map({});
|
|
475
|
+
const data = parsedOutput.body;
|
|
476
|
+
const doc = take(data, {
|
|
477
|
+
Message: __expectString,
|
|
478
|
+
});
|
|
479
|
+
Object.assign(contents, doc);
|
|
480
|
+
const exception = new AccessDeniedException({
|
|
481
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
482
|
+
...contents,
|
|
483
|
+
});
|
|
484
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
485
|
+
};
|
|
486
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
487
|
+
const contents = map({});
|
|
488
|
+
const data = parsedOutput.body;
|
|
489
|
+
const doc = take(data, {
|
|
490
|
+
Message: __expectString,
|
|
491
|
+
});
|
|
492
|
+
Object.assign(contents, doc);
|
|
493
|
+
const exception = new ConflictException({
|
|
494
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
495
|
+
...contents,
|
|
496
|
+
});
|
|
497
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
498
|
+
};
|
|
499
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
500
|
+
const contents = map({});
|
|
501
|
+
const data = parsedOutput.body;
|
|
502
|
+
const doc = take(data, {
|
|
503
|
+
Message: __expectString,
|
|
504
|
+
ResourceId: __expectString,
|
|
505
|
+
ResourceType: __expectString,
|
|
506
|
+
});
|
|
507
|
+
Object.assign(contents, doc);
|
|
508
|
+
const exception = new ResourceNotFoundException({
|
|
509
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
510
|
+
...contents,
|
|
511
|
+
});
|
|
512
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
513
|
+
};
|
|
514
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
515
|
+
const contents = map({});
|
|
516
|
+
const data = parsedOutput.body;
|
|
517
|
+
const doc = take(data, {
|
|
518
|
+
Message: __expectString,
|
|
519
|
+
});
|
|
520
|
+
Object.assign(contents, doc);
|
|
521
|
+
const exception = new ServiceQuotaExceededException({
|
|
522
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
523
|
+
...contents,
|
|
524
|
+
});
|
|
525
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
526
|
+
};
|
|
527
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
528
|
+
const contents = map({});
|
|
529
|
+
const data = parsedOutput.body;
|
|
530
|
+
const doc = take(data, {
|
|
531
|
+
Message: __expectString,
|
|
532
|
+
});
|
|
533
|
+
Object.assign(contents, doc);
|
|
534
|
+
const exception = new ThrottlingException({
|
|
535
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
536
|
+
...contents,
|
|
537
|
+
});
|
|
538
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
539
|
+
};
|
|
540
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
541
|
+
const contents = map({});
|
|
542
|
+
const data = parsedOutput.body;
|
|
543
|
+
const doc = take(data, {
|
|
544
|
+
message: __expectString,
|
|
545
|
+
});
|
|
546
|
+
Object.assign(contents, doc);
|
|
547
|
+
const exception = new ValidationException({
|
|
548
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
549
|
+
...contents,
|
|
550
|
+
});
|
|
551
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
552
|
+
};
|
|
553
|
+
const se_CalendarInterval = (input, context) => {
|
|
554
|
+
return take(input, {
|
|
555
|
+
Duration: [],
|
|
556
|
+
DurationUnit: [],
|
|
557
|
+
StartTime: (_) => _.getTime() / 1000,
|
|
558
|
+
});
|
|
559
|
+
};
|
|
560
|
+
const se_Goal = (input, context) => {
|
|
561
|
+
return take(input, {
|
|
562
|
+
AttainmentGoal: __serializeFloat,
|
|
563
|
+
Interval: (_) => se_Interval(_, context),
|
|
564
|
+
WarningThreshold: __serializeFloat,
|
|
565
|
+
});
|
|
566
|
+
};
|
|
567
|
+
const se_Interval = (input, context) => {
|
|
568
|
+
return Interval.visit(input, {
|
|
569
|
+
CalendarInterval: (value) => ({ CalendarInterval: se_CalendarInterval(value, context) }),
|
|
570
|
+
RollingInterval: (value) => ({ RollingInterval: _json(value) }),
|
|
571
|
+
_: (name, value) => ({ name: value }),
|
|
572
|
+
});
|
|
573
|
+
};
|
|
574
|
+
const se_ServiceLevelIndicatorConfig = (input, context) => {
|
|
575
|
+
return take(input, {
|
|
576
|
+
ComparisonOperator: [],
|
|
577
|
+
MetricThreshold: __serializeFloat,
|
|
578
|
+
SliMetricConfig: _json,
|
|
579
|
+
});
|
|
580
|
+
};
|
|
581
|
+
const de_CalendarInterval = (output, context) => {
|
|
582
|
+
return take(output, {
|
|
583
|
+
Duration: __expectInt32,
|
|
584
|
+
DurationUnit: __expectString,
|
|
585
|
+
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
586
|
+
});
|
|
587
|
+
};
|
|
588
|
+
const de_Goal = (output, context) => {
|
|
589
|
+
return take(output, {
|
|
590
|
+
AttainmentGoal: __limitedParseDouble,
|
|
591
|
+
Interval: (_) => de_Interval(__expectUnion(_), context),
|
|
592
|
+
WarningThreshold: __limitedParseDouble,
|
|
593
|
+
});
|
|
594
|
+
};
|
|
595
|
+
const de_Interval = (output, context) => {
|
|
596
|
+
if (output.CalendarInterval != null) {
|
|
597
|
+
return {
|
|
598
|
+
CalendarInterval: de_CalendarInterval(output.CalendarInterval, context),
|
|
599
|
+
};
|
|
600
|
+
}
|
|
601
|
+
if (output.RollingInterval != null) {
|
|
602
|
+
return {
|
|
603
|
+
RollingInterval: _json(output.RollingInterval),
|
|
604
|
+
};
|
|
605
|
+
}
|
|
606
|
+
return { $unknown: Object.entries(output)[0] };
|
|
607
|
+
};
|
|
608
|
+
const de_ServiceLevelIndicator = (output, context) => {
|
|
609
|
+
return take(output, {
|
|
610
|
+
ComparisonOperator: __expectString,
|
|
611
|
+
MetricThreshold: __limitedParseDouble,
|
|
612
|
+
SliMetric: _json,
|
|
613
|
+
});
|
|
614
|
+
};
|
|
615
|
+
const de_ServiceLevelObjective = (output, context) => {
|
|
616
|
+
return take(output, {
|
|
617
|
+
Arn: __expectString,
|
|
618
|
+
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
619
|
+
Description: __expectString,
|
|
620
|
+
Goal: (_) => de_Goal(_, context),
|
|
621
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
622
|
+
Name: __expectString,
|
|
623
|
+
Sli: (_) => de_ServiceLevelIndicator(_, context),
|
|
624
|
+
});
|
|
625
|
+
};
|
|
626
|
+
const de_ServiceLevelObjectiveBudgetReport = (output, context) => {
|
|
627
|
+
return take(output, {
|
|
628
|
+
Arn: __expectString,
|
|
629
|
+
Attainment: __limitedParseDouble,
|
|
630
|
+
BudgetSecondsRemaining: __expectInt32,
|
|
631
|
+
BudgetStatus: __expectString,
|
|
632
|
+
Goal: (_) => de_Goal(_, context),
|
|
633
|
+
Name: __expectString,
|
|
634
|
+
Sli: (_) => de_ServiceLevelIndicator(_, context),
|
|
635
|
+
TotalBudgetSeconds: __expectInt32,
|
|
636
|
+
});
|
|
637
|
+
};
|
|
638
|
+
const de_ServiceLevelObjectiveBudgetReports = (output, context) => {
|
|
639
|
+
const retVal = (output || [])
|
|
640
|
+
.filter((e) => e != null)
|
|
641
|
+
.map((entry) => {
|
|
642
|
+
return de_ServiceLevelObjectiveBudgetReport(entry, context);
|
|
643
|
+
});
|
|
644
|
+
return retVal;
|
|
645
|
+
};
|
|
646
|
+
const de_ServiceLevelObjectiveSummaries = (output, context) => {
|
|
647
|
+
const retVal = (output || [])
|
|
648
|
+
.filter((e) => e != null)
|
|
649
|
+
.map((entry) => {
|
|
650
|
+
return de_ServiceLevelObjectiveSummary(entry, context);
|
|
651
|
+
});
|
|
652
|
+
return retVal;
|
|
653
|
+
};
|
|
654
|
+
const de_ServiceLevelObjectiveSummary = (output, context) => {
|
|
655
|
+
return take(output, {
|
|
656
|
+
Arn: __expectString,
|
|
657
|
+
CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
658
|
+
KeyAttributes: _json,
|
|
659
|
+
Name: __expectString,
|
|
660
|
+
OperationName: __expectString,
|
|
661
|
+
});
|
|
662
|
+
};
|
|
663
|
+
const deserializeMetadata = (output) => ({
|
|
664
|
+
httpStatusCode: output.statusCode,
|
|
665
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
666
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
667
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
668
|
+
});
|
|
669
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
670
|
+
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
671
|
+
value !== null &&
|
|
672
|
+
value !== "" &&
|
|
673
|
+
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
674
|
+
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
675
|
+
const _ET = "EndTime";
|
|
676
|
+
const _MR = "MaxResults";
|
|
677
|
+
const _NT = "NextToken";
|
|
678
|
+
const _ON = "OperationName";
|
|
679
|
+
const _RA = "ResourceArn";
|
|
680
|
+
const _ST = "StartTime";
|