@aws-sdk/client-mediastore 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 +454 -719
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/MediaStoreClient.js +2 -0
- package/dist-es/commands/CreateContainerCommand.js +3 -9
- package/dist-es/commands/DeleteContainerCommand.js +3 -9
- package/dist-es/commands/DeleteContainerPolicyCommand.js +3 -9
- package/dist-es/commands/DeleteCorsPolicyCommand.js +3 -9
- package/dist-es/commands/DeleteLifecyclePolicyCommand.js +3 -9
- package/dist-es/commands/DeleteMetricPolicyCommand.js +3 -9
- package/dist-es/commands/DescribeContainerCommand.js +3 -9
- package/dist-es/commands/GetContainerPolicyCommand.js +3 -9
- package/dist-es/commands/GetCorsPolicyCommand.js +3 -9
- package/dist-es/commands/GetLifecyclePolicyCommand.js +3 -9
- package/dist-es/commands/GetMetricPolicyCommand.js +3 -9
- package/dist-es/commands/ListContainersCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/PutContainerPolicyCommand.js +3 -9
- package/dist-es/commands/PutCorsPolicyCommand.js +3 -9
- package/dist-es/commands/PutLifecyclePolicyCommand.js +3 -9
- package/dist-es/commands/PutMetricPolicyCommand.js +3 -9
- package/dist-es/commands/StartAccessLoggingCommand.js +3 -9
- package/dist-es/commands/StopAccessLoggingCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +398 -0
- package/dist-types/MediaStoreClient.d.ts +10 -1
- 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 +86 -0
- package/dist-types/ts3.4/MediaStoreClient.d.ts +4 -0
- 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 +91 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_1.js +0 -558
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -191
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -257
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StaticErrorSchema,
|
|
3
|
+
StaticListSchema,
|
|
4
|
+
StaticOperationSchema,
|
|
5
|
+
StaticStructureSchema,
|
|
6
|
+
} from "@smithy/types";
|
|
7
|
+
export declare var Container: StaticStructureSchema;
|
|
8
|
+
export declare var ContainerInUseException: StaticErrorSchema;
|
|
9
|
+
export declare var ContainerNotFoundException: StaticErrorSchema;
|
|
10
|
+
export declare var CorsPolicyNotFoundException: StaticErrorSchema;
|
|
11
|
+
export declare var CorsRule: StaticStructureSchema;
|
|
12
|
+
export declare var CreateContainerInput: StaticStructureSchema;
|
|
13
|
+
export declare var CreateContainerOutput: StaticStructureSchema;
|
|
14
|
+
export declare var DeleteContainerInput: StaticStructureSchema;
|
|
15
|
+
export declare var DeleteContainerOutput: StaticStructureSchema;
|
|
16
|
+
export declare var DeleteContainerPolicyInput: StaticStructureSchema;
|
|
17
|
+
export declare var DeleteContainerPolicyOutput: StaticStructureSchema;
|
|
18
|
+
export declare var DeleteCorsPolicyInput: StaticStructureSchema;
|
|
19
|
+
export declare var DeleteCorsPolicyOutput: StaticStructureSchema;
|
|
20
|
+
export declare var DeleteLifecyclePolicyInput: StaticStructureSchema;
|
|
21
|
+
export declare var DeleteLifecyclePolicyOutput: StaticStructureSchema;
|
|
22
|
+
export declare var DeleteMetricPolicyInput: StaticStructureSchema;
|
|
23
|
+
export declare var DeleteMetricPolicyOutput: StaticStructureSchema;
|
|
24
|
+
export declare var DescribeContainerInput: StaticStructureSchema;
|
|
25
|
+
export declare var DescribeContainerOutput: StaticStructureSchema;
|
|
26
|
+
export declare var GetContainerPolicyInput: StaticStructureSchema;
|
|
27
|
+
export declare var GetContainerPolicyOutput: StaticStructureSchema;
|
|
28
|
+
export declare var GetCorsPolicyInput: StaticStructureSchema;
|
|
29
|
+
export declare var GetCorsPolicyOutput: StaticStructureSchema;
|
|
30
|
+
export declare var GetLifecyclePolicyInput: StaticStructureSchema;
|
|
31
|
+
export declare var GetLifecyclePolicyOutput: StaticStructureSchema;
|
|
32
|
+
export declare var GetMetricPolicyInput: StaticStructureSchema;
|
|
33
|
+
export declare var GetMetricPolicyOutput: StaticStructureSchema;
|
|
34
|
+
export declare var InternalServerError: StaticErrorSchema;
|
|
35
|
+
export declare var LimitExceededException: StaticErrorSchema;
|
|
36
|
+
export declare var ListContainersInput: StaticStructureSchema;
|
|
37
|
+
export declare var ListContainersOutput: StaticStructureSchema;
|
|
38
|
+
export declare var ListTagsForResourceInput: StaticStructureSchema;
|
|
39
|
+
export declare var ListTagsForResourceOutput: StaticStructureSchema;
|
|
40
|
+
export declare var MetricPolicy: StaticStructureSchema;
|
|
41
|
+
export declare var MetricPolicyRule: StaticStructureSchema;
|
|
42
|
+
export declare var PolicyNotFoundException: StaticErrorSchema;
|
|
43
|
+
export declare var PutContainerPolicyInput: StaticStructureSchema;
|
|
44
|
+
export declare var PutContainerPolicyOutput: StaticStructureSchema;
|
|
45
|
+
export declare var PutCorsPolicyInput: StaticStructureSchema;
|
|
46
|
+
export declare var PutCorsPolicyOutput: StaticStructureSchema;
|
|
47
|
+
export declare var PutLifecyclePolicyInput: StaticStructureSchema;
|
|
48
|
+
export declare var PutLifecyclePolicyOutput: StaticStructureSchema;
|
|
49
|
+
export declare var PutMetricPolicyInput: StaticStructureSchema;
|
|
50
|
+
export declare var PutMetricPolicyOutput: StaticStructureSchema;
|
|
51
|
+
export declare var StartAccessLoggingInput: StaticStructureSchema;
|
|
52
|
+
export declare var StartAccessLoggingOutput: StaticStructureSchema;
|
|
53
|
+
export declare var StopAccessLoggingInput: StaticStructureSchema;
|
|
54
|
+
export declare var StopAccessLoggingOutput: StaticStructureSchema;
|
|
55
|
+
export declare var Tag: StaticStructureSchema;
|
|
56
|
+
export declare var TagResourceInput: StaticStructureSchema;
|
|
57
|
+
export declare var TagResourceOutput: StaticStructureSchema;
|
|
58
|
+
export declare var UntagResourceInput: StaticStructureSchema;
|
|
59
|
+
export declare var UntagResourceOutput: StaticStructureSchema;
|
|
60
|
+
export declare var __Unit: "unit";
|
|
61
|
+
export declare var MediaStoreServiceException: StaticErrorSchema;
|
|
62
|
+
export declare var AllowedHeaders: number;
|
|
63
|
+
export declare var AllowedMethods: number;
|
|
64
|
+
export declare var AllowedOrigins: number;
|
|
65
|
+
export declare var ContainerList: StaticListSchema;
|
|
66
|
+
export declare var CorsPolicy: StaticListSchema;
|
|
67
|
+
export declare var ExposeHeaders: number;
|
|
68
|
+
export declare var MetricPolicyRules: StaticListSchema;
|
|
69
|
+
export declare var TagKeyList: number;
|
|
70
|
+
export declare var TagList: StaticListSchema;
|
|
71
|
+
export declare var CreateContainer: StaticOperationSchema;
|
|
72
|
+
export declare var DeleteContainer: StaticOperationSchema;
|
|
73
|
+
export declare var DeleteContainerPolicy: StaticOperationSchema;
|
|
74
|
+
export declare var DeleteCorsPolicy: StaticOperationSchema;
|
|
75
|
+
export declare var DeleteLifecyclePolicy: StaticOperationSchema;
|
|
76
|
+
export declare var DeleteMetricPolicy: StaticOperationSchema;
|
|
77
|
+
export declare var DescribeContainer: StaticOperationSchema;
|
|
78
|
+
export declare var GetContainerPolicy: StaticOperationSchema;
|
|
79
|
+
export declare var GetCorsPolicy: StaticOperationSchema;
|
|
80
|
+
export declare var GetLifecyclePolicy: StaticOperationSchema;
|
|
81
|
+
export declare var GetMetricPolicy: StaticOperationSchema;
|
|
82
|
+
export declare var ListContainers: StaticOperationSchema;
|
|
83
|
+
export declare var ListTagsForResource: StaticOperationSchema;
|
|
84
|
+
export declare var PutContainerPolicy: StaticOperationSchema;
|
|
85
|
+
export declare var PutCorsPolicy: StaticOperationSchema;
|
|
86
|
+
export declare var PutLifecyclePolicy: StaticOperationSchema;
|
|
87
|
+
export declare var PutMetricPolicy: StaticOperationSchema;
|
|
88
|
+
export declare var StartAccessLogging: StaticOperationSchema;
|
|
89
|
+
export declare var StopAccessLogging: StaticOperationSchema;
|
|
90
|
+
export declare var TagResource: StaticOperationSchema;
|
|
91
|
+
export declare var UntagResource: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-mediastore",
|
|
3
3
|
"description": "AWS SDK for JavaScript Mediastore 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-mediastore",
|
|
@@ -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",
|
|
@@ -1,558 +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, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { MediaStoreServiceException as __BaseException } from "../models/MediaStoreServiceException";
|
|
5
|
-
import { ContainerInUseException, ContainerNotFoundException, CorsPolicyNotFoundException, InternalServerError, LimitExceededException, PolicyNotFoundException, } from "../models/models_0";
|
|
6
|
-
export const se_CreateContainerCommand = async (input, context) => {
|
|
7
|
-
const headers = sharedHeaders("CreateContainer");
|
|
8
|
-
let body;
|
|
9
|
-
body = JSON.stringify(_json(input));
|
|
10
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
11
|
-
};
|
|
12
|
-
export const se_DeleteContainerCommand = async (input, context) => {
|
|
13
|
-
const headers = sharedHeaders("DeleteContainer");
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify(_json(input));
|
|
16
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
|
-
};
|
|
18
|
-
export const se_DeleteContainerPolicyCommand = async (input, context) => {
|
|
19
|
-
const headers = sharedHeaders("DeleteContainerPolicy");
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify(_json(input));
|
|
22
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
-
};
|
|
24
|
-
export const se_DeleteCorsPolicyCommand = async (input, context) => {
|
|
25
|
-
const headers = sharedHeaders("DeleteCorsPolicy");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify(_json(input));
|
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
-
};
|
|
30
|
-
export const se_DeleteLifecyclePolicyCommand = async (input, context) => {
|
|
31
|
-
const headers = sharedHeaders("DeleteLifecyclePolicy");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify(_json(input));
|
|
34
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
-
};
|
|
36
|
-
export const se_DeleteMetricPolicyCommand = async (input, context) => {
|
|
37
|
-
const headers = sharedHeaders("DeleteMetricPolicy");
|
|
38
|
-
let body;
|
|
39
|
-
body = JSON.stringify(_json(input));
|
|
40
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
-
};
|
|
42
|
-
export const se_DescribeContainerCommand = async (input, context) => {
|
|
43
|
-
const headers = sharedHeaders("DescribeContainer");
|
|
44
|
-
let body;
|
|
45
|
-
body = JSON.stringify(_json(input));
|
|
46
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
|
-
};
|
|
48
|
-
export const se_GetContainerPolicyCommand = async (input, context) => {
|
|
49
|
-
const headers = sharedHeaders("GetContainerPolicy");
|
|
50
|
-
let body;
|
|
51
|
-
body = JSON.stringify(_json(input));
|
|
52
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
53
|
-
};
|
|
54
|
-
export const se_GetCorsPolicyCommand = async (input, context) => {
|
|
55
|
-
const headers = sharedHeaders("GetCorsPolicy");
|
|
56
|
-
let body;
|
|
57
|
-
body = JSON.stringify(_json(input));
|
|
58
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
|
-
};
|
|
60
|
-
export const se_GetLifecyclePolicyCommand = async (input, context) => {
|
|
61
|
-
const headers = sharedHeaders("GetLifecyclePolicy");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify(_json(input));
|
|
64
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
-
};
|
|
66
|
-
export const se_GetMetricPolicyCommand = async (input, context) => {
|
|
67
|
-
const headers = sharedHeaders("GetMetricPolicy");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify(_json(input));
|
|
70
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
-
};
|
|
72
|
-
export const se_ListContainersCommand = async (input, context) => {
|
|
73
|
-
const headers = sharedHeaders("ListContainers");
|
|
74
|
-
let body;
|
|
75
|
-
body = JSON.stringify(_json(input));
|
|
76
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
-
};
|
|
78
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
79
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
80
|
-
let body;
|
|
81
|
-
body = JSON.stringify(_json(input));
|
|
82
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
|
-
};
|
|
84
|
-
export const se_PutContainerPolicyCommand = async (input, context) => {
|
|
85
|
-
const headers = sharedHeaders("PutContainerPolicy");
|
|
86
|
-
let body;
|
|
87
|
-
body = JSON.stringify(_json(input));
|
|
88
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
|
-
};
|
|
90
|
-
export const se_PutCorsPolicyCommand = async (input, context) => {
|
|
91
|
-
const headers = sharedHeaders("PutCorsPolicy");
|
|
92
|
-
let body;
|
|
93
|
-
body = JSON.stringify(_json(input));
|
|
94
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
|
-
};
|
|
96
|
-
export const se_PutLifecyclePolicyCommand = async (input, context) => {
|
|
97
|
-
const headers = sharedHeaders("PutLifecyclePolicy");
|
|
98
|
-
let body;
|
|
99
|
-
body = JSON.stringify(_json(input));
|
|
100
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
|
-
};
|
|
102
|
-
export const se_PutMetricPolicyCommand = async (input, context) => {
|
|
103
|
-
const headers = sharedHeaders("PutMetricPolicy");
|
|
104
|
-
let body;
|
|
105
|
-
body = JSON.stringify(_json(input));
|
|
106
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
|
-
};
|
|
108
|
-
export const se_StartAccessLoggingCommand = async (input, context) => {
|
|
109
|
-
const headers = sharedHeaders("StartAccessLogging");
|
|
110
|
-
let body;
|
|
111
|
-
body = JSON.stringify(_json(input));
|
|
112
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
|
-
};
|
|
114
|
-
export const se_StopAccessLoggingCommand = async (input, context) => {
|
|
115
|
-
const headers = sharedHeaders("StopAccessLogging");
|
|
116
|
-
let body;
|
|
117
|
-
body = JSON.stringify(_json(input));
|
|
118
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
|
-
};
|
|
120
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
121
|
-
const headers = sharedHeaders("TagResource");
|
|
122
|
-
let body;
|
|
123
|
-
body = JSON.stringify(_json(input));
|
|
124
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
|
-
};
|
|
126
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
127
|
-
const headers = sharedHeaders("UntagResource");
|
|
128
|
-
let body;
|
|
129
|
-
body = JSON.stringify(_json(input));
|
|
130
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
|
-
};
|
|
132
|
-
export const de_CreateContainerCommand = async (output, context) => {
|
|
133
|
-
if (output.statusCode >= 300) {
|
|
134
|
-
return de_CommandError(output, context);
|
|
135
|
-
}
|
|
136
|
-
const data = await parseBody(output.body, context);
|
|
137
|
-
let contents = {};
|
|
138
|
-
contents = de_CreateContainerOutput(data, context);
|
|
139
|
-
const response = {
|
|
140
|
-
$metadata: deserializeMetadata(output),
|
|
141
|
-
...contents,
|
|
142
|
-
};
|
|
143
|
-
return response;
|
|
144
|
-
};
|
|
145
|
-
export const de_DeleteContainerCommand = async (output, context) => {
|
|
146
|
-
if (output.statusCode >= 300) {
|
|
147
|
-
return de_CommandError(output, context);
|
|
148
|
-
}
|
|
149
|
-
const data = await parseBody(output.body, context);
|
|
150
|
-
let contents = {};
|
|
151
|
-
contents = _json(data);
|
|
152
|
-
const response = {
|
|
153
|
-
$metadata: deserializeMetadata(output),
|
|
154
|
-
...contents,
|
|
155
|
-
};
|
|
156
|
-
return response;
|
|
157
|
-
};
|
|
158
|
-
export const de_DeleteContainerPolicyCommand = async (output, context) => {
|
|
159
|
-
if (output.statusCode >= 300) {
|
|
160
|
-
return de_CommandError(output, context);
|
|
161
|
-
}
|
|
162
|
-
const data = await parseBody(output.body, context);
|
|
163
|
-
let contents = {};
|
|
164
|
-
contents = _json(data);
|
|
165
|
-
const response = {
|
|
166
|
-
$metadata: deserializeMetadata(output),
|
|
167
|
-
...contents,
|
|
168
|
-
};
|
|
169
|
-
return response;
|
|
170
|
-
};
|
|
171
|
-
export const de_DeleteCorsPolicyCommand = async (output, context) => {
|
|
172
|
-
if (output.statusCode >= 300) {
|
|
173
|
-
return de_CommandError(output, context);
|
|
174
|
-
}
|
|
175
|
-
const data = await parseBody(output.body, context);
|
|
176
|
-
let contents = {};
|
|
177
|
-
contents = _json(data);
|
|
178
|
-
const response = {
|
|
179
|
-
$metadata: deserializeMetadata(output),
|
|
180
|
-
...contents,
|
|
181
|
-
};
|
|
182
|
-
return response;
|
|
183
|
-
};
|
|
184
|
-
export const de_DeleteLifecyclePolicyCommand = async (output, context) => {
|
|
185
|
-
if (output.statusCode >= 300) {
|
|
186
|
-
return de_CommandError(output, context);
|
|
187
|
-
}
|
|
188
|
-
const data = await parseBody(output.body, context);
|
|
189
|
-
let contents = {};
|
|
190
|
-
contents = _json(data);
|
|
191
|
-
const response = {
|
|
192
|
-
$metadata: deserializeMetadata(output),
|
|
193
|
-
...contents,
|
|
194
|
-
};
|
|
195
|
-
return response;
|
|
196
|
-
};
|
|
197
|
-
export const de_DeleteMetricPolicyCommand = async (output, context) => {
|
|
198
|
-
if (output.statusCode >= 300) {
|
|
199
|
-
return de_CommandError(output, context);
|
|
200
|
-
}
|
|
201
|
-
const data = await parseBody(output.body, context);
|
|
202
|
-
let contents = {};
|
|
203
|
-
contents = _json(data);
|
|
204
|
-
const response = {
|
|
205
|
-
$metadata: deserializeMetadata(output),
|
|
206
|
-
...contents,
|
|
207
|
-
};
|
|
208
|
-
return response;
|
|
209
|
-
};
|
|
210
|
-
export const de_DescribeContainerCommand = async (output, context) => {
|
|
211
|
-
if (output.statusCode >= 300) {
|
|
212
|
-
return de_CommandError(output, context);
|
|
213
|
-
}
|
|
214
|
-
const data = await parseBody(output.body, context);
|
|
215
|
-
let contents = {};
|
|
216
|
-
contents = de_DescribeContainerOutput(data, context);
|
|
217
|
-
const response = {
|
|
218
|
-
$metadata: deserializeMetadata(output),
|
|
219
|
-
...contents,
|
|
220
|
-
};
|
|
221
|
-
return response;
|
|
222
|
-
};
|
|
223
|
-
export const de_GetContainerPolicyCommand = async (output, context) => {
|
|
224
|
-
if (output.statusCode >= 300) {
|
|
225
|
-
return de_CommandError(output, context);
|
|
226
|
-
}
|
|
227
|
-
const data = await parseBody(output.body, context);
|
|
228
|
-
let contents = {};
|
|
229
|
-
contents = _json(data);
|
|
230
|
-
const response = {
|
|
231
|
-
$metadata: deserializeMetadata(output),
|
|
232
|
-
...contents,
|
|
233
|
-
};
|
|
234
|
-
return response;
|
|
235
|
-
};
|
|
236
|
-
export const de_GetCorsPolicyCommand = async (output, context) => {
|
|
237
|
-
if (output.statusCode >= 300) {
|
|
238
|
-
return de_CommandError(output, context);
|
|
239
|
-
}
|
|
240
|
-
const data = await parseBody(output.body, context);
|
|
241
|
-
let contents = {};
|
|
242
|
-
contents = _json(data);
|
|
243
|
-
const response = {
|
|
244
|
-
$metadata: deserializeMetadata(output),
|
|
245
|
-
...contents,
|
|
246
|
-
};
|
|
247
|
-
return response;
|
|
248
|
-
};
|
|
249
|
-
export const de_GetLifecyclePolicyCommand = async (output, context) => {
|
|
250
|
-
if (output.statusCode >= 300) {
|
|
251
|
-
return de_CommandError(output, context);
|
|
252
|
-
}
|
|
253
|
-
const data = await parseBody(output.body, context);
|
|
254
|
-
let contents = {};
|
|
255
|
-
contents = _json(data);
|
|
256
|
-
const response = {
|
|
257
|
-
$metadata: deserializeMetadata(output),
|
|
258
|
-
...contents,
|
|
259
|
-
};
|
|
260
|
-
return response;
|
|
261
|
-
};
|
|
262
|
-
export const de_GetMetricPolicyCommand = async (output, context) => {
|
|
263
|
-
if (output.statusCode >= 300) {
|
|
264
|
-
return de_CommandError(output, context);
|
|
265
|
-
}
|
|
266
|
-
const data = await parseBody(output.body, context);
|
|
267
|
-
let contents = {};
|
|
268
|
-
contents = _json(data);
|
|
269
|
-
const response = {
|
|
270
|
-
$metadata: deserializeMetadata(output),
|
|
271
|
-
...contents,
|
|
272
|
-
};
|
|
273
|
-
return response;
|
|
274
|
-
};
|
|
275
|
-
export const de_ListContainersCommand = async (output, context) => {
|
|
276
|
-
if (output.statusCode >= 300) {
|
|
277
|
-
return de_CommandError(output, context);
|
|
278
|
-
}
|
|
279
|
-
const data = await parseBody(output.body, context);
|
|
280
|
-
let contents = {};
|
|
281
|
-
contents = de_ListContainersOutput(data, context);
|
|
282
|
-
const response = {
|
|
283
|
-
$metadata: deserializeMetadata(output),
|
|
284
|
-
...contents,
|
|
285
|
-
};
|
|
286
|
-
return response;
|
|
287
|
-
};
|
|
288
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
289
|
-
if (output.statusCode >= 300) {
|
|
290
|
-
return de_CommandError(output, context);
|
|
291
|
-
}
|
|
292
|
-
const data = await parseBody(output.body, context);
|
|
293
|
-
let contents = {};
|
|
294
|
-
contents = _json(data);
|
|
295
|
-
const response = {
|
|
296
|
-
$metadata: deserializeMetadata(output),
|
|
297
|
-
...contents,
|
|
298
|
-
};
|
|
299
|
-
return response;
|
|
300
|
-
};
|
|
301
|
-
export const de_PutContainerPolicyCommand = async (output, context) => {
|
|
302
|
-
if (output.statusCode >= 300) {
|
|
303
|
-
return de_CommandError(output, context);
|
|
304
|
-
}
|
|
305
|
-
const data = await parseBody(output.body, context);
|
|
306
|
-
let contents = {};
|
|
307
|
-
contents = _json(data);
|
|
308
|
-
const response = {
|
|
309
|
-
$metadata: deserializeMetadata(output),
|
|
310
|
-
...contents,
|
|
311
|
-
};
|
|
312
|
-
return response;
|
|
313
|
-
};
|
|
314
|
-
export const de_PutCorsPolicyCommand = async (output, context) => {
|
|
315
|
-
if (output.statusCode >= 300) {
|
|
316
|
-
return de_CommandError(output, context);
|
|
317
|
-
}
|
|
318
|
-
const data = await parseBody(output.body, context);
|
|
319
|
-
let contents = {};
|
|
320
|
-
contents = _json(data);
|
|
321
|
-
const response = {
|
|
322
|
-
$metadata: deserializeMetadata(output),
|
|
323
|
-
...contents,
|
|
324
|
-
};
|
|
325
|
-
return response;
|
|
326
|
-
};
|
|
327
|
-
export const de_PutLifecyclePolicyCommand = async (output, context) => {
|
|
328
|
-
if (output.statusCode >= 300) {
|
|
329
|
-
return de_CommandError(output, context);
|
|
330
|
-
}
|
|
331
|
-
const data = await parseBody(output.body, context);
|
|
332
|
-
let contents = {};
|
|
333
|
-
contents = _json(data);
|
|
334
|
-
const response = {
|
|
335
|
-
$metadata: deserializeMetadata(output),
|
|
336
|
-
...contents,
|
|
337
|
-
};
|
|
338
|
-
return response;
|
|
339
|
-
};
|
|
340
|
-
export const de_PutMetricPolicyCommand = async (output, context) => {
|
|
341
|
-
if (output.statusCode >= 300) {
|
|
342
|
-
return de_CommandError(output, context);
|
|
343
|
-
}
|
|
344
|
-
const data = await parseBody(output.body, context);
|
|
345
|
-
let contents = {};
|
|
346
|
-
contents = _json(data);
|
|
347
|
-
const response = {
|
|
348
|
-
$metadata: deserializeMetadata(output),
|
|
349
|
-
...contents,
|
|
350
|
-
};
|
|
351
|
-
return response;
|
|
352
|
-
};
|
|
353
|
-
export const de_StartAccessLoggingCommand = async (output, context) => {
|
|
354
|
-
if (output.statusCode >= 300) {
|
|
355
|
-
return de_CommandError(output, context);
|
|
356
|
-
}
|
|
357
|
-
const data = await parseBody(output.body, context);
|
|
358
|
-
let contents = {};
|
|
359
|
-
contents = _json(data);
|
|
360
|
-
const response = {
|
|
361
|
-
$metadata: deserializeMetadata(output),
|
|
362
|
-
...contents,
|
|
363
|
-
};
|
|
364
|
-
return response;
|
|
365
|
-
};
|
|
366
|
-
export const de_StopAccessLoggingCommand = async (output, context) => {
|
|
367
|
-
if (output.statusCode >= 300) {
|
|
368
|
-
return de_CommandError(output, context);
|
|
369
|
-
}
|
|
370
|
-
const data = await parseBody(output.body, context);
|
|
371
|
-
let contents = {};
|
|
372
|
-
contents = _json(data);
|
|
373
|
-
const response = {
|
|
374
|
-
$metadata: deserializeMetadata(output),
|
|
375
|
-
...contents,
|
|
376
|
-
};
|
|
377
|
-
return response;
|
|
378
|
-
};
|
|
379
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
380
|
-
if (output.statusCode >= 300) {
|
|
381
|
-
return de_CommandError(output, context);
|
|
382
|
-
}
|
|
383
|
-
const data = await parseBody(output.body, context);
|
|
384
|
-
let contents = {};
|
|
385
|
-
contents = _json(data);
|
|
386
|
-
const response = {
|
|
387
|
-
$metadata: deserializeMetadata(output),
|
|
388
|
-
...contents,
|
|
389
|
-
};
|
|
390
|
-
return response;
|
|
391
|
-
};
|
|
392
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
393
|
-
if (output.statusCode >= 300) {
|
|
394
|
-
return de_CommandError(output, context);
|
|
395
|
-
}
|
|
396
|
-
const data = await parseBody(output.body, context);
|
|
397
|
-
let contents = {};
|
|
398
|
-
contents = _json(data);
|
|
399
|
-
const response = {
|
|
400
|
-
$metadata: deserializeMetadata(output),
|
|
401
|
-
...contents,
|
|
402
|
-
};
|
|
403
|
-
return response;
|
|
404
|
-
};
|
|
405
|
-
const de_CommandError = async (output, context) => {
|
|
406
|
-
const parsedOutput = {
|
|
407
|
-
...output,
|
|
408
|
-
body: await parseErrorBody(output.body, context),
|
|
409
|
-
};
|
|
410
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
411
|
-
switch (errorCode) {
|
|
412
|
-
case "ContainerInUseException":
|
|
413
|
-
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
414
|
-
throw await de_ContainerInUseExceptionRes(parsedOutput, context);
|
|
415
|
-
case "InternalServerError":
|
|
416
|
-
case "com.amazonaws.mediastore#InternalServerError":
|
|
417
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
418
|
-
case "LimitExceededException":
|
|
419
|
-
case "com.amazonaws.mediastore#LimitExceededException":
|
|
420
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
421
|
-
case "ContainerNotFoundException":
|
|
422
|
-
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
423
|
-
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
424
|
-
case "PolicyNotFoundException":
|
|
425
|
-
case "com.amazonaws.mediastore#PolicyNotFoundException":
|
|
426
|
-
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
427
|
-
case "CorsPolicyNotFoundException":
|
|
428
|
-
case "com.amazonaws.mediastore#CorsPolicyNotFoundException":
|
|
429
|
-
throw await de_CorsPolicyNotFoundExceptionRes(parsedOutput, context);
|
|
430
|
-
default:
|
|
431
|
-
const parsedBody = parsedOutput.body;
|
|
432
|
-
return throwDefaultError({
|
|
433
|
-
output,
|
|
434
|
-
parsedBody,
|
|
435
|
-
errorCode,
|
|
436
|
-
});
|
|
437
|
-
}
|
|
438
|
-
};
|
|
439
|
-
const de_ContainerInUseExceptionRes = async (parsedOutput, context) => {
|
|
440
|
-
const body = parsedOutput.body;
|
|
441
|
-
const deserialized = _json(body);
|
|
442
|
-
const exception = new ContainerInUseException({
|
|
443
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
444
|
-
...deserialized,
|
|
445
|
-
});
|
|
446
|
-
return __decorateServiceException(exception, body);
|
|
447
|
-
};
|
|
448
|
-
const de_ContainerNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
449
|
-
const body = parsedOutput.body;
|
|
450
|
-
const deserialized = _json(body);
|
|
451
|
-
const exception = new ContainerNotFoundException({
|
|
452
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
453
|
-
...deserialized,
|
|
454
|
-
});
|
|
455
|
-
return __decorateServiceException(exception, body);
|
|
456
|
-
};
|
|
457
|
-
const de_CorsPolicyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
458
|
-
const body = parsedOutput.body;
|
|
459
|
-
const deserialized = _json(body);
|
|
460
|
-
const exception = new CorsPolicyNotFoundException({
|
|
461
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
462
|
-
...deserialized,
|
|
463
|
-
});
|
|
464
|
-
return __decorateServiceException(exception, body);
|
|
465
|
-
};
|
|
466
|
-
const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
467
|
-
const body = parsedOutput.body;
|
|
468
|
-
const deserialized = _json(body);
|
|
469
|
-
const exception = new InternalServerError({
|
|
470
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
471
|
-
...deserialized,
|
|
472
|
-
});
|
|
473
|
-
return __decorateServiceException(exception, body);
|
|
474
|
-
};
|
|
475
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
476
|
-
const body = parsedOutput.body;
|
|
477
|
-
const deserialized = _json(body);
|
|
478
|
-
const exception = new LimitExceededException({
|
|
479
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
480
|
-
...deserialized,
|
|
481
|
-
});
|
|
482
|
-
return __decorateServiceException(exception, body);
|
|
483
|
-
};
|
|
484
|
-
const de_PolicyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
485
|
-
const body = parsedOutput.body;
|
|
486
|
-
const deserialized = _json(body);
|
|
487
|
-
const exception = new PolicyNotFoundException({
|
|
488
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
489
|
-
...deserialized,
|
|
490
|
-
});
|
|
491
|
-
return __decorateServiceException(exception, body);
|
|
492
|
-
};
|
|
493
|
-
const de_Container = (output, context) => {
|
|
494
|
-
return take(output, {
|
|
495
|
-
ARN: __expectString,
|
|
496
|
-
AccessLoggingEnabled: __expectBoolean,
|
|
497
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
498
|
-
Endpoint: __expectString,
|
|
499
|
-
Name: __expectString,
|
|
500
|
-
Status: __expectString,
|
|
501
|
-
});
|
|
502
|
-
};
|
|
503
|
-
const de_ContainerList = (output, context) => {
|
|
504
|
-
const retVal = (output || [])
|
|
505
|
-
.filter((e) => e != null)
|
|
506
|
-
.map((entry) => {
|
|
507
|
-
return de_Container(entry, context);
|
|
508
|
-
});
|
|
509
|
-
return retVal;
|
|
510
|
-
};
|
|
511
|
-
const de_CreateContainerOutput = (output, context) => {
|
|
512
|
-
return take(output, {
|
|
513
|
-
Container: (_) => de_Container(_, context),
|
|
514
|
-
});
|
|
515
|
-
};
|
|
516
|
-
const de_DescribeContainerOutput = (output, context) => {
|
|
517
|
-
return take(output, {
|
|
518
|
-
Container: (_) => de_Container(_, context),
|
|
519
|
-
});
|
|
520
|
-
};
|
|
521
|
-
const de_ListContainersOutput = (output, context) => {
|
|
522
|
-
return take(output, {
|
|
523
|
-
Containers: (_) => de_ContainerList(_, context),
|
|
524
|
-
NextToken: __expectString,
|
|
525
|
-
});
|
|
526
|
-
};
|
|
527
|
-
const deserializeMetadata = (output) => ({
|
|
528
|
-
httpStatusCode: output.statusCode,
|
|
529
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
530
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
531
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
532
|
-
});
|
|
533
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
534
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
535
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
536
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
537
|
-
const contents = {
|
|
538
|
-
protocol,
|
|
539
|
-
hostname,
|
|
540
|
-
port,
|
|
541
|
-
method: "POST",
|
|
542
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
543
|
-
headers,
|
|
544
|
-
};
|
|
545
|
-
if (resolvedHostname !== undefined) {
|
|
546
|
-
contents.hostname = resolvedHostname;
|
|
547
|
-
}
|
|
548
|
-
if (body !== undefined) {
|
|
549
|
-
contents.body = body;
|
|
550
|
-
}
|
|
551
|
-
return new __HttpRequest(contents);
|
|
552
|
-
};
|
|
553
|
-
function sharedHeaders(operation) {
|
|
554
|
-
return {
|
|
555
|
-
"content-type": "application/x-amz-json-1.1",
|
|
556
|
-
"x-amz-target": `MediaStore_20170901.${operation}`,
|
|
557
|
-
};
|
|
558
|
-
}
|