@aws-sdk/client-mediastore 3.899.0 → 3.906.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 +1144 -1254
- package/package.json +37 -37
package/dist-cjs/index.js
CHANGED
|
@@ -1,1307 +1,1197 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
DeleteCorsPolicyCommand: () => DeleteCorsPolicyCommand,
|
|
33
|
-
DeleteLifecyclePolicyCommand: () => DeleteLifecyclePolicyCommand,
|
|
34
|
-
DeleteMetricPolicyCommand: () => DeleteMetricPolicyCommand,
|
|
35
|
-
DescribeContainerCommand: () => DescribeContainerCommand,
|
|
36
|
-
GetContainerPolicyCommand: () => GetContainerPolicyCommand,
|
|
37
|
-
GetCorsPolicyCommand: () => GetCorsPolicyCommand,
|
|
38
|
-
GetLifecyclePolicyCommand: () => GetLifecyclePolicyCommand,
|
|
39
|
-
GetMetricPolicyCommand: () => GetMetricPolicyCommand,
|
|
40
|
-
InternalServerError: () => InternalServerError,
|
|
41
|
-
LimitExceededException: () => LimitExceededException,
|
|
42
|
-
ListContainersCommand: () => ListContainersCommand,
|
|
43
|
-
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
44
|
-
MediaStore: () => MediaStore,
|
|
45
|
-
MediaStoreClient: () => MediaStoreClient,
|
|
46
|
-
MediaStoreServiceException: () => MediaStoreServiceException,
|
|
47
|
-
MethodName: () => MethodName,
|
|
48
|
-
PolicyNotFoundException: () => PolicyNotFoundException,
|
|
49
|
-
PutContainerPolicyCommand: () => PutContainerPolicyCommand,
|
|
50
|
-
PutCorsPolicyCommand: () => PutCorsPolicyCommand,
|
|
51
|
-
PutLifecyclePolicyCommand: () => PutLifecyclePolicyCommand,
|
|
52
|
-
PutMetricPolicyCommand: () => PutMetricPolicyCommand,
|
|
53
|
-
StartAccessLoggingCommand: () => StartAccessLoggingCommand,
|
|
54
|
-
StopAccessLoggingCommand: () => StopAccessLoggingCommand,
|
|
55
|
-
TagResourceCommand: () => TagResourceCommand,
|
|
56
|
-
UntagResourceCommand: () => UntagResourceCommand,
|
|
57
|
-
__Client: () => import_smithy_client.Client,
|
|
58
|
-
paginateListContainers: () => paginateListContainers
|
|
59
|
-
});
|
|
60
|
-
module.exports = __toCommonJS(index_exports);
|
|
61
|
-
|
|
62
|
-
// src/MediaStoreClient.ts
|
|
63
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
64
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
65
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
66
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
67
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
68
|
-
var import_core = require("@smithy/core");
|
|
69
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
70
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
71
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
72
|
-
|
|
73
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
74
|
-
|
|
75
|
-
// src/endpoint/EndpointParameters.ts
|
|
76
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
77
|
-
return Object.assign(options, {
|
|
78
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
79
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
80
|
-
defaultSigningName: "mediastore"
|
|
81
|
-
});
|
|
82
|
-
}, "resolveClientEndpointParameters");
|
|
83
|
-
var commonParams = {
|
|
84
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
85
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
86
|
-
Region: { type: "builtInParams", name: "region" },
|
|
87
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
|
|
20
|
+
const resolveClientEndpointParameters = (options) => {
|
|
21
|
+
return Object.assign(options, {
|
|
22
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
23
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
24
|
+
defaultSigningName: "mediastore",
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
const commonParams = {
|
|
28
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
29
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
30
|
+
Region: { type: "builtInParams", name: "region" },
|
|
31
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
88
32
|
};
|
|
89
33
|
|
|
90
|
-
|
|
91
|
-
|
|
34
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
37
|
+
let _credentials = runtimeConfig.credentials;
|
|
38
|
+
return {
|
|
39
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
40
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
41
|
+
if (index === -1) {
|
|
42
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
httpAuthSchemes() {
|
|
49
|
+
return _httpAuthSchemes;
|
|
50
|
+
},
|
|
51
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
52
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
53
|
+
},
|
|
54
|
+
httpAuthSchemeProvider() {
|
|
55
|
+
return _httpAuthSchemeProvider;
|
|
56
|
+
},
|
|
57
|
+
setCredentials(credentials) {
|
|
58
|
+
_credentials = credentials;
|
|
59
|
+
},
|
|
60
|
+
credentials() {
|
|
61
|
+
return _credentials;
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
66
|
+
return {
|
|
67
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
68
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
69
|
+
credentials: config.credentials(),
|
|
70
|
+
};
|
|
71
|
+
};
|
|
92
72
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
73
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
74
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
75
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
76
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
77
|
+
};
|
|
97
78
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
79
|
+
class MediaStoreClient extends smithyClient.Client {
|
|
80
|
+
config;
|
|
81
|
+
constructor(...[configuration]) {
|
|
82
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
83
|
+
super(_config_0);
|
|
84
|
+
this.initConfig = _config_0;
|
|
85
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
86
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
87
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
88
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
89
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
90
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
91
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
|
+
this.config = _config_8;
|
|
94
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
101
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultMediaStoreHttpAuthSchemeParametersProvider,
|
|
102
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
103
|
+
"aws.auth#sigv4": config.credentials,
|
|
104
|
+
}),
|
|
105
|
+
}));
|
|
106
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
107
|
+
}
|
|
108
|
+
destroy() {
|
|
109
|
+
super.destroy();
|
|
126
110
|
}
|
|
127
|
-
|
|
128
|
-
}, "getHttpAuthExtensionConfiguration");
|
|
129
|
-
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
130
|
-
return {
|
|
131
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
132
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
133
|
-
credentials: config.credentials()
|
|
134
|
-
};
|
|
135
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
111
|
+
}
|
|
136
112
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
144
|
-
);
|
|
145
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
146
|
-
return Object.assign(
|
|
147
|
-
runtimeConfig,
|
|
148
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
149
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
150
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
151
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
152
|
-
);
|
|
153
|
-
}, "resolveRuntimeExtensions");
|
|
113
|
+
class MediaStoreServiceException extends smithyClient.ServiceException {
|
|
114
|
+
constructor(options) {
|
|
115
|
+
super(options);
|
|
116
|
+
Object.setPrototypeOf(this, MediaStoreServiceException.prototype);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
154
119
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* The resolved configuration of MediaStoreClient class. This is resolved and normalized from the {@link MediaStoreClientConfig | constructor configuration interface}.
|
|
162
|
-
*/
|
|
163
|
-
config;
|
|
164
|
-
constructor(...[configuration]) {
|
|
165
|
-
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
166
|
-
super(_config_0);
|
|
167
|
-
this.initConfig = _config_0;
|
|
168
|
-
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
169
|
-
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
170
|
-
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
171
|
-
const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
|
|
172
|
-
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
173
|
-
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
174
|
-
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
175
|
-
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
176
|
-
this.config = _config_8;
|
|
177
|
-
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
178
|
-
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
179
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
180
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
181
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
182
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
183
|
-
this.middlewareStack.use(
|
|
184
|
-
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
185
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultMediaStoreHttpAuthSchemeParametersProvider,
|
|
186
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
187
|
-
"aws.auth#sigv4": config.credentials
|
|
188
|
-
}), "identityProviderConfigProvider")
|
|
189
|
-
})
|
|
190
|
-
);
|
|
191
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
192
|
-
}
|
|
193
|
-
/**
|
|
194
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
195
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
196
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
197
|
-
*/
|
|
198
|
-
destroy() {
|
|
199
|
-
super.destroy();
|
|
200
|
-
}
|
|
120
|
+
const MethodName = {
|
|
121
|
+
DELETE: "DELETE",
|
|
122
|
+
GET: "GET",
|
|
123
|
+
HEAD: "HEAD",
|
|
124
|
+
PUT: "PUT",
|
|
201
125
|
};
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
// src/commands/CreateContainerCommand.ts
|
|
207
|
-
|
|
208
|
-
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
// src/protocols/Aws_json1_1.ts
|
|
212
|
-
var import_core2 = require("@aws-sdk/core");
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
// src/models/MediaStoreServiceException.ts
|
|
217
|
-
|
|
218
|
-
var MediaStoreServiceException = class _MediaStoreServiceException extends import_smithy_client.ServiceException {
|
|
219
|
-
static {
|
|
220
|
-
__name(this, "MediaStoreServiceException");
|
|
221
|
-
}
|
|
222
|
-
/**
|
|
223
|
-
* @internal
|
|
224
|
-
*/
|
|
225
|
-
constructor(options) {
|
|
226
|
-
super(options);
|
|
227
|
-
Object.setPrototypeOf(this, _MediaStoreServiceException.prototype);
|
|
228
|
-
}
|
|
126
|
+
const ContainerStatus = {
|
|
127
|
+
ACTIVE: "ACTIVE",
|
|
128
|
+
CREATING: "CREATING",
|
|
129
|
+
DELETING: "DELETING",
|
|
229
130
|
};
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
name = "ContainerInUseException";
|
|
248
|
-
$fault = "client";
|
|
249
|
-
Message;
|
|
250
|
-
/**
|
|
251
|
-
* @internal
|
|
252
|
-
*/
|
|
253
|
-
constructor(opts) {
|
|
254
|
-
super({
|
|
255
|
-
name: "ContainerInUseException",
|
|
256
|
-
$fault: "client",
|
|
257
|
-
...opts
|
|
258
|
-
});
|
|
259
|
-
Object.setPrototypeOf(this, _ContainerInUseException.prototype);
|
|
260
|
-
this.Message = opts.Message;
|
|
261
|
-
}
|
|
262
|
-
};
|
|
263
|
-
var ContainerLevelMetrics = {
|
|
264
|
-
DISABLED: "DISABLED",
|
|
265
|
-
ENABLED: "ENABLED"
|
|
266
|
-
};
|
|
267
|
-
var ContainerNotFoundException = class _ContainerNotFoundException extends MediaStoreServiceException {
|
|
268
|
-
static {
|
|
269
|
-
__name(this, "ContainerNotFoundException");
|
|
270
|
-
}
|
|
271
|
-
name = "ContainerNotFoundException";
|
|
272
|
-
$fault = "client";
|
|
273
|
-
Message;
|
|
274
|
-
/**
|
|
275
|
-
* @internal
|
|
276
|
-
*/
|
|
277
|
-
constructor(opts) {
|
|
278
|
-
super({
|
|
279
|
-
name: "ContainerNotFoundException",
|
|
280
|
-
$fault: "client",
|
|
281
|
-
...opts
|
|
282
|
-
});
|
|
283
|
-
Object.setPrototypeOf(this, _ContainerNotFoundException.prototype);
|
|
284
|
-
this.Message = opts.Message;
|
|
285
|
-
}
|
|
286
|
-
};
|
|
287
|
-
var CorsPolicyNotFoundException = class _CorsPolicyNotFoundException extends MediaStoreServiceException {
|
|
288
|
-
static {
|
|
289
|
-
__name(this, "CorsPolicyNotFoundException");
|
|
290
|
-
}
|
|
291
|
-
name = "CorsPolicyNotFoundException";
|
|
292
|
-
$fault = "client";
|
|
293
|
-
Message;
|
|
294
|
-
/**
|
|
295
|
-
* @internal
|
|
296
|
-
*/
|
|
297
|
-
constructor(opts) {
|
|
298
|
-
super({
|
|
299
|
-
name: "CorsPolicyNotFoundException",
|
|
300
|
-
$fault: "client",
|
|
301
|
-
...opts
|
|
302
|
-
});
|
|
303
|
-
Object.setPrototypeOf(this, _CorsPolicyNotFoundException.prototype);
|
|
304
|
-
this.Message = opts.Message;
|
|
305
|
-
}
|
|
306
|
-
};
|
|
307
|
-
var InternalServerError = class _InternalServerError extends MediaStoreServiceException {
|
|
308
|
-
static {
|
|
309
|
-
__name(this, "InternalServerError");
|
|
310
|
-
}
|
|
311
|
-
name = "InternalServerError";
|
|
312
|
-
$fault = "server";
|
|
313
|
-
Message;
|
|
314
|
-
/**
|
|
315
|
-
* @internal
|
|
316
|
-
*/
|
|
317
|
-
constructor(opts) {
|
|
318
|
-
super({
|
|
319
|
-
name: "InternalServerError",
|
|
320
|
-
$fault: "server",
|
|
321
|
-
...opts
|
|
322
|
-
});
|
|
323
|
-
Object.setPrototypeOf(this, _InternalServerError.prototype);
|
|
324
|
-
this.Message = opts.Message;
|
|
325
|
-
}
|
|
326
|
-
};
|
|
327
|
-
var LimitExceededException = class _LimitExceededException extends MediaStoreServiceException {
|
|
328
|
-
static {
|
|
329
|
-
__name(this, "LimitExceededException");
|
|
330
|
-
}
|
|
331
|
-
name = "LimitExceededException";
|
|
332
|
-
$fault = "client";
|
|
333
|
-
Message;
|
|
334
|
-
/**
|
|
335
|
-
* @internal
|
|
336
|
-
*/
|
|
337
|
-
constructor(opts) {
|
|
338
|
-
super({
|
|
339
|
-
name: "LimitExceededException",
|
|
340
|
-
$fault: "client",
|
|
341
|
-
...opts
|
|
342
|
-
});
|
|
343
|
-
Object.setPrototypeOf(this, _LimitExceededException.prototype);
|
|
344
|
-
this.Message = opts.Message;
|
|
345
|
-
}
|
|
346
|
-
};
|
|
347
|
-
var PolicyNotFoundException = class _PolicyNotFoundException extends MediaStoreServiceException {
|
|
348
|
-
static {
|
|
349
|
-
__name(this, "PolicyNotFoundException");
|
|
350
|
-
}
|
|
351
|
-
name = "PolicyNotFoundException";
|
|
352
|
-
$fault = "client";
|
|
353
|
-
Message;
|
|
354
|
-
/**
|
|
355
|
-
* @internal
|
|
356
|
-
*/
|
|
357
|
-
constructor(opts) {
|
|
358
|
-
super({
|
|
359
|
-
name: "PolicyNotFoundException",
|
|
360
|
-
$fault: "client",
|
|
361
|
-
...opts
|
|
362
|
-
});
|
|
363
|
-
Object.setPrototypeOf(this, _PolicyNotFoundException.prototype);
|
|
364
|
-
this.Message = opts.Message;
|
|
365
|
-
}
|
|
131
|
+
class ContainerInUseException extends MediaStoreServiceException {
|
|
132
|
+
name = "ContainerInUseException";
|
|
133
|
+
$fault = "client";
|
|
134
|
+
Message;
|
|
135
|
+
constructor(opts) {
|
|
136
|
+
super({
|
|
137
|
+
name: "ContainerInUseException",
|
|
138
|
+
$fault: "client",
|
|
139
|
+
...opts,
|
|
140
|
+
});
|
|
141
|
+
Object.setPrototypeOf(this, ContainerInUseException.prototype);
|
|
142
|
+
this.Message = opts.Message;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
const ContainerLevelMetrics = {
|
|
146
|
+
DISABLED: "DISABLED",
|
|
147
|
+
ENABLED: "ENABLED",
|
|
366
148
|
};
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
const headers = sharedHeaders("ListContainers");
|
|
437
|
-
let body;
|
|
438
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
439
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
440
|
-
}, "se_ListContainersCommand");
|
|
441
|
-
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
442
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
443
|
-
let body;
|
|
444
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
445
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
446
|
-
}, "se_ListTagsForResourceCommand");
|
|
447
|
-
var se_PutContainerPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
448
|
-
const headers = sharedHeaders("PutContainerPolicy");
|
|
449
|
-
let body;
|
|
450
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
451
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
452
|
-
}, "se_PutContainerPolicyCommand");
|
|
453
|
-
var se_PutCorsPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
454
|
-
const headers = sharedHeaders("PutCorsPolicy");
|
|
455
|
-
let body;
|
|
456
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
457
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
458
|
-
}, "se_PutCorsPolicyCommand");
|
|
459
|
-
var se_PutLifecyclePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
460
|
-
const headers = sharedHeaders("PutLifecyclePolicy");
|
|
461
|
-
let body;
|
|
462
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
463
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
464
|
-
}, "se_PutLifecyclePolicyCommand");
|
|
465
|
-
var se_PutMetricPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
466
|
-
const headers = sharedHeaders("PutMetricPolicy");
|
|
467
|
-
let body;
|
|
468
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
469
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
470
|
-
}, "se_PutMetricPolicyCommand");
|
|
471
|
-
var se_StartAccessLoggingCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
472
|
-
const headers = sharedHeaders("StartAccessLogging");
|
|
473
|
-
let body;
|
|
474
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
475
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
476
|
-
}, "se_StartAccessLoggingCommand");
|
|
477
|
-
var se_StopAccessLoggingCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
478
|
-
const headers = sharedHeaders("StopAccessLogging");
|
|
479
|
-
let body;
|
|
480
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
481
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
482
|
-
}, "se_StopAccessLoggingCommand");
|
|
483
|
-
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
484
|
-
const headers = sharedHeaders("TagResource");
|
|
485
|
-
let body;
|
|
486
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
487
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
488
|
-
}, "se_TagResourceCommand");
|
|
489
|
-
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
490
|
-
const headers = sharedHeaders("UntagResource");
|
|
491
|
-
let body;
|
|
492
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
493
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
494
|
-
}, "se_UntagResourceCommand");
|
|
495
|
-
var de_CreateContainerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
496
|
-
if (output.statusCode >= 300) {
|
|
497
|
-
return de_CommandError(output, context);
|
|
498
|
-
}
|
|
499
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
500
|
-
let contents = {};
|
|
501
|
-
contents = de_CreateContainerOutput(data, context);
|
|
502
|
-
const response = {
|
|
503
|
-
$metadata: deserializeMetadata(output),
|
|
504
|
-
...contents
|
|
505
|
-
};
|
|
506
|
-
return response;
|
|
507
|
-
}, "de_CreateContainerCommand");
|
|
508
|
-
var de_DeleteContainerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
509
|
-
if (output.statusCode >= 300) {
|
|
510
|
-
return de_CommandError(output, context);
|
|
511
|
-
}
|
|
512
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
513
|
-
let contents = {};
|
|
514
|
-
contents = (0, import_smithy_client._json)(data);
|
|
515
|
-
const response = {
|
|
516
|
-
$metadata: deserializeMetadata(output),
|
|
517
|
-
...contents
|
|
518
|
-
};
|
|
519
|
-
return response;
|
|
520
|
-
}, "de_DeleteContainerCommand");
|
|
521
|
-
var de_DeleteContainerPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
522
|
-
if (output.statusCode >= 300) {
|
|
523
|
-
return de_CommandError(output, context);
|
|
524
|
-
}
|
|
525
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
526
|
-
let contents = {};
|
|
527
|
-
contents = (0, import_smithy_client._json)(data);
|
|
528
|
-
const response = {
|
|
529
|
-
$metadata: deserializeMetadata(output),
|
|
530
|
-
...contents
|
|
531
|
-
};
|
|
532
|
-
return response;
|
|
533
|
-
}, "de_DeleteContainerPolicyCommand");
|
|
534
|
-
var de_DeleteCorsPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
535
|
-
if (output.statusCode >= 300) {
|
|
536
|
-
return de_CommandError(output, context);
|
|
537
|
-
}
|
|
538
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
539
|
-
let contents = {};
|
|
540
|
-
contents = (0, import_smithy_client._json)(data);
|
|
541
|
-
const response = {
|
|
542
|
-
$metadata: deserializeMetadata(output),
|
|
543
|
-
...contents
|
|
544
|
-
};
|
|
545
|
-
return response;
|
|
546
|
-
}, "de_DeleteCorsPolicyCommand");
|
|
547
|
-
var de_DeleteLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
548
|
-
if (output.statusCode >= 300) {
|
|
549
|
-
return de_CommandError(output, context);
|
|
550
|
-
}
|
|
551
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
552
|
-
let contents = {};
|
|
553
|
-
contents = (0, import_smithy_client._json)(data);
|
|
554
|
-
const response = {
|
|
555
|
-
$metadata: deserializeMetadata(output),
|
|
556
|
-
...contents
|
|
557
|
-
};
|
|
558
|
-
return response;
|
|
559
|
-
}, "de_DeleteLifecyclePolicyCommand");
|
|
560
|
-
var de_DeleteMetricPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
561
|
-
if (output.statusCode >= 300) {
|
|
562
|
-
return de_CommandError(output, context);
|
|
563
|
-
}
|
|
564
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
565
|
-
let contents = {};
|
|
566
|
-
contents = (0, import_smithy_client._json)(data);
|
|
567
|
-
const response = {
|
|
568
|
-
$metadata: deserializeMetadata(output),
|
|
569
|
-
...contents
|
|
570
|
-
};
|
|
571
|
-
return response;
|
|
572
|
-
}, "de_DeleteMetricPolicyCommand");
|
|
573
|
-
var de_DescribeContainerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
574
|
-
if (output.statusCode >= 300) {
|
|
575
|
-
return de_CommandError(output, context);
|
|
576
|
-
}
|
|
577
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
578
|
-
let contents = {};
|
|
579
|
-
contents = de_DescribeContainerOutput(data, context);
|
|
580
|
-
const response = {
|
|
581
|
-
$metadata: deserializeMetadata(output),
|
|
582
|
-
...contents
|
|
583
|
-
};
|
|
584
|
-
return response;
|
|
585
|
-
}, "de_DescribeContainerCommand");
|
|
586
|
-
var de_GetContainerPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
587
|
-
if (output.statusCode >= 300) {
|
|
588
|
-
return de_CommandError(output, context);
|
|
589
|
-
}
|
|
590
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
591
|
-
let contents = {};
|
|
592
|
-
contents = (0, import_smithy_client._json)(data);
|
|
593
|
-
const response = {
|
|
594
|
-
$metadata: deserializeMetadata(output),
|
|
595
|
-
...contents
|
|
596
|
-
};
|
|
597
|
-
return response;
|
|
598
|
-
}, "de_GetContainerPolicyCommand");
|
|
599
|
-
var de_GetCorsPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
600
|
-
if (output.statusCode >= 300) {
|
|
601
|
-
return de_CommandError(output, context);
|
|
602
|
-
}
|
|
603
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
604
|
-
let contents = {};
|
|
605
|
-
contents = (0, import_smithy_client._json)(data);
|
|
606
|
-
const response = {
|
|
607
|
-
$metadata: deserializeMetadata(output),
|
|
608
|
-
...contents
|
|
609
|
-
};
|
|
610
|
-
return response;
|
|
611
|
-
}, "de_GetCorsPolicyCommand");
|
|
612
|
-
var de_GetLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
613
|
-
if (output.statusCode >= 300) {
|
|
614
|
-
return de_CommandError(output, context);
|
|
615
|
-
}
|
|
616
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
617
|
-
let contents = {};
|
|
618
|
-
contents = (0, import_smithy_client._json)(data);
|
|
619
|
-
const response = {
|
|
620
|
-
$metadata: deserializeMetadata(output),
|
|
621
|
-
...contents
|
|
622
|
-
};
|
|
623
|
-
return response;
|
|
624
|
-
}, "de_GetLifecyclePolicyCommand");
|
|
625
|
-
var de_GetMetricPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
626
|
-
if (output.statusCode >= 300) {
|
|
627
|
-
return de_CommandError(output, context);
|
|
628
|
-
}
|
|
629
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
630
|
-
let contents = {};
|
|
631
|
-
contents = (0, import_smithy_client._json)(data);
|
|
632
|
-
const response = {
|
|
633
|
-
$metadata: deserializeMetadata(output),
|
|
634
|
-
...contents
|
|
635
|
-
};
|
|
636
|
-
return response;
|
|
637
|
-
}, "de_GetMetricPolicyCommand");
|
|
638
|
-
var de_ListContainersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
639
|
-
if (output.statusCode >= 300) {
|
|
640
|
-
return de_CommandError(output, context);
|
|
641
|
-
}
|
|
642
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
643
|
-
let contents = {};
|
|
644
|
-
contents = de_ListContainersOutput(data, context);
|
|
645
|
-
const response = {
|
|
646
|
-
$metadata: deserializeMetadata(output),
|
|
647
|
-
...contents
|
|
648
|
-
};
|
|
649
|
-
return response;
|
|
650
|
-
}, "de_ListContainersCommand");
|
|
651
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
652
|
-
if (output.statusCode >= 300) {
|
|
653
|
-
return de_CommandError(output, context);
|
|
654
|
-
}
|
|
655
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
656
|
-
let contents = {};
|
|
657
|
-
contents = (0, import_smithy_client._json)(data);
|
|
658
|
-
const response = {
|
|
659
|
-
$metadata: deserializeMetadata(output),
|
|
660
|
-
...contents
|
|
661
|
-
};
|
|
662
|
-
return response;
|
|
663
|
-
}, "de_ListTagsForResourceCommand");
|
|
664
|
-
var de_PutContainerPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
665
|
-
if (output.statusCode >= 300) {
|
|
666
|
-
return de_CommandError(output, context);
|
|
667
|
-
}
|
|
668
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
669
|
-
let contents = {};
|
|
670
|
-
contents = (0, import_smithy_client._json)(data);
|
|
671
|
-
const response = {
|
|
672
|
-
$metadata: deserializeMetadata(output),
|
|
673
|
-
...contents
|
|
674
|
-
};
|
|
675
|
-
return response;
|
|
676
|
-
}, "de_PutContainerPolicyCommand");
|
|
677
|
-
var de_PutCorsPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
678
|
-
if (output.statusCode >= 300) {
|
|
679
|
-
return de_CommandError(output, context);
|
|
680
|
-
}
|
|
681
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
682
|
-
let contents = {};
|
|
683
|
-
contents = (0, import_smithy_client._json)(data);
|
|
684
|
-
const response = {
|
|
685
|
-
$metadata: deserializeMetadata(output),
|
|
686
|
-
...contents
|
|
687
|
-
};
|
|
688
|
-
return response;
|
|
689
|
-
}, "de_PutCorsPolicyCommand");
|
|
690
|
-
var de_PutLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
691
|
-
if (output.statusCode >= 300) {
|
|
692
|
-
return de_CommandError(output, context);
|
|
693
|
-
}
|
|
694
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
695
|
-
let contents = {};
|
|
696
|
-
contents = (0, import_smithy_client._json)(data);
|
|
697
|
-
const response = {
|
|
698
|
-
$metadata: deserializeMetadata(output),
|
|
699
|
-
...contents
|
|
700
|
-
};
|
|
701
|
-
return response;
|
|
702
|
-
}, "de_PutLifecyclePolicyCommand");
|
|
703
|
-
var de_PutMetricPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
704
|
-
if (output.statusCode >= 300) {
|
|
705
|
-
return de_CommandError(output, context);
|
|
706
|
-
}
|
|
707
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
708
|
-
let contents = {};
|
|
709
|
-
contents = (0, import_smithy_client._json)(data);
|
|
710
|
-
const response = {
|
|
711
|
-
$metadata: deserializeMetadata(output),
|
|
712
|
-
...contents
|
|
713
|
-
};
|
|
714
|
-
return response;
|
|
715
|
-
}, "de_PutMetricPolicyCommand");
|
|
716
|
-
var de_StartAccessLoggingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
717
|
-
if (output.statusCode >= 300) {
|
|
718
|
-
return de_CommandError(output, context);
|
|
719
|
-
}
|
|
720
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
721
|
-
let contents = {};
|
|
722
|
-
contents = (0, import_smithy_client._json)(data);
|
|
723
|
-
const response = {
|
|
724
|
-
$metadata: deserializeMetadata(output),
|
|
725
|
-
...contents
|
|
726
|
-
};
|
|
727
|
-
return response;
|
|
728
|
-
}, "de_StartAccessLoggingCommand");
|
|
729
|
-
var de_StopAccessLoggingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
730
|
-
if (output.statusCode >= 300) {
|
|
731
|
-
return de_CommandError(output, context);
|
|
732
|
-
}
|
|
733
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
734
|
-
let contents = {};
|
|
735
|
-
contents = (0, import_smithy_client._json)(data);
|
|
736
|
-
const response = {
|
|
737
|
-
$metadata: deserializeMetadata(output),
|
|
738
|
-
...contents
|
|
739
|
-
};
|
|
740
|
-
return response;
|
|
741
|
-
}, "de_StopAccessLoggingCommand");
|
|
742
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
743
|
-
if (output.statusCode >= 300) {
|
|
744
|
-
return de_CommandError(output, context);
|
|
745
|
-
}
|
|
746
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
747
|
-
let contents = {};
|
|
748
|
-
contents = (0, import_smithy_client._json)(data);
|
|
749
|
-
const response = {
|
|
750
|
-
$metadata: deserializeMetadata(output),
|
|
751
|
-
...contents
|
|
752
|
-
};
|
|
753
|
-
return response;
|
|
754
|
-
}, "de_TagResourceCommand");
|
|
755
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
756
|
-
if (output.statusCode >= 300) {
|
|
757
|
-
return de_CommandError(output, context);
|
|
758
|
-
}
|
|
759
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
760
|
-
let contents = {};
|
|
761
|
-
contents = (0, import_smithy_client._json)(data);
|
|
762
|
-
const response = {
|
|
763
|
-
$metadata: deserializeMetadata(output),
|
|
764
|
-
...contents
|
|
765
|
-
};
|
|
766
|
-
return response;
|
|
767
|
-
}, "de_UntagResourceCommand");
|
|
768
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
769
|
-
const parsedOutput = {
|
|
770
|
-
...output,
|
|
771
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
772
|
-
};
|
|
773
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
774
|
-
switch (errorCode) {
|
|
775
|
-
case "ContainerInUseException":
|
|
776
|
-
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
777
|
-
throw await de_ContainerInUseExceptionRes(parsedOutput, context);
|
|
778
|
-
case "InternalServerError":
|
|
779
|
-
case "com.amazonaws.mediastore#InternalServerError":
|
|
780
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
781
|
-
case "LimitExceededException":
|
|
782
|
-
case "com.amazonaws.mediastore#LimitExceededException":
|
|
783
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
784
|
-
case "ContainerNotFoundException":
|
|
785
|
-
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
786
|
-
throw await de_ContainerNotFoundExceptionRes(parsedOutput, context);
|
|
787
|
-
case "PolicyNotFoundException":
|
|
788
|
-
case "com.amazonaws.mediastore#PolicyNotFoundException":
|
|
789
|
-
throw await de_PolicyNotFoundExceptionRes(parsedOutput, context);
|
|
790
|
-
case "CorsPolicyNotFoundException":
|
|
791
|
-
case "com.amazonaws.mediastore#CorsPolicyNotFoundException":
|
|
792
|
-
throw await de_CorsPolicyNotFoundExceptionRes(parsedOutput, context);
|
|
793
|
-
default:
|
|
794
|
-
const parsedBody = parsedOutput.body;
|
|
795
|
-
return throwDefaultError({
|
|
796
|
-
output,
|
|
797
|
-
parsedBody,
|
|
798
|
-
errorCode
|
|
799
|
-
});
|
|
800
|
-
}
|
|
801
|
-
}, "de_CommandError");
|
|
802
|
-
var de_ContainerInUseExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
803
|
-
const body = parsedOutput.body;
|
|
804
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
805
|
-
const exception = new ContainerInUseException({
|
|
806
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
807
|
-
...deserialized
|
|
808
|
-
});
|
|
809
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
810
|
-
}, "de_ContainerInUseExceptionRes");
|
|
811
|
-
var de_ContainerNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
812
|
-
const body = parsedOutput.body;
|
|
813
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
814
|
-
const exception = new ContainerNotFoundException({
|
|
815
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
816
|
-
...deserialized
|
|
817
|
-
});
|
|
818
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
819
|
-
}, "de_ContainerNotFoundExceptionRes");
|
|
820
|
-
var de_CorsPolicyNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
821
|
-
const body = parsedOutput.body;
|
|
822
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
823
|
-
const exception = new CorsPolicyNotFoundException({
|
|
824
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
825
|
-
...deserialized
|
|
826
|
-
});
|
|
827
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
828
|
-
}, "de_CorsPolicyNotFoundExceptionRes");
|
|
829
|
-
var de_InternalServerErrorRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
830
|
-
const body = parsedOutput.body;
|
|
831
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
832
|
-
const exception = new InternalServerError({
|
|
833
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
834
|
-
...deserialized
|
|
835
|
-
});
|
|
836
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
837
|
-
}, "de_InternalServerErrorRes");
|
|
838
|
-
var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
839
|
-
const body = parsedOutput.body;
|
|
840
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
841
|
-
const exception = new LimitExceededException({
|
|
842
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
843
|
-
...deserialized
|
|
844
|
-
});
|
|
845
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
846
|
-
}, "de_LimitExceededExceptionRes");
|
|
847
|
-
var de_PolicyNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
848
|
-
const body = parsedOutput.body;
|
|
849
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
850
|
-
const exception = new PolicyNotFoundException({
|
|
851
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
852
|
-
...deserialized
|
|
853
|
-
});
|
|
854
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
855
|
-
}, "de_PolicyNotFoundExceptionRes");
|
|
856
|
-
var de_Container = /* @__PURE__ */ __name((output, context) => {
|
|
857
|
-
return (0, import_smithy_client.take)(output, {
|
|
858
|
-
ARN: import_smithy_client.expectString,
|
|
859
|
-
AccessLoggingEnabled: import_smithy_client.expectBoolean,
|
|
860
|
-
CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
|
|
861
|
-
Endpoint: import_smithy_client.expectString,
|
|
862
|
-
Name: import_smithy_client.expectString,
|
|
863
|
-
Status: import_smithy_client.expectString
|
|
864
|
-
});
|
|
865
|
-
}, "de_Container");
|
|
866
|
-
var de_ContainerList = /* @__PURE__ */ __name((output, context) => {
|
|
867
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
868
|
-
return de_Container(entry, context);
|
|
869
|
-
});
|
|
870
|
-
return retVal;
|
|
871
|
-
}, "de_ContainerList");
|
|
872
|
-
var de_CreateContainerOutput = /* @__PURE__ */ __name((output, context) => {
|
|
873
|
-
return (0, import_smithy_client.take)(output, {
|
|
874
|
-
Container: /* @__PURE__ */ __name((_) => de_Container(_, context), "Container")
|
|
875
|
-
});
|
|
876
|
-
}, "de_CreateContainerOutput");
|
|
877
|
-
var de_DescribeContainerOutput = /* @__PURE__ */ __name((output, context) => {
|
|
878
|
-
return (0, import_smithy_client.take)(output, {
|
|
879
|
-
Container: /* @__PURE__ */ __name((_) => de_Container(_, context), "Container")
|
|
880
|
-
});
|
|
881
|
-
}, "de_DescribeContainerOutput");
|
|
882
|
-
var de_ListContainersOutput = /* @__PURE__ */ __name((output, context) => {
|
|
883
|
-
return (0, import_smithy_client.take)(output, {
|
|
884
|
-
Containers: /* @__PURE__ */ __name((_) => de_ContainerList(_, context), "Containers"),
|
|
885
|
-
NextToken: import_smithy_client.expectString
|
|
886
|
-
});
|
|
887
|
-
}, "de_ListContainersOutput");
|
|
888
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
889
|
-
httpStatusCode: output.statusCode,
|
|
890
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
891
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
892
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
893
|
-
}), "deserializeMetadata");
|
|
894
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(MediaStoreServiceException);
|
|
895
|
-
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
896
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
897
|
-
const contents = {
|
|
898
|
-
protocol,
|
|
899
|
-
hostname,
|
|
900
|
-
port,
|
|
901
|
-
method: "POST",
|
|
902
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
903
|
-
headers
|
|
904
|
-
};
|
|
905
|
-
if (resolvedHostname !== void 0) {
|
|
906
|
-
contents.hostname = resolvedHostname;
|
|
907
|
-
}
|
|
908
|
-
if (body !== void 0) {
|
|
909
|
-
contents.body = body;
|
|
910
|
-
}
|
|
911
|
-
return new import_protocol_http.HttpRequest(contents);
|
|
912
|
-
}, "buildHttpRpcRequest");
|
|
913
|
-
function sharedHeaders(operation) {
|
|
914
|
-
return {
|
|
915
|
-
"content-type": "application/x-amz-json-1.1",
|
|
916
|
-
"x-amz-target": `MediaStore_20170901.${operation}`
|
|
917
|
-
};
|
|
149
|
+
class ContainerNotFoundException extends MediaStoreServiceException {
|
|
150
|
+
name = "ContainerNotFoundException";
|
|
151
|
+
$fault = "client";
|
|
152
|
+
Message;
|
|
153
|
+
constructor(opts) {
|
|
154
|
+
super({
|
|
155
|
+
name: "ContainerNotFoundException",
|
|
156
|
+
$fault: "client",
|
|
157
|
+
...opts,
|
|
158
|
+
});
|
|
159
|
+
Object.setPrototypeOf(this, ContainerNotFoundException.prototype);
|
|
160
|
+
this.Message = opts.Message;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
class CorsPolicyNotFoundException extends MediaStoreServiceException {
|
|
164
|
+
name = "CorsPolicyNotFoundException";
|
|
165
|
+
$fault = "client";
|
|
166
|
+
Message;
|
|
167
|
+
constructor(opts) {
|
|
168
|
+
super({
|
|
169
|
+
name: "CorsPolicyNotFoundException",
|
|
170
|
+
$fault: "client",
|
|
171
|
+
...opts,
|
|
172
|
+
});
|
|
173
|
+
Object.setPrototypeOf(this, CorsPolicyNotFoundException.prototype);
|
|
174
|
+
this.Message = opts.Message;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
class InternalServerError extends MediaStoreServiceException {
|
|
178
|
+
name = "InternalServerError";
|
|
179
|
+
$fault = "server";
|
|
180
|
+
Message;
|
|
181
|
+
constructor(opts) {
|
|
182
|
+
super({
|
|
183
|
+
name: "InternalServerError",
|
|
184
|
+
$fault: "server",
|
|
185
|
+
...opts,
|
|
186
|
+
});
|
|
187
|
+
Object.setPrototypeOf(this, InternalServerError.prototype);
|
|
188
|
+
this.Message = opts.Message;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
class LimitExceededException extends MediaStoreServiceException {
|
|
192
|
+
name = "LimitExceededException";
|
|
193
|
+
$fault = "client";
|
|
194
|
+
Message;
|
|
195
|
+
constructor(opts) {
|
|
196
|
+
super({
|
|
197
|
+
name: "LimitExceededException",
|
|
198
|
+
$fault: "client",
|
|
199
|
+
...opts,
|
|
200
|
+
});
|
|
201
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
202
|
+
this.Message = opts.Message;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
class PolicyNotFoundException extends MediaStoreServiceException {
|
|
206
|
+
name = "PolicyNotFoundException";
|
|
207
|
+
$fault = "client";
|
|
208
|
+
Message;
|
|
209
|
+
constructor(opts) {
|
|
210
|
+
super({
|
|
211
|
+
name: "PolicyNotFoundException",
|
|
212
|
+
$fault: "client",
|
|
213
|
+
...opts,
|
|
214
|
+
});
|
|
215
|
+
Object.setPrototypeOf(this, PolicyNotFoundException.prototype);
|
|
216
|
+
this.Message = opts.Message;
|
|
217
|
+
}
|
|
918
218
|
}
|
|
919
|
-
__name(sharedHeaders, "sharedHeaders");
|
|
920
219
|
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
(
|
|
926
|
-
];
|
|
927
|
-
}).s("MediaStore_20170901", "CreateContainer", {}).n("MediaStoreClient", "CreateContainerCommand").f(void 0, void 0).ser(se_CreateContainerCommand).de(de_CreateContainerCommand).build() {
|
|
928
|
-
static {
|
|
929
|
-
__name(this, "CreateContainerCommand");
|
|
930
|
-
}
|
|
220
|
+
const se_CreateContainerCommand = async (input, context) => {
|
|
221
|
+
const headers = sharedHeaders("CreateContainer");
|
|
222
|
+
let body;
|
|
223
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
224
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
931
225
|
};
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
var DeleteContainerCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
938
|
-
return [
|
|
939
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
940
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
941
|
-
];
|
|
942
|
-
}).s("MediaStore_20170901", "DeleteContainer", {}).n("MediaStoreClient", "DeleteContainerCommand").f(void 0, void 0).ser(se_DeleteContainerCommand).de(de_DeleteContainerCommand).build() {
|
|
943
|
-
static {
|
|
944
|
-
__name(this, "DeleteContainerCommand");
|
|
945
|
-
}
|
|
226
|
+
const se_DeleteContainerCommand = async (input, context) => {
|
|
227
|
+
const headers = sharedHeaders("DeleteContainer");
|
|
228
|
+
let body;
|
|
229
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
230
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
946
231
|
};
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
var DeleteContainerPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
953
|
-
return [
|
|
954
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
955
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
956
|
-
];
|
|
957
|
-
}).s("MediaStore_20170901", "DeleteContainerPolicy", {}).n("MediaStoreClient", "DeleteContainerPolicyCommand").f(void 0, void 0).ser(se_DeleteContainerPolicyCommand).de(de_DeleteContainerPolicyCommand).build() {
|
|
958
|
-
static {
|
|
959
|
-
__name(this, "DeleteContainerPolicyCommand");
|
|
960
|
-
}
|
|
232
|
+
const se_DeleteContainerPolicyCommand = async (input, context) => {
|
|
233
|
+
const headers = sharedHeaders("DeleteContainerPolicy");
|
|
234
|
+
let body;
|
|
235
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
236
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
961
237
|
};
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
var DeleteCorsPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
968
|
-
return [
|
|
969
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
970
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
971
|
-
];
|
|
972
|
-
}).s("MediaStore_20170901", "DeleteCorsPolicy", {}).n("MediaStoreClient", "DeleteCorsPolicyCommand").f(void 0, void 0).ser(se_DeleteCorsPolicyCommand).de(de_DeleteCorsPolicyCommand).build() {
|
|
973
|
-
static {
|
|
974
|
-
__name(this, "DeleteCorsPolicyCommand");
|
|
975
|
-
}
|
|
238
|
+
const se_DeleteCorsPolicyCommand = async (input, context) => {
|
|
239
|
+
const headers = sharedHeaders("DeleteCorsPolicy");
|
|
240
|
+
let body;
|
|
241
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
242
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
976
243
|
};
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
var DeleteLifecyclePolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
983
|
-
return [
|
|
984
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
985
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
986
|
-
];
|
|
987
|
-
}).s("MediaStore_20170901", "DeleteLifecyclePolicy", {}).n("MediaStoreClient", "DeleteLifecyclePolicyCommand").f(void 0, void 0).ser(se_DeleteLifecyclePolicyCommand).de(de_DeleteLifecyclePolicyCommand).build() {
|
|
988
|
-
static {
|
|
989
|
-
__name(this, "DeleteLifecyclePolicyCommand");
|
|
990
|
-
}
|
|
244
|
+
const se_DeleteLifecyclePolicyCommand = async (input, context) => {
|
|
245
|
+
const headers = sharedHeaders("DeleteLifecyclePolicy");
|
|
246
|
+
let body;
|
|
247
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
248
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
991
249
|
};
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
var DeleteMetricPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
998
|
-
return [
|
|
999
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1000
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1001
|
-
];
|
|
1002
|
-
}).s("MediaStore_20170901", "DeleteMetricPolicy", {}).n("MediaStoreClient", "DeleteMetricPolicyCommand").f(void 0, void 0).ser(se_DeleteMetricPolicyCommand).de(de_DeleteMetricPolicyCommand).build() {
|
|
1003
|
-
static {
|
|
1004
|
-
__name(this, "DeleteMetricPolicyCommand");
|
|
1005
|
-
}
|
|
250
|
+
const se_DeleteMetricPolicyCommand = async (input, context) => {
|
|
251
|
+
const headers = sharedHeaders("DeleteMetricPolicy");
|
|
252
|
+
let body;
|
|
253
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
254
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1006
255
|
};
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
var DescribeContainerCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1013
|
-
return [
|
|
1014
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1015
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1016
|
-
];
|
|
1017
|
-
}).s("MediaStore_20170901", "DescribeContainer", {}).n("MediaStoreClient", "DescribeContainerCommand").f(void 0, void 0).ser(se_DescribeContainerCommand).de(de_DescribeContainerCommand).build() {
|
|
1018
|
-
static {
|
|
1019
|
-
__name(this, "DescribeContainerCommand");
|
|
1020
|
-
}
|
|
256
|
+
const se_DescribeContainerCommand = async (input, context) => {
|
|
257
|
+
const headers = sharedHeaders("DescribeContainer");
|
|
258
|
+
let body;
|
|
259
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
260
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1021
261
|
};
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
var GetContainerPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1028
|
-
return [
|
|
1029
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1030
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1031
|
-
];
|
|
1032
|
-
}).s("MediaStore_20170901", "GetContainerPolicy", {}).n("MediaStoreClient", "GetContainerPolicyCommand").f(void 0, void 0).ser(se_GetContainerPolicyCommand).de(de_GetContainerPolicyCommand).build() {
|
|
1033
|
-
static {
|
|
1034
|
-
__name(this, "GetContainerPolicyCommand");
|
|
1035
|
-
}
|
|
262
|
+
const se_GetContainerPolicyCommand = async (input, context) => {
|
|
263
|
+
const headers = sharedHeaders("GetContainerPolicy");
|
|
264
|
+
let body;
|
|
265
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
266
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1036
267
|
};
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
var GetCorsPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1043
|
-
return [
|
|
1044
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1045
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1046
|
-
];
|
|
1047
|
-
}).s("MediaStore_20170901", "GetCorsPolicy", {}).n("MediaStoreClient", "GetCorsPolicyCommand").f(void 0, void 0).ser(se_GetCorsPolicyCommand).de(de_GetCorsPolicyCommand).build() {
|
|
1048
|
-
static {
|
|
1049
|
-
__name(this, "GetCorsPolicyCommand");
|
|
1050
|
-
}
|
|
268
|
+
const se_GetCorsPolicyCommand = async (input, context) => {
|
|
269
|
+
const headers = sharedHeaders("GetCorsPolicy");
|
|
270
|
+
let body;
|
|
271
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
272
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1051
273
|
};
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
var GetLifecyclePolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1058
|
-
return [
|
|
1059
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1060
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1061
|
-
];
|
|
1062
|
-
}).s("MediaStore_20170901", "GetLifecyclePolicy", {}).n("MediaStoreClient", "GetLifecyclePolicyCommand").f(void 0, void 0).ser(se_GetLifecyclePolicyCommand).de(de_GetLifecyclePolicyCommand).build() {
|
|
1063
|
-
static {
|
|
1064
|
-
__name(this, "GetLifecyclePolicyCommand");
|
|
1065
|
-
}
|
|
274
|
+
const se_GetLifecyclePolicyCommand = async (input, context) => {
|
|
275
|
+
const headers = sharedHeaders("GetLifecyclePolicy");
|
|
276
|
+
let body;
|
|
277
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
278
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1066
279
|
};
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
var GetMetricPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1073
|
-
return [
|
|
1074
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1075
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1076
|
-
];
|
|
1077
|
-
}).s("MediaStore_20170901", "GetMetricPolicy", {}).n("MediaStoreClient", "GetMetricPolicyCommand").f(void 0, void 0).ser(se_GetMetricPolicyCommand).de(de_GetMetricPolicyCommand).build() {
|
|
1078
|
-
static {
|
|
1079
|
-
__name(this, "GetMetricPolicyCommand");
|
|
1080
|
-
}
|
|
280
|
+
const se_GetMetricPolicyCommand = async (input, context) => {
|
|
281
|
+
const headers = sharedHeaders("GetMetricPolicy");
|
|
282
|
+
let body;
|
|
283
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
284
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1081
285
|
};
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
var ListContainersCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1088
|
-
return [
|
|
1089
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1090
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1091
|
-
];
|
|
1092
|
-
}).s("MediaStore_20170901", "ListContainers", {}).n("MediaStoreClient", "ListContainersCommand").f(void 0, void 0).ser(se_ListContainersCommand).de(de_ListContainersCommand).build() {
|
|
1093
|
-
static {
|
|
1094
|
-
__name(this, "ListContainersCommand");
|
|
1095
|
-
}
|
|
286
|
+
const se_ListContainersCommand = async (input, context) => {
|
|
287
|
+
const headers = sharedHeaders("ListContainers");
|
|
288
|
+
let body;
|
|
289
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
290
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1096
291
|
};
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1103
|
-
return [
|
|
1104
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1105
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1106
|
-
];
|
|
1107
|
-
}).s("MediaStore_20170901", "ListTagsForResource", {}).n("MediaStoreClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
1108
|
-
static {
|
|
1109
|
-
__name(this, "ListTagsForResourceCommand");
|
|
1110
|
-
}
|
|
292
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
293
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
294
|
+
let body;
|
|
295
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
296
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1111
297
|
};
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
var PutContainerPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1118
|
-
return [
|
|
1119
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1120
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1121
|
-
];
|
|
1122
|
-
}).s("MediaStore_20170901", "PutContainerPolicy", {}).n("MediaStoreClient", "PutContainerPolicyCommand").f(void 0, void 0).ser(se_PutContainerPolicyCommand).de(de_PutContainerPolicyCommand).build() {
|
|
1123
|
-
static {
|
|
1124
|
-
__name(this, "PutContainerPolicyCommand");
|
|
1125
|
-
}
|
|
298
|
+
const se_PutContainerPolicyCommand = async (input, context) => {
|
|
299
|
+
const headers = sharedHeaders("PutContainerPolicy");
|
|
300
|
+
let body;
|
|
301
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
302
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1126
303
|
};
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
var PutCorsPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1133
|
-
return [
|
|
1134
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1135
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1136
|
-
];
|
|
1137
|
-
}).s("MediaStore_20170901", "PutCorsPolicy", {}).n("MediaStoreClient", "PutCorsPolicyCommand").f(void 0, void 0).ser(se_PutCorsPolicyCommand).de(de_PutCorsPolicyCommand).build() {
|
|
1138
|
-
static {
|
|
1139
|
-
__name(this, "PutCorsPolicyCommand");
|
|
1140
|
-
}
|
|
304
|
+
const se_PutCorsPolicyCommand = async (input, context) => {
|
|
305
|
+
const headers = sharedHeaders("PutCorsPolicy");
|
|
306
|
+
let body;
|
|
307
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
308
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1141
309
|
};
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
static {
|
|
1154
|
-
__name(this, "PutLifecyclePolicyCommand");
|
|
1155
|
-
}
|
|
310
|
+
const se_PutLifecyclePolicyCommand = async (input, context) => {
|
|
311
|
+
const headers = sharedHeaders("PutLifecyclePolicy");
|
|
312
|
+
let body;
|
|
313
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
314
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
315
|
+
};
|
|
316
|
+
const se_PutMetricPolicyCommand = async (input, context) => {
|
|
317
|
+
const headers = sharedHeaders("PutMetricPolicy");
|
|
318
|
+
let body;
|
|
319
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
320
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1156
321
|
};
|
|
322
|
+
const se_StartAccessLoggingCommand = async (input, context) => {
|
|
323
|
+
const headers = sharedHeaders("StartAccessLogging");
|
|
324
|
+
let body;
|
|
325
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
326
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
327
|
+
};
|
|
328
|
+
const se_StopAccessLoggingCommand = async (input, context) => {
|
|
329
|
+
const headers = sharedHeaders("StopAccessLogging");
|
|
330
|
+
let body;
|
|
331
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
332
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
333
|
+
};
|
|
334
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
335
|
+
const headers = sharedHeaders("TagResource");
|
|
336
|
+
let body;
|
|
337
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
338
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
339
|
+
};
|
|
340
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
341
|
+
const headers = sharedHeaders("UntagResource");
|
|
342
|
+
let body;
|
|
343
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
344
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
345
|
+
};
|
|
346
|
+
const de_CreateContainerCommand = async (output, context) => {
|
|
347
|
+
if (output.statusCode >= 300) {
|
|
348
|
+
return de_CommandError(output, context);
|
|
349
|
+
}
|
|
350
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
351
|
+
let contents = {};
|
|
352
|
+
contents = de_CreateContainerOutput(data);
|
|
353
|
+
const response = {
|
|
354
|
+
$metadata: deserializeMetadata(output),
|
|
355
|
+
...contents,
|
|
356
|
+
};
|
|
357
|
+
return response;
|
|
358
|
+
};
|
|
359
|
+
const de_DeleteContainerCommand = async (output, context) => {
|
|
360
|
+
if (output.statusCode >= 300) {
|
|
361
|
+
return de_CommandError(output, context);
|
|
362
|
+
}
|
|
363
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
364
|
+
let contents = {};
|
|
365
|
+
contents = smithyClient._json(data);
|
|
366
|
+
const response = {
|
|
367
|
+
$metadata: deserializeMetadata(output),
|
|
368
|
+
...contents,
|
|
369
|
+
};
|
|
370
|
+
return response;
|
|
371
|
+
};
|
|
372
|
+
const de_DeleteContainerPolicyCommand = async (output, context) => {
|
|
373
|
+
if (output.statusCode >= 300) {
|
|
374
|
+
return de_CommandError(output, context);
|
|
375
|
+
}
|
|
376
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
377
|
+
let contents = {};
|
|
378
|
+
contents = smithyClient._json(data);
|
|
379
|
+
const response = {
|
|
380
|
+
$metadata: deserializeMetadata(output),
|
|
381
|
+
...contents,
|
|
382
|
+
};
|
|
383
|
+
return response;
|
|
384
|
+
};
|
|
385
|
+
const de_DeleteCorsPolicyCommand = async (output, context) => {
|
|
386
|
+
if (output.statusCode >= 300) {
|
|
387
|
+
return de_CommandError(output, context);
|
|
388
|
+
}
|
|
389
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
390
|
+
let contents = {};
|
|
391
|
+
contents = smithyClient._json(data);
|
|
392
|
+
const response = {
|
|
393
|
+
$metadata: deserializeMetadata(output),
|
|
394
|
+
...contents,
|
|
395
|
+
};
|
|
396
|
+
return response;
|
|
397
|
+
};
|
|
398
|
+
const de_DeleteLifecyclePolicyCommand = async (output, context) => {
|
|
399
|
+
if (output.statusCode >= 300) {
|
|
400
|
+
return de_CommandError(output, context);
|
|
401
|
+
}
|
|
402
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
403
|
+
let contents = {};
|
|
404
|
+
contents = smithyClient._json(data);
|
|
405
|
+
const response = {
|
|
406
|
+
$metadata: deserializeMetadata(output),
|
|
407
|
+
...contents,
|
|
408
|
+
};
|
|
409
|
+
return response;
|
|
410
|
+
};
|
|
411
|
+
const de_DeleteMetricPolicyCommand = async (output, context) => {
|
|
412
|
+
if (output.statusCode >= 300) {
|
|
413
|
+
return de_CommandError(output, context);
|
|
414
|
+
}
|
|
415
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
416
|
+
let contents = {};
|
|
417
|
+
contents = smithyClient._json(data);
|
|
418
|
+
const response = {
|
|
419
|
+
$metadata: deserializeMetadata(output),
|
|
420
|
+
...contents,
|
|
421
|
+
};
|
|
422
|
+
return response;
|
|
423
|
+
};
|
|
424
|
+
const de_DescribeContainerCommand = async (output, context) => {
|
|
425
|
+
if (output.statusCode >= 300) {
|
|
426
|
+
return de_CommandError(output, context);
|
|
427
|
+
}
|
|
428
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
429
|
+
let contents = {};
|
|
430
|
+
contents = de_DescribeContainerOutput(data);
|
|
431
|
+
const response = {
|
|
432
|
+
$metadata: deserializeMetadata(output),
|
|
433
|
+
...contents,
|
|
434
|
+
};
|
|
435
|
+
return response;
|
|
436
|
+
};
|
|
437
|
+
const de_GetContainerPolicyCommand = async (output, context) => {
|
|
438
|
+
if (output.statusCode >= 300) {
|
|
439
|
+
return de_CommandError(output, context);
|
|
440
|
+
}
|
|
441
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
442
|
+
let contents = {};
|
|
443
|
+
contents = smithyClient._json(data);
|
|
444
|
+
const response = {
|
|
445
|
+
$metadata: deserializeMetadata(output),
|
|
446
|
+
...contents,
|
|
447
|
+
};
|
|
448
|
+
return response;
|
|
449
|
+
};
|
|
450
|
+
const de_GetCorsPolicyCommand = async (output, context) => {
|
|
451
|
+
if (output.statusCode >= 300) {
|
|
452
|
+
return de_CommandError(output, context);
|
|
453
|
+
}
|
|
454
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
455
|
+
let contents = {};
|
|
456
|
+
contents = smithyClient._json(data);
|
|
457
|
+
const response = {
|
|
458
|
+
$metadata: deserializeMetadata(output),
|
|
459
|
+
...contents,
|
|
460
|
+
};
|
|
461
|
+
return response;
|
|
462
|
+
};
|
|
463
|
+
const de_GetLifecyclePolicyCommand = async (output, context) => {
|
|
464
|
+
if (output.statusCode >= 300) {
|
|
465
|
+
return de_CommandError(output, context);
|
|
466
|
+
}
|
|
467
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
468
|
+
let contents = {};
|
|
469
|
+
contents = smithyClient._json(data);
|
|
470
|
+
const response = {
|
|
471
|
+
$metadata: deserializeMetadata(output),
|
|
472
|
+
...contents,
|
|
473
|
+
};
|
|
474
|
+
return response;
|
|
475
|
+
};
|
|
476
|
+
const de_GetMetricPolicyCommand = async (output, context) => {
|
|
477
|
+
if (output.statusCode >= 300) {
|
|
478
|
+
return de_CommandError(output, context);
|
|
479
|
+
}
|
|
480
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
481
|
+
let contents = {};
|
|
482
|
+
contents = smithyClient._json(data);
|
|
483
|
+
const response = {
|
|
484
|
+
$metadata: deserializeMetadata(output),
|
|
485
|
+
...contents,
|
|
486
|
+
};
|
|
487
|
+
return response;
|
|
488
|
+
};
|
|
489
|
+
const de_ListContainersCommand = async (output, context) => {
|
|
490
|
+
if (output.statusCode >= 300) {
|
|
491
|
+
return de_CommandError(output, context);
|
|
492
|
+
}
|
|
493
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
494
|
+
let contents = {};
|
|
495
|
+
contents = de_ListContainersOutput(data);
|
|
496
|
+
const response = {
|
|
497
|
+
$metadata: deserializeMetadata(output),
|
|
498
|
+
...contents,
|
|
499
|
+
};
|
|
500
|
+
return response;
|
|
501
|
+
};
|
|
502
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
503
|
+
if (output.statusCode >= 300) {
|
|
504
|
+
return de_CommandError(output, context);
|
|
505
|
+
}
|
|
506
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
507
|
+
let contents = {};
|
|
508
|
+
contents = smithyClient._json(data);
|
|
509
|
+
const response = {
|
|
510
|
+
$metadata: deserializeMetadata(output),
|
|
511
|
+
...contents,
|
|
512
|
+
};
|
|
513
|
+
return response;
|
|
514
|
+
};
|
|
515
|
+
const de_PutContainerPolicyCommand = async (output, context) => {
|
|
516
|
+
if (output.statusCode >= 300) {
|
|
517
|
+
return de_CommandError(output, context);
|
|
518
|
+
}
|
|
519
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
520
|
+
let contents = {};
|
|
521
|
+
contents = smithyClient._json(data);
|
|
522
|
+
const response = {
|
|
523
|
+
$metadata: deserializeMetadata(output),
|
|
524
|
+
...contents,
|
|
525
|
+
};
|
|
526
|
+
return response;
|
|
527
|
+
};
|
|
528
|
+
const de_PutCorsPolicyCommand = async (output, context) => {
|
|
529
|
+
if (output.statusCode >= 300) {
|
|
530
|
+
return de_CommandError(output, context);
|
|
531
|
+
}
|
|
532
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
533
|
+
let contents = {};
|
|
534
|
+
contents = smithyClient._json(data);
|
|
535
|
+
const response = {
|
|
536
|
+
$metadata: deserializeMetadata(output),
|
|
537
|
+
...contents,
|
|
538
|
+
};
|
|
539
|
+
return response;
|
|
540
|
+
};
|
|
541
|
+
const de_PutLifecyclePolicyCommand = async (output, context) => {
|
|
542
|
+
if (output.statusCode >= 300) {
|
|
543
|
+
return de_CommandError(output, context);
|
|
544
|
+
}
|
|
545
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
546
|
+
let contents = {};
|
|
547
|
+
contents = smithyClient._json(data);
|
|
548
|
+
const response = {
|
|
549
|
+
$metadata: deserializeMetadata(output),
|
|
550
|
+
...contents,
|
|
551
|
+
};
|
|
552
|
+
return response;
|
|
553
|
+
};
|
|
554
|
+
const de_PutMetricPolicyCommand = async (output, context) => {
|
|
555
|
+
if (output.statusCode >= 300) {
|
|
556
|
+
return de_CommandError(output, context);
|
|
557
|
+
}
|
|
558
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
559
|
+
let contents = {};
|
|
560
|
+
contents = smithyClient._json(data);
|
|
561
|
+
const response = {
|
|
562
|
+
$metadata: deserializeMetadata(output),
|
|
563
|
+
...contents,
|
|
564
|
+
};
|
|
565
|
+
return response;
|
|
566
|
+
};
|
|
567
|
+
const de_StartAccessLoggingCommand = async (output, context) => {
|
|
568
|
+
if (output.statusCode >= 300) {
|
|
569
|
+
return de_CommandError(output, context);
|
|
570
|
+
}
|
|
571
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
572
|
+
let contents = {};
|
|
573
|
+
contents = smithyClient._json(data);
|
|
574
|
+
const response = {
|
|
575
|
+
$metadata: deserializeMetadata(output),
|
|
576
|
+
...contents,
|
|
577
|
+
};
|
|
578
|
+
return response;
|
|
579
|
+
};
|
|
580
|
+
const de_StopAccessLoggingCommand = async (output, context) => {
|
|
581
|
+
if (output.statusCode >= 300) {
|
|
582
|
+
return de_CommandError(output, context);
|
|
583
|
+
}
|
|
584
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
585
|
+
let contents = {};
|
|
586
|
+
contents = smithyClient._json(data);
|
|
587
|
+
const response = {
|
|
588
|
+
$metadata: deserializeMetadata(output),
|
|
589
|
+
...contents,
|
|
590
|
+
};
|
|
591
|
+
return response;
|
|
592
|
+
};
|
|
593
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
594
|
+
if (output.statusCode >= 300) {
|
|
595
|
+
return de_CommandError(output, context);
|
|
596
|
+
}
|
|
597
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
598
|
+
let contents = {};
|
|
599
|
+
contents = smithyClient._json(data);
|
|
600
|
+
const response = {
|
|
601
|
+
$metadata: deserializeMetadata(output),
|
|
602
|
+
...contents,
|
|
603
|
+
};
|
|
604
|
+
return response;
|
|
605
|
+
};
|
|
606
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
607
|
+
if (output.statusCode >= 300) {
|
|
608
|
+
return de_CommandError(output, context);
|
|
609
|
+
}
|
|
610
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
611
|
+
let contents = {};
|
|
612
|
+
contents = smithyClient._json(data);
|
|
613
|
+
const response = {
|
|
614
|
+
$metadata: deserializeMetadata(output),
|
|
615
|
+
...contents,
|
|
616
|
+
};
|
|
617
|
+
return response;
|
|
618
|
+
};
|
|
619
|
+
const de_CommandError = async (output, context) => {
|
|
620
|
+
const parsedOutput = {
|
|
621
|
+
...output,
|
|
622
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
623
|
+
};
|
|
624
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
625
|
+
switch (errorCode) {
|
|
626
|
+
case "ContainerInUseException":
|
|
627
|
+
case "com.amazonaws.mediastore#ContainerInUseException":
|
|
628
|
+
throw await de_ContainerInUseExceptionRes(parsedOutput);
|
|
629
|
+
case "InternalServerError":
|
|
630
|
+
case "com.amazonaws.mediastore#InternalServerError":
|
|
631
|
+
throw await de_InternalServerErrorRes(parsedOutput);
|
|
632
|
+
case "LimitExceededException":
|
|
633
|
+
case "com.amazonaws.mediastore#LimitExceededException":
|
|
634
|
+
throw await de_LimitExceededExceptionRes(parsedOutput);
|
|
635
|
+
case "ContainerNotFoundException":
|
|
636
|
+
case "com.amazonaws.mediastore#ContainerNotFoundException":
|
|
637
|
+
throw await de_ContainerNotFoundExceptionRes(parsedOutput);
|
|
638
|
+
case "PolicyNotFoundException":
|
|
639
|
+
case "com.amazonaws.mediastore#PolicyNotFoundException":
|
|
640
|
+
throw await de_PolicyNotFoundExceptionRes(parsedOutput);
|
|
641
|
+
case "CorsPolicyNotFoundException":
|
|
642
|
+
case "com.amazonaws.mediastore#CorsPolicyNotFoundException":
|
|
643
|
+
throw await de_CorsPolicyNotFoundExceptionRes(parsedOutput);
|
|
644
|
+
default:
|
|
645
|
+
const parsedBody = parsedOutput.body;
|
|
646
|
+
return throwDefaultError({
|
|
647
|
+
output,
|
|
648
|
+
parsedBody,
|
|
649
|
+
errorCode,
|
|
650
|
+
});
|
|
651
|
+
}
|
|
652
|
+
};
|
|
653
|
+
const de_ContainerInUseExceptionRes = async (parsedOutput, context) => {
|
|
654
|
+
const body = parsedOutput.body;
|
|
655
|
+
const deserialized = smithyClient._json(body);
|
|
656
|
+
const exception = new ContainerInUseException({
|
|
657
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
658
|
+
...deserialized,
|
|
659
|
+
});
|
|
660
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
661
|
+
};
|
|
662
|
+
const de_ContainerNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
663
|
+
const body = parsedOutput.body;
|
|
664
|
+
const deserialized = smithyClient._json(body);
|
|
665
|
+
const exception = new ContainerNotFoundException({
|
|
666
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
667
|
+
...deserialized,
|
|
668
|
+
});
|
|
669
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
670
|
+
};
|
|
671
|
+
const de_CorsPolicyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
672
|
+
const body = parsedOutput.body;
|
|
673
|
+
const deserialized = smithyClient._json(body);
|
|
674
|
+
const exception = new CorsPolicyNotFoundException({
|
|
675
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
676
|
+
...deserialized,
|
|
677
|
+
});
|
|
678
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
679
|
+
};
|
|
680
|
+
const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
681
|
+
const body = parsedOutput.body;
|
|
682
|
+
const deserialized = smithyClient._json(body);
|
|
683
|
+
const exception = new InternalServerError({
|
|
684
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
685
|
+
...deserialized,
|
|
686
|
+
});
|
|
687
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
688
|
+
};
|
|
689
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
690
|
+
const body = parsedOutput.body;
|
|
691
|
+
const deserialized = smithyClient._json(body);
|
|
692
|
+
const exception = new LimitExceededException({
|
|
693
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
694
|
+
...deserialized,
|
|
695
|
+
});
|
|
696
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
697
|
+
};
|
|
698
|
+
const de_PolicyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
699
|
+
const body = parsedOutput.body;
|
|
700
|
+
const deserialized = smithyClient._json(body);
|
|
701
|
+
const exception = new PolicyNotFoundException({
|
|
702
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
703
|
+
...deserialized,
|
|
704
|
+
});
|
|
705
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
706
|
+
};
|
|
707
|
+
const de_Container = (output, context) => {
|
|
708
|
+
return smithyClient.take(output, {
|
|
709
|
+
ARN: smithyClient.expectString,
|
|
710
|
+
AccessLoggingEnabled: smithyClient.expectBoolean,
|
|
711
|
+
CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
712
|
+
Endpoint: smithyClient.expectString,
|
|
713
|
+
Name: smithyClient.expectString,
|
|
714
|
+
Status: smithyClient.expectString,
|
|
715
|
+
});
|
|
716
|
+
};
|
|
717
|
+
const de_ContainerList = (output, context) => {
|
|
718
|
+
const retVal = (output || [])
|
|
719
|
+
.filter((e) => e != null)
|
|
720
|
+
.map((entry) => {
|
|
721
|
+
return de_Container(entry);
|
|
722
|
+
});
|
|
723
|
+
return retVal;
|
|
724
|
+
};
|
|
725
|
+
const de_CreateContainerOutput = (output, context) => {
|
|
726
|
+
return smithyClient.take(output, {
|
|
727
|
+
Container: (_) => de_Container(_),
|
|
728
|
+
});
|
|
729
|
+
};
|
|
730
|
+
const de_DescribeContainerOutput = (output, context) => {
|
|
731
|
+
return smithyClient.take(output, {
|
|
732
|
+
Container: (_) => de_Container(_),
|
|
733
|
+
});
|
|
734
|
+
};
|
|
735
|
+
const de_ListContainersOutput = (output, context) => {
|
|
736
|
+
return smithyClient.take(output, {
|
|
737
|
+
Containers: (_) => de_ContainerList(_),
|
|
738
|
+
NextToken: smithyClient.expectString,
|
|
739
|
+
});
|
|
740
|
+
};
|
|
741
|
+
const deserializeMetadata = (output) => ({
|
|
742
|
+
httpStatusCode: output.statusCode,
|
|
743
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
744
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
745
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
746
|
+
});
|
|
747
|
+
const throwDefaultError = smithyClient.withBaseException(MediaStoreServiceException);
|
|
748
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
749
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
750
|
+
const contents = {
|
|
751
|
+
protocol,
|
|
752
|
+
hostname,
|
|
753
|
+
port,
|
|
754
|
+
method: "POST",
|
|
755
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
756
|
+
headers,
|
|
757
|
+
};
|
|
758
|
+
if (body !== undefined) {
|
|
759
|
+
contents.body = body;
|
|
760
|
+
}
|
|
761
|
+
return new protocolHttp.HttpRequest(contents);
|
|
762
|
+
};
|
|
763
|
+
function sharedHeaders(operation) {
|
|
764
|
+
return {
|
|
765
|
+
"content-type": "application/x-amz-json-1.1",
|
|
766
|
+
"x-amz-target": `MediaStore_20170901.${operation}`,
|
|
767
|
+
};
|
|
768
|
+
}
|
|
1157
769
|
|
|
1158
|
-
|
|
770
|
+
class CreateContainerCommand extends smithyClient.Command
|
|
771
|
+
.classBuilder()
|
|
772
|
+
.ep(commonParams)
|
|
773
|
+
.m(function (Command, cs, config, o) {
|
|
774
|
+
return [
|
|
775
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
776
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
777
|
+
];
|
|
778
|
+
})
|
|
779
|
+
.s("MediaStore_20170901", "CreateContainer", {})
|
|
780
|
+
.n("MediaStoreClient", "CreateContainerCommand")
|
|
781
|
+
.f(void 0, void 0)
|
|
782
|
+
.ser(se_CreateContainerCommand)
|
|
783
|
+
.de(de_CreateContainerCommand)
|
|
784
|
+
.build() {
|
|
785
|
+
}
|
|
1159
786
|
|
|
787
|
+
class DeleteContainerCommand extends smithyClient.Command
|
|
788
|
+
.classBuilder()
|
|
789
|
+
.ep(commonParams)
|
|
790
|
+
.m(function (Command, cs, config, o) {
|
|
791
|
+
return [
|
|
792
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
793
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
794
|
+
];
|
|
795
|
+
})
|
|
796
|
+
.s("MediaStore_20170901", "DeleteContainer", {})
|
|
797
|
+
.n("MediaStoreClient", "DeleteContainerCommand")
|
|
798
|
+
.f(void 0, void 0)
|
|
799
|
+
.ser(se_DeleteContainerCommand)
|
|
800
|
+
.de(de_DeleteContainerCommand)
|
|
801
|
+
.build() {
|
|
802
|
+
}
|
|
1160
803
|
|
|
804
|
+
class DeleteContainerPolicyCommand extends smithyClient.Command
|
|
805
|
+
.classBuilder()
|
|
806
|
+
.ep(commonParams)
|
|
807
|
+
.m(function (Command, cs, config, o) {
|
|
808
|
+
return [
|
|
809
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
810
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
811
|
+
];
|
|
812
|
+
})
|
|
813
|
+
.s("MediaStore_20170901", "DeleteContainerPolicy", {})
|
|
814
|
+
.n("MediaStoreClient", "DeleteContainerPolicyCommand")
|
|
815
|
+
.f(void 0, void 0)
|
|
816
|
+
.ser(se_DeleteContainerPolicyCommand)
|
|
817
|
+
.de(de_DeleteContainerPolicyCommand)
|
|
818
|
+
.build() {
|
|
819
|
+
}
|
|
1161
820
|
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
(
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
}
|
|
821
|
+
class DeleteCorsPolicyCommand extends smithyClient.Command
|
|
822
|
+
.classBuilder()
|
|
823
|
+
.ep(commonParams)
|
|
824
|
+
.m(function (Command, cs, config, o) {
|
|
825
|
+
return [
|
|
826
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
827
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
828
|
+
];
|
|
829
|
+
})
|
|
830
|
+
.s("MediaStore_20170901", "DeleteCorsPolicy", {})
|
|
831
|
+
.n("MediaStoreClient", "DeleteCorsPolicyCommand")
|
|
832
|
+
.f(void 0, void 0)
|
|
833
|
+
.ser(se_DeleteCorsPolicyCommand)
|
|
834
|
+
.de(de_DeleteCorsPolicyCommand)
|
|
835
|
+
.build() {
|
|
836
|
+
}
|
|
1172
837
|
|
|
1173
|
-
|
|
838
|
+
class DeleteLifecyclePolicyCommand extends smithyClient.Command
|
|
839
|
+
.classBuilder()
|
|
840
|
+
.ep(commonParams)
|
|
841
|
+
.m(function (Command, cs, config, o) {
|
|
842
|
+
return [
|
|
843
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
844
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
845
|
+
];
|
|
846
|
+
})
|
|
847
|
+
.s("MediaStore_20170901", "DeleteLifecyclePolicy", {})
|
|
848
|
+
.n("MediaStoreClient", "DeleteLifecyclePolicyCommand")
|
|
849
|
+
.f(void 0, void 0)
|
|
850
|
+
.ser(se_DeleteLifecyclePolicyCommand)
|
|
851
|
+
.de(de_DeleteLifecyclePolicyCommand)
|
|
852
|
+
.build() {
|
|
853
|
+
}
|
|
1174
854
|
|
|
855
|
+
class DeleteMetricPolicyCommand extends smithyClient.Command
|
|
856
|
+
.classBuilder()
|
|
857
|
+
.ep(commonParams)
|
|
858
|
+
.m(function (Command, cs, config, o) {
|
|
859
|
+
return [
|
|
860
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
861
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
862
|
+
];
|
|
863
|
+
})
|
|
864
|
+
.s("MediaStore_20170901", "DeleteMetricPolicy", {})
|
|
865
|
+
.n("MediaStoreClient", "DeleteMetricPolicyCommand")
|
|
866
|
+
.f(void 0, void 0)
|
|
867
|
+
.ser(se_DeleteMetricPolicyCommand)
|
|
868
|
+
.de(de_DeleteMetricPolicyCommand)
|
|
869
|
+
.build() {
|
|
870
|
+
}
|
|
1175
871
|
|
|
872
|
+
class DescribeContainerCommand extends smithyClient.Command
|
|
873
|
+
.classBuilder()
|
|
874
|
+
.ep(commonParams)
|
|
875
|
+
.m(function (Command, cs, config, o) {
|
|
876
|
+
return [
|
|
877
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
878
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
879
|
+
];
|
|
880
|
+
})
|
|
881
|
+
.s("MediaStore_20170901", "DescribeContainer", {})
|
|
882
|
+
.n("MediaStoreClient", "DescribeContainerCommand")
|
|
883
|
+
.f(void 0, void 0)
|
|
884
|
+
.ser(se_DescribeContainerCommand)
|
|
885
|
+
.de(de_DescribeContainerCommand)
|
|
886
|
+
.build() {
|
|
887
|
+
}
|
|
1176
888
|
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
(
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
}
|
|
889
|
+
class GetContainerPolicyCommand extends smithyClient.Command
|
|
890
|
+
.classBuilder()
|
|
891
|
+
.ep(commonParams)
|
|
892
|
+
.m(function (Command, cs, config, o) {
|
|
893
|
+
return [
|
|
894
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
895
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
896
|
+
];
|
|
897
|
+
})
|
|
898
|
+
.s("MediaStore_20170901", "GetContainerPolicy", {})
|
|
899
|
+
.n("MediaStoreClient", "GetContainerPolicyCommand")
|
|
900
|
+
.f(void 0, void 0)
|
|
901
|
+
.ser(se_GetContainerPolicyCommand)
|
|
902
|
+
.de(de_GetContainerPolicyCommand)
|
|
903
|
+
.build() {
|
|
904
|
+
}
|
|
1187
905
|
|
|
1188
|
-
|
|
906
|
+
class GetCorsPolicyCommand extends smithyClient.Command
|
|
907
|
+
.classBuilder()
|
|
908
|
+
.ep(commonParams)
|
|
909
|
+
.m(function (Command, cs, config, o) {
|
|
910
|
+
return [
|
|
911
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
912
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
913
|
+
];
|
|
914
|
+
})
|
|
915
|
+
.s("MediaStore_20170901", "GetCorsPolicy", {})
|
|
916
|
+
.n("MediaStoreClient", "GetCorsPolicyCommand")
|
|
917
|
+
.f(void 0, void 0)
|
|
918
|
+
.ser(se_GetCorsPolicyCommand)
|
|
919
|
+
.de(de_GetCorsPolicyCommand)
|
|
920
|
+
.build() {
|
|
921
|
+
}
|
|
1189
922
|
|
|
923
|
+
class GetLifecyclePolicyCommand extends smithyClient.Command
|
|
924
|
+
.classBuilder()
|
|
925
|
+
.ep(commonParams)
|
|
926
|
+
.m(function (Command, cs, config, o) {
|
|
927
|
+
return [
|
|
928
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
929
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
930
|
+
];
|
|
931
|
+
})
|
|
932
|
+
.s("MediaStore_20170901", "GetLifecyclePolicy", {})
|
|
933
|
+
.n("MediaStoreClient", "GetLifecyclePolicyCommand")
|
|
934
|
+
.f(void 0, void 0)
|
|
935
|
+
.ser(se_GetLifecyclePolicyCommand)
|
|
936
|
+
.de(de_GetLifecyclePolicyCommand)
|
|
937
|
+
.build() {
|
|
938
|
+
}
|
|
1190
939
|
|
|
940
|
+
class GetMetricPolicyCommand extends smithyClient.Command
|
|
941
|
+
.classBuilder()
|
|
942
|
+
.ep(commonParams)
|
|
943
|
+
.m(function (Command, cs, config, o) {
|
|
944
|
+
return [
|
|
945
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
946
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
947
|
+
];
|
|
948
|
+
})
|
|
949
|
+
.s("MediaStore_20170901", "GetMetricPolicy", {})
|
|
950
|
+
.n("MediaStoreClient", "GetMetricPolicyCommand")
|
|
951
|
+
.f(void 0, void 0)
|
|
952
|
+
.ser(se_GetMetricPolicyCommand)
|
|
953
|
+
.de(de_GetMetricPolicyCommand)
|
|
954
|
+
.build() {
|
|
955
|
+
}
|
|
1191
956
|
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
(
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
}
|
|
957
|
+
class ListContainersCommand extends smithyClient.Command
|
|
958
|
+
.classBuilder()
|
|
959
|
+
.ep(commonParams)
|
|
960
|
+
.m(function (Command, cs, config, o) {
|
|
961
|
+
return [
|
|
962
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
963
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
964
|
+
];
|
|
965
|
+
})
|
|
966
|
+
.s("MediaStore_20170901", "ListContainers", {})
|
|
967
|
+
.n("MediaStoreClient", "ListContainersCommand")
|
|
968
|
+
.f(void 0, void 0)
|
|
969
|
+
.ser(se_ListContainersCommand)
|
|
970
|
+
.de(de_ListContainersCommand)
|
|
971
|
+
.build() {
|
|
972
|
+
}
|
|
1202
973
|
|
|
1203
|
-
|
|
974
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
975
|
+
.classBuilder()
|
|
976
|
+
.ep(commonParams)
|
|
977
|
+
.m(function (Command, cs, config, o) {
|
|
978
|
+
return [
|
|
979
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
980
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
981
|
+
];
|
|
982
|
+
})
|
|
983
|
+
.s("MediaStore_20170901", "ListTagsForResource", {})
|
|
984
|
+
.n("MediaStoreClient", "ListTagsForResourceCommand")
|
|
985
|
+
.f(void 0, void 0)
|
|
986
|
+
.ser(se_ListTagsForResourceCommand)
|
|
987
|
+
.de(de_ListTagsForResourceCommand)
|
|
988
|
+
.build() {
|
|
989
|
+
}
|
|
1204
990
|
|
|
991
|
+
class PutContainerPolicyCommand extends smithyClient.Command
|
|
992
|
+
.classBuilder()
|
|
993
|
+
.ep(commonParams)
|
|
994
|
+
.m(function (Command, cs, config, o) {
|
|
995
|
+
return [
|
|
996
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
997
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
998
|
+
];
|
|
999
|
+
})
|
|
1000
|
+
.s("MediaStore_20170901", "PutContainerPolicy", {})
|
|
1001
|
+
.n("MediaStoreClient", "PutContainerPolicyCommand")
|
|
1002
|
+
.f(void 0, void 0)
|
|
1003
|
+
.ser(se_PutContainerPolicyCommand)
|
|
1004
|
+
.de(de_PutContainerPolicyCommand)
|
|
1005
|
+
.build() {
|
|
1006
|
+
}
|
|
1205
1007
|
|
|
1008
|
+
class PutCorsPolicyCommand extends smithyClient.Command
|
|
1009
|
+
.classBuilder()
|
|
1010
|
+
.ep(commonParams)
|
|
1011
|
+
.m(function (Command, cs, config, o) {
|
|
1012
|
+
return [
|
|
1013
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1014
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1015
|
+
];
|
|
1016
|
+
})
|
|
1017
|
+
.s("MediaStore_20170901", "PutCorsPolicy", {})
|
|
1018
|
+
.n("MediaStoreClient", "PutCorsPolicyCommand")
|
|
1019
|
+
.f(void 0, void 0)
|
|
1020
|
+
.ser(se_PutCorsPolicyCommand)
|
|
1021
|
+
.de(de_PutCorsPolicyCommand)
|
|
1022
|
+
.build() {
|
|
1023
|
+
}
|
|
1206
1024
|
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
(
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
}
|
|
1025
|
+
class PutLifecyclePolicyCommand extends smithyClient.Command
|
|
1026
|
+
.classBuilder()
|
|
1027
|
+
.ep(commonParams)
|
|
1028
|
+
.m(function (Command, cs, config, o) {
|
|
1029
|
+
return [
|
|
1030
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1031
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1032
|
+
];
|
|
1033
|
+
})
|
|
1034
|
+
.s("MediaStore_20170901", "PutLifecyclePolicy", {})
|
|
1035
|
+
.n("MediaStoreClient", "PutLifecyclePolicyCommand")
|
|
1036
|
+
.f(void 0, void 0)
|
|
1037
|
+
.ser(se_PutLifecyclePolicyCommand)
|
|
1038
|
+
.de(de_PutLifecyclePolicyCommand)
|
|
1039
|
+
.build() {
|
|
1040
|
+
}
|
|
1217
1041
|
|
|
1218
|
-
|
|
1042
|
+
class PutMetricPolicyCommand extends smithyClient.Command
|
|
1043
|
+
.classBuilder()
|
|
1044
|
+
.ep(commonParams)
|
|
1045
|
+
.m(function (Command, cs, config, o) {
|
|
1046
|
+
return [
|
|
1047
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1048
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1049
|
+
];
|
|
1050
|
+
})
|
|
1051
|
+
.s("MediaStore_20170901", "PutMetricPolicy", {})
|
|
1052
|
+
.n("MediaStoreClient", "PutMetricPolicyCommand")
|
|
1053
|
+
.f(void 0, void 0)
|
|
1054
|
+
.ser(se_PutMetricPolicyCommand)
|
|
1055
|
+
.de(de_PutMetricPolicyCommand)
|
|
1056
|
+
.build() {
|
|
1057
|
+
}
|
|
1219
1058
|
|
|
1059
|
+
class StartAccessLoggingCommand extends smithyClient.Command
|
|
1060
|
+
.classBuilder()
|
|
1061
|
+
.ep(commonParams)
|
|
1062
|
+
.m(function (Command, cs, config, o) {
|
|
1063
|
+
return [
|
|
1064
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1065
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1066
|
+
];
|
|
1067
|
+
})
|
|
1068
|
+
.s("MediaStore_20170901", "StartAccessLogging", {})
|
|
1069
|
+
.n("MediaStoreClient", "StartAccessLoggingCommand")
|
|
1070
|
+
.f(void 0, void 0)
|
|
1071
|
+
.ser(se_StartAccessLoggingCommand)
|
|
1072
|
+
.de(de_StartAccessLoggingCommand)
|
|
1073
|
+
.build() {
|
|
1074
|
+
}
|
|
1220
1075
|
|
|
1076
|
+
class StopAccessLoggingCommand extends smithyClient.Command
|
|
1077
|
+
.classBuilder()
|
|
1078
|
+
.ep(commonParams)
|
|
1079
|
+
.m(function (Command, cs, config, o) {
|
|
1080
|
+
return [
|
|
1081
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1082
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1083
|
+
];
|
|
1084
|
+
})
|
|
1085
|
+
.s("MediaStore_20170901", "StopAccessLogging", {})
|
|
1086
|
+
.n("MediaStoreClient", "StopAccessLoggingCommand")
|
|
1087
|
+
.f(void 0, void 0)
|
|
1088
|
+
.ser(se_StopAccessLoggingCommand)
|
|
1089
|
+
.de(de_StopAccessLoggingCommand)
|
|
1090
|
+
.build() {
|
|
1091
|
+
}
|
|
1221
1092
|
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
(
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
}
|
|
1093
|
+
class TagResourceCommand extends smithyClient.Command
|
|
1094
|
+
.classBuilder()
|
|
1095
|
+
.ep(commonParams)
|
|
1096
|
+
.m(function (Command, cs, config, o) {
|
|
1097
|
+
return [
|
|
1098
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1099
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1100
|
+
];
|
|
1101
|
+
})
|
|
1102
|
+
.s("MediaStore_20170901", "TagResource", {})
|
|
1103
|
+
.n("MediaStoreClient", "TagResourceCommand")
|
|
1104
|
+
.f(void 0, void 0)
|
|
1105
|
+
.ser(se_TagResourceCommand)
|
|
1106
|
+
.de(de_TagResourceCommand)
|
|
1107
|
+
.build() {
|
|
1108
|
+
}
|
|
1232
1109
|
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
PutCorsPolicyCommand,
|
|
1250
|
-
PutLifecyclePolicyCommand,
|
|
1251
|
-
PutMetricPolicyCommand,
|
|
1252
|
-
StartAccessLoggingCommand,
|
|
1253
|
-
StopAccessLoggingCommand,
|
|
1254
|
-
TagResourceCommand,
|
|
1255
|
-
UntagResourceCommand
|
|
1256
|
-
};
|
|
1257
|
-
var MediaStore = class extends MediaStoreClient {
|
|
1258
|
-
static {
|
|
1259
|
-
__name(this, "MediaStore");
|
|
1260
|
-
}
|
|
1261
|
-
};
|
|
1262
|
-
(0, import_smithy_client.createAggregatedClient)(commands, MediaStore);
|
|
1110
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
1111
|
+
.classBuilder()
|
|
1112
|
+
.ep(commonParams)
|
|
1113
|
+
.m(function (Command, cs, config, o) {
|
|
1114
|
+
return [
|
|
1115
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1116
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1117
|
+
];
|
|
1118
|
+
})
|
|
1119
|
+
.s("MediaStore_20170901", "UntagResource", {})
|
|
1120
|
+
.n("MediaStoreClient", "UntagResourceCommand")
|
|
1121
|
+
.f(void 0, void 0)
|
|
1122
|
+
.ser(se_UntagResourceCommand)
|
|
1123
|
+
.de(de_UntagResourceCommand)
|
|
1124
|
+
.build() {
|
|
1125
|
+
}
|
|
1263
1126
|
|
|
1264
|
-
|
|
1127
|
+
const commands = {
|
|
1128
|
+
CreateContainerCommand,
|
|
1129
|
+
DeleteContainerCommand,
|
|
1130
|
+
DeleteContainerPolicyCommand,
|
|
1131
|
+
DeleteCorsPolicyCommand,
|
|
1132
|
+
DeleteLifecyclePolicyCommand,
|
|
1133
|
+
DeleteMetricPolicyCommand,
|
|
1134
|
+
DescribeContainerCommand,
|
|
1135
|
+
GetContainerPolicyCommand,
|
|
1136
|
+
GetCorsPolicyCommand,
|
|
1137
|
+
GetLifecyclePolicyCommand,
|
|
1138
|
+
GetMetricPolicyCommand,
|
|
1139
|
+
ListContainersCommand,
|
|
1140
|
+
ListTagsForResourceCommand,
|
|
1141
|
+
PutContainerPolicyCommand,
|
|
1142
|
+
PutCorsPolicyCommand,
|
|
1143
|
+
PutLifecyclePolicyCommand,
|
|
1144
|
+
PutMetricPolicyCommand,
|
|
1145
|
+
StartAccessLoggingCommand,
|
|
1146
|
+
StopAccessLoggingCommand,
|
|
1147
|
+
TagResourceCommand,
|
|
1148
|
+
UntagResourceCommand,
|
|
1149
|
+
};
|
|
1150
|
+
class MediaStore extends MediaStoreClient {
|
|
1151
|
+
}
|
|
1152
|
+
smithyClient.createAggregatedClient(commands, MediaStore);
|
|
1265
1153
|
|
|
1266
|
-
|
|
1267
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1154
|
+
const paginateListContainers = core.createPaginator(MediaStoreClient, ListContainersCommand, "NextToken", "NextToken", "MaxResults");
|
|
1268
1155
|
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
MediaStoreClient,
|
|
1273
|
-
MediaStore,
|
|
1274
|
-
$Command,
|
|
1275
|
-
CreateContainerCommand,
|
|
1276
|
-
DeleteContainerCommand,
|
|
1277
|
-
DeleteContainerPolicyCommand,
|
|
1278
|
-
DeleteCorsPolicyCommand,
|
|
1279
|
-
DeleteLifecyclePolicyCommand,
|
|
1280
|
-
DeleteMetricPolicyCommand,
|
|
1281
|
-
DescribeContainerCommand,
|
|
1282
|
-
GetContainerPolicyCommand,
|
|
1283
|
-
GetCorsPolicyCommand,
|
|
1284
|
-
GetLifecyclePolicyCommand,
|
|
1285
|
-
GetMetricPolicyCommand,
|
|
1286
|
-
ListContainersCommand,
|
|
1287
|
-
ListTagsForResourceCommand,
|
|
1288
|
-
PutContainerPolicyCommand,
|
|
1289
|
-
PutCorsPolicyCommand,
|
|
1290
|
-
PutLifecyclePolicyCommand,
|
|
1291
|
-
PutMetricPolicyCommand,
|
|
1292
|
-
StartAccessLoggingCommand,
|
|
1293
|
-
StopAccessLoggingCommand,
|
|
1294
|
-
TagResourceCommand,
|
|
1295
|
-
UntagResourceCommand,
|
|
1296
|
-
paginateListContainers,
|
|
1297
|
-
MethodName,
|
|
1298
|
-
ContainerStatus,
|
|
1299
|
-
ContainerInUseException,
|
|
1300
|
-
ContainerLevelMetrics,
|
|
1301
|
-
ContainerNotFoundException,
|
|
1302
|
-
CorsPolicyNotFoundException,
|
|
1303
|
-
InternalServerError,
|
|
1304
|
-
LimitExceededException,
|
|
1305
|
-
PolicyNotFoundException
|
|
1156
|
+
Object.defineProperty(exports, "$Command", {
|
|
1157
|
+
enumerable: true,
|
|
1158
|
+
get: function () { return smithyClient.Command; }
|
|
1306
1159
|
});
|
|
1307
|
-
|
|
1160
|
+
Object.defineProperty(exports, "__Client", {
|
|
1161
|
+
enumerable: true,
|
|
1162
|
+
get: function () { return smithyClient.Client; }
|
|
1163
|
+
});
|
|
1164
|
+
exports.ContainerInUseException = ContainerInUseException;
|
|
1165
|
+
exports.ContainerLevelMetrics = ContainerLevelMetrics;
|
|
1166
|
+
exports.ContainerNotFoundException = ContainerNotFoundException;
|
|
1167
|
+
exports.ContainerStatus = ContainerStatus;
|
|
1168
|
+
exports.CorsPolicyNotFoundException = CorsPolicyNotFoundException;
|
|
1169
|
+
exports.CreateContainerCommand = CreateContainerCommand;
|
|
1170
|
+
exports.DeleteContainerCommand = DeleteContainerCommand;
|
|
1171
|
+
exports.DeleteContainerPolicyCommand = DeleteContainerPolicyCommand;
|
|
1172
|
+
exports.DeleteCorsPolicyCommand = DeleteCorsPolicyCommand;
|
|
1173
|
+
exports.DeleteLifecyclePolicyCommand = DeleteLifecyclePolicyCommand;
|
|
1174
|
+
exports.DeleteMetricPolicyCommand = DeleteMetricPolicyCommand;
|
|
1175
|
+
exports.DescribeContainerCommand = DescribeContainerCommand;
|
|
1176
|
+
exports.GetContainerPolicyCommand = GetContainerPolicyCommand;
|
|
1177
|
+
exports.GetCorsPolicyCommand = GetCorsPolicyCommand;
|
|
1178
|
+
exports.GetLifecyclePolicyCommand = GetLifecyclePolicyCommand;
|
|
1179
|
+
exports.GetMetricPolicyCommand = GetMetricPolicyCommand;
|
|
1180
|
+
exports.InternalServerError = InternalServerError;
|
|
1181
|
+
exports.LimitExceededException = LimitExceededException;
|
|
1182
|
+
exports.ListContainersCommand = ListContainersCommand;
|
|
1183
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
1184
|
+
exports.MediaStore = MediaStore;
|
|
1185
|
+
exports.MediaStoreClient = MediaStoreClient;
|
|
1186
|
+
exports.MediaStoreServiceException = MediaStoreServiceException;
|
|
1187
|
+
exports.MethodName = MethodName;
|
|
1188
|
+
exports.PolicyNotFoundException = PolicyNotFoundException;
|
|
1189
|
+
exports.PutContainerPolicyCommand = PutContainerPolicyCommand;
|
|
1190
|
+
exports.PutCorsPolicyCommand = PutCorsPolicyCommand;
|
|
1191
|
+
exports.PutLifecyclePolicyCommand = PutLifecyclePolicyCommand;
|
|
1192
|
+
exports.PutMetricPolicyCommand = PutMetricPolicyCommand;
|
|
1193
|
+
exports.StartAccessLoggingCommand = StartAccessLoggingCommand;
|
|
1194
|
+
exports.StopAccessLoggingCommand = StopAccessLoggingCommand;
|
|
1195
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
1196
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
1197
|
+
exports.paginateListContainers = paginateListContainers;
|