@aws-sdk/client-billing 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 +494 -613
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/BillingClient.js +2 -0
- package/dist-es/commands/AssociateSourceViewsCommand.js +3 -9
- package/dist-es/commands/CreateBillingViewCommand.js +3 -10
- package/dist-es/commands/DeleteBillingViewCommand.js +3 -9
- package/dist-es/commands/DisassociateSourceViewsCommand.js +3 -9
- package/dist-es/commands/GetBillingViewCommand.js +3 -10
- package/dist-es/commands/GetResourcePolicyCommand.js +3 -9
- package/dist-es/commands/ListBillingViewsCommand.js +3 -10
- package/dist-es/commands/ListSourceViewsForBillingViewCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateBillingViewCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -31
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +451 -0
- package/dist-types/BillingClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -24
- 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 +68 -0
- package/dist-types/ts3.4/BillingClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -18
- 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 +74 -0
- package/package.json +5 -6
- package/dist-es/protocols/Aws_json1_0.js +0 -473
- package/dist-types/protocols/Aws_json1_0.d.ts +0 -110
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +0 -149
|
@@ -37,6 +37,10 @@ export declare const getRuntimeConfig: (config: BillingClientConfig) => {
|
|
|
37
37
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
38
38
|
logger: import("@smithy/types").Logger;
|
|
39
39
|
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
40
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
41
|
+
import("@smithy/types").HttpRequest,
|
|
42
|
+
import("@smithy/types").HttpResponse
|
|
43
|
+
>;
|
|
40
44
|
defaultsMode:
|
|
41
45
|
| import("@smithy/smithy-client").DefaultsMode
|
|
42
46
|
| import("@smithy/types").Provider<
|
|
@@ -14,6 +14,10 @@ export declare const getRuntimeConfig: (config: BillingClientConfig) => {
|
|
|
14
14
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").BillingHttpAuthSchemeProvider;
|
|
15
15
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
16
16
|
logger: import("@smithy/types").Logger;
|
|
17
|
+
protocol: import("@smithy/types").ClientProtocol<
|
|
18
|
+
import("@smithy/types").HttpRequest,
|
|
19
|
+
import("@smithy/types").HttpResponse
|
|
20
|
+
>;
|
|
17
21
|
serviceId: string;
|
|
18
22
|
urlParser: import("@smithy/types").UrlParser;
|
|
19
23
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StaticErrorSchema,
|
|
3
|
+
StaticListSchema,
|
|
4
|
+
StaticOperationSchema,
|
|
5
|
+
StaticSimpleSchema,
|
|
6
|
+
StaticStructureSchema,
|
|
7
|
+
} from "@smithy/types";
|
|
8
|
+
export declare var BillingViewDescription: StaticSimpleSchema;
|
|
9
|
+
export declare var BillingViewName: StaticSimpleSchema;
|
|
10
|
+
export declare var AccessDeniedException: StaticErrorSchema;
|
|
11
|
+
export declare var ActiveTimeRange: StaticStructureSchema;
|
|
12
|
+
export declare var AssociateSourceViewsRequest: StaticStructureSchema;
|
|
13
|
+
export declare var AssociateSourceViewsResponse: StaticStructureSchema;
|
|
14
|
+
export declare var BillingViewElement: StaticStructureSchema;
|
|
15
|
+
export declare var BillingViewHealthStatus: StaticStructureSchema;
|
|
16
|
+
export declare var BillingViewHealthStatusException: StaticErrorSchema;
|
|
17
|
+
export declare var BillingViewListElement: StaticStructureSchema;
|
|
18
|
+
export declare var ConflictException: StaticErrorSchema;
|
|
19
|
+
export declare var CreateBillingViewRequest: StaticStructureSchema;
|
|
20
|
+
export declare var CreateBillingViewResponse: StaticStructureSchema;
|
|
21
|
+
export declare var DeleteBillingViewRequest: StaticStructureSchema;
|
|
22
|
+
export declare var DeleteBillingViewResponse: StaticStructureSchema;
|
|
23
|
+
export declare var DimensionValues: StaticStructureSchema;
|
|
24
|
+
export declare var DisassociateSourceViewsRequest: StaticStructureSchema;
|
|
25
|
+
export declare var DisassociateSourceViewsResponse: StaticStructureSchema;
|
|
26
|
+
export declare var Expression: StaticStructureSchema;
|
|
27
|
+
export declare var GetBillingViewRequest: StaticStructureSchema;
|
|
28
|
+
export declare var GetBillingViewResponse: StaticStructureSchema;
|
|
29
|
+
export declare var GetResourcePolicyRequest: StaticStructureSchema;
|
|
30
|
+
export declare var GetResourcePolicyResponse: StaticStructureSchema;
|
|
31
|
+
export declare var InternalServerException: StaticErrorSchema;
|
|
32
|
+
export declare var ListBillingViewsRequest: StaticStructureSchema;
|
|
33
|
+
export declare var ListBillingViewsResponse: StaticStructureSchema;
|
|
34
|
+
export declare var ListSourceViewsForBillingViewRequest: StaticStructureSchema;
|
|
35
|
+
export declare var ListSourceViewsForBillingViewResponse: StaticStructureSchema;
|
|
36
|
+
export declare var ListTagsForResourceRequest: StaticStructureSchema;
|
|
37
|
+
export declare var ListTagsForResourceResponse: StaticStructureSchema;
|
|
38
|
+
export declare var ResourceNotFoundException: StaticErrorSchema;
|
|
39
|
+
export declare var ResourceTag: StaticStructureSchema;
|
|
40
|
+
export declare var ServiceQuotaExceededException: StaticErrorSchema;
|
|
41
|
+
export declare var TagResourceRequest: StaticStructureSchema;
|
|
42
|
+
export declare var TagResourceResponse: StaticStructureSchema;
|
|
43
|
+
export declare var TagValues: StaticStructureSchema;
|
|
44
|
+
export declare var ThrottlingException: StaticErrorSchema;
|
|
45
|
+
export declare var TimeRange: StaticStructureSchema;
|
|
46
|
+
export declare var UntagResourceRequest: StaticStructureSchema;
|
|
47
|
+
export declare var UntagResourceResponse: StaticStructureSchema;
|
|
48
|
+
export declare var UpdateBillingViewRequest: StaticStructureSchema;
|
|
49
|
+
export declare var UpdateBillingViewResponse: StaticStructureSchema;
|
|
50
|
+
export declare var ValidationException: StaticErrorSchema;
|
|
51
|
+
export declare var ValidationExceptionField: StaticStructureSchema;
|
|
52
|
+
export declare var __Unit: "unit";
|
|
53
|
+
export declare var BillingServiceException: StaticErrorSchema;
|
|
54
|
+
export declare var BillingViewArnList: number;
|
|
55
|
+
export declare var BillingViewList: StaticListSchema;
|
|
56
|
+
export declare var BillingViewSourceViewsList: number;
|
|
57
|
+
export declare var BillingViewStatusReasons: number;
|
|
58
|
+
export declare var BillingViewTypeList: number;
|
|
59
|
+
export declare var ResourceTagKeyList: number;
|
|
60
|
+
export declare var ResourceTagList: StaticListSchema;
|
|
61
|
+
export declare var ValidationExceptionFieldList: StaticListSchema;
|
|
62
|
+
export declare var Values: number;
|
|
63
|
+
export declare var AssociateSourceViews: StaticOperationSchema;
|
|
64
|
+
export declare var CreateBillingView: StaticOperationSchema;
|
|
65
|
+
export declare var DeleteBillingView: StaticOperationSchema;
|
|
66
|
+
export declare var DisassociateSourceViews: StaticOperationSchema;
|
|
67
|
+
export declare var GetBillingView: StaticOperationSchema;
|
|
68
|
+
export declare var GetResourcePolicy: StaticOperationSchema;
|
|
69
|
+
export declare var ListBillingViews: StaticOperationSchema;
|
|
70
|
+
export declare var ListSourceViewsForBillingView: StaticOperationSchema;
|
|
71
|
+
export declare var ListTagsForResource: StaticOperationSchema;
|
|
72
|
+
export declare var TagResource: StaticOperationSchema;
|
|
73
|
+
export declare var UntagResource: StaticOperationSchema;
|
|
74
|
+
export declare var UpdateBillingView: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-billing",
|
|
3
3
|
"description": "AWS SDK for JavaScript Billing 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-billing",
|
|
@@ -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,473 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { BillingServiceException as __BaseException } from "../models/BillingServiceException";
|
|
6
|
-
import { AccessDeniedException, BillingViewHealthStatusException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
7
|
-
export const se_AssociateSourceViewsCommand = async (input, context) => {
|
|
8
|
-
const headers = sharedHeaders("AssociateSourceViews");
|
|
9
|
-
let body;
|
|
10
|
-
body = JSON.stringify(_json(input));
|
|
11
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
12
|
-
};
|
|
13
|
-
export const se_CreateBillingViewCommand = async (input, context) => {
|
|
14
|
-
const headers = sharedHeaders("CreateBillingView");
|
|
15
|
-
let body;
|
|
16
|
-
body = JSON.stringify(se_CreateBillingViewRequest(input, context));
|
|
17
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
18
|
-
};
|
|
19
|
-
export const se_DeleteBillingViewCommand = async (input, context) => {
|
|
20
|
-
const headers = sharedHeaders("DeleteBillingView");
|
|
21
|
-
let body;
|
|
22
|
-
body = JSON.stringify(_json(input));
|
|
23
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
24
|
-
};
|
|
25
|
-
export const se_DisassociateSourceViewsCommand = async (input, context) => {
|
|
26
|
-
const headers = sharedHeaders("DisassociateSourceViews");
|
|
27
|
-
let body;
|
|
28
|
-
body = JSON.stringify(_json(input));
|
|
29
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
30
|
-
};
|
|
31
|
-
export const se_GetBillingViewCommand = async (input, context) => {
|
|
32
|
-
const headers = sharedHeaders("GetBillingView");
|
|
33
|
-
let body;
|
|
34
|
-
body = JSON.stringify(_json(input));
|
|
35
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
|
-
};
|
|
37
|
-
export const se_GetResourcePolicyCommand = async (input, context) => {
|
|
38
|
-
const headers = sharedHeaders("GetResourcePolicy");
|
|
39
|
-
let body;
|
|
40
|
-
body = JSON.stringify(_json(input));
|
|
41
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
42
|
-
};
|
|
43
|
-
export const se_ListBillingViewsCommand = async (input, context) => {
|
|
44
|
-
const headers = sharedHeaders("ListBillingViews");
|
|
45
|
-
let body;
|
|
46
|
-
body = JSON.stringify(se_ListBillingViewsRequest(input, context));
|
|
47
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
|
-
};
|
|
49
|
-
export const se_ListSourceViewsForBillingViewCommand = async (input, context) => {
|
|
50
|
-
const headers = sharedHeaders("ListSourceViewsForBillingView");
|
|
51
|
-
let body;
|
|
52
|
-
body = JSON.stringify(_json(input));
|
|
53
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
54
|
-
};
|
|
55
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
56
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
57
|
-
let body;
|
|
58
|
-
body = JSON.stringify(_json(input));
|
|
59
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
60
|
-
};
|
|
61
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
62
|
-
const headers = sharedHeaders("TagResource");
|
|
63
|
-
let body;
|
|
64
|
-
body = JSON.stringify(_json(input));
|
|
65
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
|
-
};
|
|
67
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
68
|
-
const headers = sharedHeaders("UntagResource");
|
|
69
|
-
let body;
|
|
70
|
-
body = JSON.stringify(_json(input));
|
|
71
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
72
|
-
};
|
|
73
|
-
export const se_UpdateBillingViewCommand = async (input, context) => {
|
|
74
|
-
const headers = sharedHeaders("UpdateBillingView");
|
|
75
|
-
let body;
|
|
76
|
-
body = JSON.stringify(se_UpdateBillingViewRequest(input, context));
|
|
77
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
|
-
};
|
|
79
|
-
export const de_AssociateSourceViewsCommand = async (output, context) => {
|
|
80
|
-
if (output.statusCode >= 300) {
|
|
81
|
-
return de_CommandError(output, context);
|
|
82
|
-
}
|
|
83
|
-
const data = await parseBody(output.body, context);
|
|
84
|
-
let contents = {};
|
|
85
|
-
contents = _json(data);
|
|
86
|
-
const response = {
|
|
87
|
-
$metadata: deserializeMetadata(output),
|
|
88
|
-
...contents,
|
|
89
|
-
};
|
|
90
|
-
return response;
|
|
91
|
-
};
|
|
92
|
-
export const de_CreateBillingViewCommand = async (output, context) => {
|
|
93
|
-
if (output.statusCode >= 300) {
|
|
94
|
-
return de_CommandError(output, context);
|
|
95
|
-
}
|
|
96
|
-
const data = await parseBody(output.body, context);
|
|
97
|
-
let contents = {};
|
|
98
|
-
contents = de_CreateBillingViewResponse(data, context);
|
|
99
|
-
const response = {
|
|
100
|
-
$metadata: deserializeMetadata(output),
|
|
101
|
-
...contents,
|
|
102
|
-
};
|
|
103
|
-
return response;
|
|
104
|
-
};
|
|
105
|
-
export const de_DeleteBillingViewCommand = async (output, context) => {
|
|
106
|
-
if (output.statusCode >= 300) {
|
|
107
|
-
return de_CommandError(output, context);
|
|
108
|
-
}
|
|
109
|
-
const data = await parseBody(output.body, context);
|
|
110
|
-
let contents = {};
|
|
111
|
-
contents = _json(data);
|
|
112
|
-
const response = {
|
|
113
|
-
$metadata: deserializeMetadata(output),
|
|
114
|
-
...contents,
|
|
115
|
-
};
|
|
116
|
-
return response;
|
|
117
|
-
};
|
|
118
|
-
export const de_DisassociateSourceViewsCommand = async (output, context) => {
|
|
119
|
-
if (output.statusCode >= 300) {
|
|
120
|
-
return de_CommandError(output, context);
|
|
121
|
-
}
|
|
122
|
-
const data = await parseBody(output.body, context);
|
|
123
|
-
let contents = {};
|
|
124
|
-
contents = _json(data);
|
|
125
|
-
const response = {
|
|
126
|
-
$metadata: deserializeMetadata(output),
|
|
127
|
-
...contents,
|
|
128
|
-
};
|
|
129
|
-
return response;
|
|
130
|
-
};
|
|
131
|
-
export const de_GetBillingViewCommand = async (output, context) => {
|
|
132
|
-
if (output.statusCode >= 300) {
|
|
133
|
-
return de_CommandError(output, context);
|
|
134
|
-
}
|
|
135
|
-
const data = await parseBody(output.body, context);
|
|
136
|
-
let contents = {};
|
|
137
|
-
contents = de_GetBillingViewResponse(data, context);
|
|
138
|
-
const response = {
|
|
139
|
-
$metadata: deserializeMetadata(output),
|
|
140
|
-
...contents,
|
|
141
|
-
};
|
|
142
|
-
return response;
|
|
143
|
-
};
|
|
144
|
-
export const de_GetResourcePolicyCommand = async (output, context) => {
|
|
145
|
-
if (output.statusCode >= 300) {
|
|
146
|
-
return de_CommandError(output, context);
|
|
147
|
-
}
|
|
148
|
-
const data = await parseBody(output.body, context);
|
|
149
|
-
let contents = {};
|
|
150
|
-
contents = _json(data);
|
|
151
|
-
const response = {
|
|
152
|
-
$metadata: deserializeMetadata(output),
|
|
153
|
-
...contents,
|
|
154
|
-
};
|
|
155
|
-
return response;
|
|
156
|
-
};
|
|
157
|
-
export const de_ListBillingViewsCommand = async (output, context) => {
|
|
158
|
-
if (output.statusCode >= 300) {
|
|
159
|
-
return de_CommandError(output, context);
|
|
160
|
-
}
|
|
161
|
-
const data = await parseBody(output.body, context);
|
|
162
|
-
let contents = {};
|
|
163
|
-
contents = _json(data);
|
|
164
|
-
const response = {
|
|
165
|
-
$metadata: deserializeMetadata(output),
|
|
166
|
-
...contents,
|
|
167
|
-
};
|
|
168
|
-
return response;
|
|
169
|
-
};
|
|
170
|
-
export const de_ListSourceViewsForBillingViewCommand = async (output, context) => {
|
|
171
|
-
if (output.statusCode >= 300) {
|
|
172
|
-
return de_CommandError(output, context);
|
|
173
|
-
}
|
|
174
|
-
const data = await parseBody(output.body, context);
|
|
175
|
-
let contents = {};
|
|
176
|
-
contents = _json(data);
|
|
177
|
-
const response = {
|
|
178
|
-
$metadata: deserializeMetadata(output),
|
|
179
|
-
...contents,
|
|
180
|
-
};
|
|
181
|
-
return response;
|
|
182
|
-
};
|
|
183
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
184
|
-
if (output.statusCode >= 300) {
|
|
185
|
-
return de_CommandError(output, context);
|
|
186
|
-
}
|
|
187
|
-
const data = await parseBody(output.body, context);
|
|
188
|
-
let contents = {};
|
|
189
|
-
contents = _json(data);
|
|
190
|
-
const response = {
|
|
191
|
-
$metadata: deserializeMetadata(output),
|
|
192
|
-
...contents,
|
|
193
|
-
};
|
|
194
|
-
return response;
|
|
195
|
-
};
|
|
196
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
197
|
-
if (output.statusCode >= 300) {
|
|
198
|
-
return de_CommandError(output, context);
|
|
199
|
-
}
|
|
200
|
-
const data = await parseBody(output.body, context);
|
|
201
|
-
let contents = {};
|
|
202
|
-
contents = _json(data);
|
|
203
|
-
const response = {
|
|
204
|
-
$metadata: deserializeMetadata(output),
|
|
205
|
-
...contents,
|
|
206
|
-
};
|
|
207
|
-
return response;
|
|
208
|
-
};
|
|
209
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
210
|
-
if (output.statusCode >= 300) {
|
|
211
|
-
return de_CommandError(output, context);
|
|
212
|
-
}
|
|
213
|
-
const data = await parseBody(output.body, context);
|
|
214
|
-
let contents = {};
|
|
215
|
-
contents = _json(data);
|
|
216
|
-
const response = {
|
|
217
|
-
$metadata: deserializeMetadata(output),
|
|
218
|
-
...contents,
|
|
219
|
-
};
|
|
220
|
-
return response;
|
|
221
|
-
};
|
|
222
|
-
export const de_UpdateBillingViewCommand = async (output, context) => {
|
|
223
|
-
if (output.statusCode >= 300) {
|
|
224
|
-
return de_CommandError(output, context);
|
|
225
|
-
}
|
|
226
|
-
const data = await parseBody(output.body, context);
|
|
227
|
-
let contents = {};
|
|
228
|
-
contents = de_UpdateBillingViewResponse(data, context);
|
|
229
|
-
const response = {
|
|
230
|
-
$metadata: deserializeMetadata(output),
|
|
231
|
-
...contents,
|
|
232
|
-
};
|
|
233
|
-
return response;
|
|
234
|
-
};
|
|
235
|
-
const de_CommandError = async (output, context) => {
|
|
236
|
-
const parsedOutput = {
|
|
237
|
-
...output,
|
|
238
|
-
body: await parseErrorBody(output.body, context),
|
|
239
|
-
};
|
|
240
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
241
|
-
switch (errorCode) {
|
|
242
|
-
case "AccessDeniedException":
|
|
243
|
-
case "com.amazonaws.billing#AccessDeniedException":
|
|
244
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
245
|
-
case "BillingViewHealthStatusException":
|
|
246
|
-
case "com.amazonaws.billing#BillingViewHealthStatusException":
|
|
247
|
-
throw await de_BillingViewHealthStatusExceptionRes(parsedOutput, context);
|
|
248
|
-
case "ConflictException":
|
|
249
|
-
case "com.amazonaws.billing#ConflictException":
|
|
250
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
251
|
-
case "InternalServerException":
|
|
252
|
-
case "com.amazonaws.billing#InternalServerException":
|
|
253
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
254
|
-
case "ResourceNotFoundException":
|
|
255
|
-
case "com.amazonaws.billing#ResourceNotFoundException":
|
|
256
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
257
|
-
case "ServiceQuotaExceededException":
|
|
258
|
-
case "com.amazonaws.billing#ServiceQuotaExceededException":
|
|
259
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
260
|
-
case "ThrottlingException":
|
|
261
|
-
case "com.amazonaws.billing#ThrottlingException":
|
|
262
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
263
|
-
case "ValidationException":
|
|
264
|
-
case "com.amazonaws.billing#ValidationException":
|
|
265
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
266
|
-
default:
|
|
267
|
-
const parsedBody = parsedOutput.body;
|
|
268
|
-
return throwDefaultError({
|
|
269
|
-
output,
|
|
270
|
-
parsedBody,
|
|
271
|
-
errorCode,
|
|
272
|
-
});
|
|
273
|
-
}
|
|
274
|
-
};
|
|
275
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
276
|
-
const body = parsedOutput.body;
|
|
277
|
-
const deserialized = _json(body);
|
|
278
|
-
const exception = new AccessDeniedException({
|
|
279
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
280
|
-
...deserialized,
|
|
281
|
-
});
|
|
282
|
-
return __decorateServiceException(exception, body);
|
|
283
|
-
};
|
|
284
|
-
const de_BillingViewHealthStatusExceptionRes = async (parsedOutput, context) => {
|
|
285
|
-
const body = parsedOutput.body;
|
|
286
|
-
const deserialized = _json(body);
|
|
287
|
-
const exception = new BillingViewHealthStatusException({
|
|
288
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
289
|
-
...deserialized,
|
|
290
|
-
});
|
|
291
|
-
return __decorateServiceException(exception, body);
|
|
292
|
-
};
|
|
293
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
294
|
-
const body = parsedOutput.body;
|
|
295
|
-
const deserialized = _json(body);
|
|
296
|
-
const exception = new ConflictException({
|
|
297
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
298
|
-
...deserialized,
|
|
299
|
-
});
|
|
300
|
-
return __decorateServiceException(exception, body);
|
|
301
|
-
};
|
|
302
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
303
|
-
const body = parsedOutput.body;
|
|
304
|
-
const deserialized = _json(body);
|
|
305
|
-
const exception = new InternalServerException({
|
|
306
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
307
|
-
...deserialized,
|
|
308
|
-
});
|
|
309
|
-
return __decorateServiceException(exception, body);
|
|
310
|
-
};
|
|
311
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
312
|
-
const body = parsedOutput.body;
|
|
313
|
-
const deserialized = _json(body);
|
|
314
|
-
const exception = new ResourceNotFoundException({
|
|
315
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
316
|
-
...deserialized,
|
|
317
|
-
});
|
|
318
|
-
return __decorateServiceException(exception, body);
|
|
319
|
-
};
|
|
320
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
321
|
-
const body = parsedOutput.body;
|
|
322
|
-
const deserialized = _json(body);
|
|
323
|
-
const exception = new ServiceQuotaExceededException({
|
|
324
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
325
|
-
...deserialized,
|
|
326
|
-
});
|
|
327
|
-
return __decorateServiceException(exception, body);
|
|
328
|
-
};
|
|
329
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
330
|
-
const body = parsedOutput.body;
|
|
331
|
-
const deserialized = _json(body);
|
|
332
|
-
const exception = new ThrottlingException({
|
|
333
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
334
|
-
...deserialized,
|
|
335
|
-
});
|
|
336
|
-
return __decorateServiceException(exception, body);
|
|
337
|
-
};
|
|
338
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
339
|
-
const body = parsedOutput.body;
|
|
340
|
-
const deserialized = _json(body);
|
|
341
|
-
const exception = new ValidationException({
|
|
342
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
343
|
-
...deserialized,
|
|
344
|
-
});
|
|
345
|
-
return __decorateServiceException(exception, body);
|
|
346
|
-
};
|
|
347
|
-
const se_ActiveTimeRange = (input, context) => {
|
|
348
|
-
return take(input, {
|
|
349
|
-
activeAfterInclusive: (_) => _.getTime() / 1_000,
|
|
350
|
-
activeBeforeInclusive: (_) => _.getTime() / 1_000,
|
|
351
|
-
});
|
|
352
|
-
};
|
|
353
|
-
const se_CreateBillingViewRequest = (input, context) => {
|
|
354
|
-
return take(input, {
|
|
355
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
356
|
-
dataFilterExpression: (_) => se_Expression(_, context),
|
|
357
|
-
description: [],
|
|
358
|
-
name: [],
|
|
359
|
-
resourceTags: _json,
|
|
360
|
-
sourceViews: _json,
|
|
361
|
-
});
|
|
362
|
-
};
|
|
363
|
-
const se_Expression = (input, context) => {
|
|
364
|
-
return take(input, {
|
|
365
|
-
dimensions: _json,
|
|
366
|
-
tags: _json,
|
|
367
|
-
timeRange: (_) => se_TimeRange(_, context),
|
|
368
|
-
});
|
|
369
|
-
};
|
|
370
|
-
const se_ListBillingViewsRequest = (input, context) => {
|
|
371
|
-
return take(input, {
|
|
372
|
-
activeTimeRange: (_) => se_ActiveTimeRange(_, context),
|
|
373
|
-
arns: _json,
|
|
374
|
-
billingViewTypes: _json,
|
|
375
|
-
maxResults: [],
|
|
376
|
-
nextToken: [],
|
|
377
|
-
ownerAccountId: [],
|
|
378
|
-
sourceAccountId: [],
|
|
379
|
-
});
|
|
380
|
-
};
|
|
381
|
-
const se_TimeRange = (input, context) => {
|
|
382
|
-
return take(input, {
|
|
383
|
-
beginDateInclusive: (_) => _.getTime() / 1_000,
|
|
384
|
-
endDateInclusive: (_) => _.getTime() / 1_000,
|
|
385
|
-
});
|
|
386
|
-
};
|
|
387
|
-
const se_UpdateBillingViewRequest = (input, context) => {
|
|
388
|
-
return take(input, {
|
|
389
|
-
arn: [],
|
|
390
|
-
dataFilterExpression: (_) => se_Expression(_, context),
|
|
391
|
-
description: [],
|
|
392
|
-
name: [],
|
|
393
|
-
});
|
|
394
|
-
};
|
|
395
|
-
const de_BillingViewElement = (output, context) => {
|
|
396
|
-
return take(output, {
|
|
397
|
-
arn: __expectString,
|
|
398
|
-
billingViewType: __expectString,
|
|
399
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
400
|
-
dataFilterExpression: (_) => de_Expression(_, context),
|
|
401
|
-
derivedViewCount: __expectInt32,
|
|
402
|
-
description: __expectString,
|
|
403
|
-
healthStatus: _json,
|
|
404
|
-
name: __expectString,
|
|
405
|
-
ownerAccountId: __expectString,
|
|
406
|
-
sourceAccountId: __expectString,
|
|
407
|
-
sourceViewCount: __expectInt32,
|
|
408
|
-
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
409
|
-
viewDefinitionLastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
410
|
-
});
|
|
411
|
-
};
|
|
412
|
-
const de_CreateBillingViewResponse = (output, context) => {
|
|
413
|
-
return take(output, {
|
|
414
|
-
arn: __expectString,
|
|
415
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
416
|
-
});
|
|
417
|
-
};
|
|
418
|
-
const de_Expression = (output, context) => {
|
|
419
|
-
return take(output, {
|
|
420
|
-
dimensions: _json,
|
|
421
|
-
tags: _json,
|
|
422
|
-
timeRange: (_) => de_TimeRange(_, context),
|
|
423
|
-
});
|
|
424
|
-
};
|
|
425
|
-
const de_GetBillingViewResponse = (output, context) => {
|
|
426
|
-
return take(output, {
|
|
427
|
-
billingView: (_) => de_BillingViewElement(_, context),
|
|
428
|
-
});
|
|
429
|
-
};
|
|
430
|
-
const de_TimeRange = (output, context) => {
|
|
431
|
-
return take(output, {
|
|
432
|
-
beginDateInclusive: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
433
|
-
endDateInclusive: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
434
|
-
});
|
|
435
|
-
};
|
|
436
|
-
const de_UpdateBillingViewResponse = (output, context) => {
|
|
437
|
-
return take(output, {
|
|
438
|
-
arn: __expectString,
|
|
439
|
-
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
440
|
-
});
|
|
441
|
-
};
|
|
442
|
-
const deserializeMetadata = (output) => ({
|
|
443
|
-
httpStatusCode: output.statusCode,
|
|
444
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
445
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
446
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
447
|
-
});
|
|
448
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
449
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
450
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
451
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
452
|
-
const contents = {
|
|
453
|
-
protocol,
|
|
454
|
-
hostname,
|
|
455
|
-
port,
|
|
456
|
-
method: "POST",
|
|
457
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
458
|
-
headers,
|
|
459
|
-
};
|
|
460
|
-
if (resolvedHostname !== undefined) {
|
|
461
|
-
contents.hostname = resolvedHostname;
|
|
462
|
-
}
|
|
463
|
-
if (body !== undefined) {
|
|
464
|
-
contents.body = body;
|
|
465
|
-
}
|
|
466
|
-
return new __HttpRequest(contents);
|
|
467
|
-
};
|
|
468
|
-
function sharedHeaders(operation) {
|
|
469
|
-
return {
|
|
470
|
-
"content-type": "application/x-amz-json-1.0",
|
|
471
|
-
"x-amz-target": `AWSBilling.${operation}`,
|
|
472
|
-
};
|
|
473
|
-
}
|