@aws-sdk/client-mediastore 3.477.0 → 3.481.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/commands/CreateContainerCommand.js +18 -41
- package/dist-cjs/commands/DeleteContainerCommand.js +18 -41
- package/dist-cjs/commands/DeleteContainerPolicyCommand.js +18 -41
- package/dist-cjs/commands/DeleteCorsPolicyCommand.js +18 -41
- package/dist-cjs/commands/DeleteLifecyclePolicyCommand.js +18 -41
- package/dist-cjs/commands/DeleteMetricPolicyCommand.js +18 -41
- package/dist-cjs/commands/DescribeContainerCommand.js +18 -41
- package/dist-cjs/commands/GetContainerPolicyCommand.js +18 -41
- package/dist-cjs/commands/GetCorsPolicyCommand.js +18 -41
- package/dist-cjs/commands/GetLifecyclePolicyCommand.js +18 -41
- package/dist-cjs/commands/GetMetricPolicyCommand.js +18 -41
- package/dist-cjs/commands/ListContainersCommand.js +18 -41
- package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
- package/dist-cjs/commands/PutContainerPolicyCommand.js +18 -41
- package/dist-cjs/commands/PutCorsPolicyCommand.js +18 -41
- package/dist-cjs/commands/PutLifecyclePolicyCommand.js +18 -41
- package/dist-cjs/commands/PutMetricPolicyCommand.js +18 -41
- package/dist-cjs/commands/StartAccessLoggingCommand.js +18 -41
- package/dist-cjs/commands/StopAccessLoggingCommand.js +18 -41
- package/dist-cjs/commands/TagResourceCommand.js +18 -41
- package/dist-cjs/commands/UntagResourceCommand.js +18 -41
- package/dist-cjs/endpoint/EndpointParameters.js +7 -1
- package/dist-cjs/pagination/ListContainersPaginator.js +2 -24
- package/dist-es/commands/CreateContainerCommand.js +18 -41
- package/dist-es/commands/DeleteContainerCommand.js +18 -41
- package/dist-es/commands/DeleteContainerPolicyCommand.js +18 -41
- package/dist-es/commands/DeleteCorsPolicyCommand.js +18 -41
- package/dist-es/commands/DeleteLifecyclePolicyCommand.js +18 -41
- package/dist-es/commands/DeleteMetricPolicyCommand.js +18 -41
- package/dist-es/commands/DescribeContainerCommand.js +18 -41
- package/dist-es/commands/GetContainerPolicyCommand.js +18 -41
- package/dist-es/commands/GetCorsPolicyCommand.js +18 -41
- package/dist-es/commands/GetLifecyclePolicyCommand.js +18 -41
- package/dist-es/commands/GetMetricPolicyCommand.js +18 -41
- package/dist-es/commands/ListContainersCommand.js +18 -41
- package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
- package/dist-es/commands/PutContainerPolicyCommand.js +18 -41
- package/dist-es/commands/PutCorsPolicyCommand.js +18 -41
- package/dist-es/commands/PutLifecyclePolicyCommand.js +18 -41
- package/dist-es/commands/PutMetricPolicyCommand.js +18 -41
- package/dist-es/commands/StartAccessLoggingCommand.js +18 -41
- package/dist-es/commands/StopAccessLoggingCommand.js +18 -41
- package/dist-es/commands/TagResourceCommand.js +18 -41
- package/dist-es/commands/UntagResourceCommand.js +18 -41
- package/dist-es/endpoint/EndpointParameters.js +6 -0
- package/dist-es/pagination/ListContainersPaginator.js +2 -23
- package/dist-types/commands/CreateContainerCommand.d.ts +6 -21
- package/dist-types/commands/DeleteContainerCommand.d.ts +6 -21
- package/dist-types/commands/DeleteContainerPolicyCommand.d.ts +6 -21
- package/dist-types/commands/DeleteCorsPolicyCommand.d.ts +6 -21
- package/dist-types/commands/DeleteLifecyclePolicyCommand.d.ts +6 -21
- package/dist-types/commands/DeleteMetricPolicyCommand.d.ts +6 -21
- package/dist-types/commands/DescribeContainerCommand.d.ts +6 -21
- package/dist-types/commands/GetContainerPolicyCommand.d.ts +6 -21
- package/dist-types/commands/GetCorsPolicyCommand.d.ts +6 -21
- package/dist-types/commands/GetLifecyclePolicyCommand.d.ts +6 -21
- package/dist-types/commands/GetMetricPolicyCommand.d.ts +6 -21
- package/dist-types/commands/ListContainersCommand.d.ts +6 -21
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
- package/dist-types/commands/PutContainerPolicyCommand.d.ts +6 -21
- package/dist-types/commands/PutCorsPolicyCommand.d.ts +6 -21
- package/dist-types/commands/PutLifecyclePolicyCommand.d.ts +6 -21
- package/dist-types/commands/PutMetricPolicyCommand.d.ts +6 -21
- package/dist-types/commands/StartAccessLoggingCommand.d.ts +6 -21
- package/dist-types/commands/StopAccessLoggingCommand.d.ts +6 -21
- package/dist-types/commands/TagResourceCommand.d.ts +6 -21
- package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
- package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/pagination/ListContainersPaginator.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateContainerCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DeleteContainerCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DeleteContainerPolicyCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/DeleteCorsPolicyCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DeleteLifecyclePolicyCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/DeleteMetricPolicyCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DescribeContainerCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetContainerPolicyCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetCorsPolicyCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetLifecyclePolicyCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetMetricPolicyCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListContainersCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/PutContainerPolicyCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/PutCorsPolicyCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/PutLifecyclePolicyCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/PutMetricPolicyCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/StartAccessLoggingCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/StopAccessLoggingCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/ts3.4/pagination/ListContainersPaginator.d.ts +3 -3
- package/package.json +11 -10
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_PutCorsPolicyCommand, se_PutCorsPolicyCommand } from "../protocols/Aws_json1_1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class PutCorsPolicyCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "MediaStoreClient";
|
|
26
|
-
const commandName = "PutCorsPolicyCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "MediaStore_20170901",
|
|
35
|
-
operation: "PutCorsPolicy",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_PutCorsPolicyCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_PutCorsPolicyCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class PutCorsPolicyCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("MediaStore_20170901", "PutCorsPolicy", {})
|
|
19
|
+
.n("MediaStoreClient", "PutCorsPolicyCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_PutCorsPolicyCommand)
|
|
22
|
+
.de(de_PutCorsPolicyCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_PutLifecyclePolicyCommand, se_PutLifecyclePolicyCommand } from "../protocols/Aws_json1_1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class PutLifecyclePolicyCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "MediaStoreClient";
|
|
26
|
-
const commandName = "PutLifecyclePolicyCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "MediaStore_20170901",
|
|
35
|
-
operation: "PutLifecyclePolicy",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_PutLifecyclePolicyCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_PutLifecyclePolicyCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class PutLifecyclePolicyCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("MediaStore_20170901", "PutLifecyclePolicy", {})
|
|
19
|
+
.n("MediaStoreClient", "PutLifecyclePolicyCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_PutLifecyclePolicyCommand)
|
|
22
|
+
.de(de_PutLifecyclePolicyCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_PutMetricPolicyCommand, se_PutMetricPolicyCommand } from "../protocols/Aws_json1_1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class PutMetricPolicyCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "MediaStoreClient";
|
|
26
|
-
const commandName = "PutMetricPolicyCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "MediaStore_20170901",
|
|
35
|
-
operation: "PutMetricPolicy",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_PutMetricPolicyCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_PutMetricPolicyCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class PutMetricPolicyCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("MediaStore_20170901", "PutMetricPolicy", {})
|
|
19
|
+
.n("MediaStoreClient", "PutMetricPolicyCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_PutMetricPolicyCommand)
|
|
22
|
+
.de(de_PutMetricPolicyCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_StartAccessLoggingCommand, se_StartAccessLoggingCommand } from "../protocols/Aws_json1_1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class StartAccessLoggingCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "MediaStoreClient";
|
|
26
|
-
const commandName = "StartAccessLoggingCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "MediaStore_20170901",
|
|
35
|
-
operation: "StartAccessLogging",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_StartAccessLoggingCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_StartAccessLoggingCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class StartAccessLoggingCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("MediaStore_20170901", "StartAccessLogging", {})
|
|
19
|
+
.n("MediaStoreClient", "StartAccessLoggingCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_StartAccessLoggingCommand)
|
|
22
|
+
.de(de_StartAccessLoggingCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_StopAccessLoggingCommand, se_StopAccessLoggingCommand } from "../protocols/Aws_json1_1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class StopAccessLoggingCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "MediaStoreClient";
|
|
26
|
-
const commandName = "StopAccessLoggingCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "MediaStore_20170901",
|
|
35
|
-
operation: "StopAccessLogging",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_StopAccessLoggingCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_StopAccessLoggingCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class StopAccessLoggingCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("MediaStore_20170901", "StopAccessLogging", {})
|
|
19
|
+
.n("MediaStoreClient", "StopAccessLoggingCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_StopAccessLoggingCommand)
|
|
22
|
+
.de(de_StopAccessLoggingCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_json1_1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class TagResourceCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "MediaStoreClient";
|
|
26
|
-
const commandName = "TagResourceCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "MediaStore_20170901",
|
|
35
|
-
operation: "TagResource",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_TagResourceCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_TagResourceCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class TagResourceCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("MediaStore_20170901", "TagResource", {})
|
|
19
|
+
.n("MediaStoreClient", "TagResourceCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_TagResourceCommand)
|
|
22
|
+
.de(de_TagResourceCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -1,47 +1,24 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
5
|
import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_json1_1";
|
|
6
6
|
export { $Command };
|
|
7
|
-
export class UntagResourceCommand extends $Command
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const { logger } = configuration;
|
|
25
|
-
const clientName = "MediaStoreClient";
|
|
26
|
-
const commandName = "UntagResourceCommand";
|
|
27
|
-
const handlerExecutionContext = {
|
|
28
|
-
logger,
|
|
29
|
-
clientName,
|
|
30
|
-
commandName,
|
|
31
|
-
inputFilterSensitiveLog: (_) => _,
|
|
32
|
-
outputFilterSensitiveLog: (_) => _,
|
|
33
|
-
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
-
service: "MediaStore_20170901",
|
|
35
|
-
operation: "UntagResource",
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
const { requestHandler } = configuration;
|
|
39
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
-
}
|
|
41
|
-
serialize(input, context) {
|
|
42
|
-
return se_UntagResourceCommand(input, context);
|
|
43
|
-
}
|
|
44
|
-
deserialize(output, context) {
|
|
45
|
-
return de_UntagResourceCommand(output, context);
|
|
46
|
-
}
|
|
7
|
+
export class UntagResourceCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("MediaStore_20170901", "UntagResource", {})
|
|
19
|
+
.n("MediaStoreClient", "UntagResourceCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_UntagResourceCommand)
|
|
22
|
+
.de(de_UntagResourceCommand)
|
|
23
|
+
.build() {
|
|
47
24
|
}
|
|
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
|
|
|
6
6
|
defaultSigningName: "mediastore",
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
|
+
export const commonParams = {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListContainersCommand, } from "../commands/ListContainersCommand";
|
|
2
3
|
import { MediaStoreClient } from "../MediaStoreClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListContainersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListContainers(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof MediaStoreClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected MediaStore | MediaStoreClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListContainers = createPaginator(MediaStoreClient, ListContainersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
4
3
|
import { MediaStoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaStoreClient";
|
|
5
4
|
import { CreateContainerInput, CreateContainerOutput } from "../models/models_0";
|
|
6
5
|
/**
|
|
@@ -21,6 +20,10 @@ export interface CreateContainerCommandInput extends CreateContainerInput {
|
|
|
21
20
|
*/
|
|
22
21
|
export interface CreateContainerCommandOutput extends CreateContainerOutput, __MetadataBearer {
|
|
23
22
|
}
|
|
23
|
+
declare const CreateContainerCommand_base: {
|
|
24
|
+
new (input: CreateContainerCommandInput): import("@smithy/smithy-client").CommandImpl<CreateContainerCommandInput, CreateContainerCommandOutput, MediaStoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
24
27
|
/**
|
|
25
28
|
* @public
|
|
26
29
|
* <p>Creates a storage container to hold objects. A container is similar to a bucket in
|
|
@@ -75,23 +78,5 @@ export interface CreateContainerCommandOutput extends CreateContainerOutput, __M
|
|
|
75
78
|
* <p>Base exception class for all service exceptions from MediaStore service.</p>
|
|
76
79
|
*
|
|
77
80
|
*/
|
|
78
|
-
export declare class CreateContainerCommand extends
|
|
79
|
-
readonly input: CreateContainerCommandInput;
|
|
80
|
-
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
81
|
-
/**
|
|
82
|
-
* @public
|
|
83
|
-
*/
|
|
84
|
-
constructor(input: CreateContainerCommandInput);
|
|
85
|
-
/**
|
|
86
|
-
* @internal
|
|
87
|
-
*/
|
|
88
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MediaStoreClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateContainerCommandInput, CreateContainerCommandOutput>;
|
|
89
|
-
/**
|
|
90
|
-
* @internal
|
|
91
|
-
*/
|
|
92
|
-
private serialize;
|
|
93
|
-
/**
|
|
94
|
-
* @internal
|
|
95
|
-
*/
|
|
96
|
-
private deserialize;
|
|
81
|
+
export declare class CreateContainerCommand extends CreateContainerCommand_base {
|
|
97
82
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
4
3
|
import { MediaStoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaStoreClient";
|
|
5
4
|
import { DeleteContainerInput, DeleteContainerOutput } from "../models/models_0";
|
|
6
5
|
/**
|
|
@@ -21,6 +20,10 @@ export interface DeleteContainerCommandInput extends DeleteContainerInput {
|
|
|
21
20
|
*/
|
|
22
21
|
export interface DeleteContainerCommandOutput extends DeleteContainerOutput, __MetadataBearer {
|
|
23
22
|
}
|
|
23
|
+
declare const DeleteContainerCommand_base: {
|
|
24
|
+
new (input: DeleteContainerCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteContainerCommandInput, DeleteContainerCommandOutput, MediaStoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
24
27
|
/**
|
|
25
28
|
* @public
|
|
26
29
|
* <p>Deletes the specified container. Before you make a <code>DeleteContainer</code>
|
|
@@ -61,23 +64,5 @@ export interface DeleteContainerCommandOutput extends DeleteContainerOutput, __M
|
|
|
61
64
|
* <p>Base exception class for all service exceptions from MediaStore service.</p>
|
|
62
65
|
*
|
|
63
66
|
*/
|
|
64
|
-
export declare class DeleteContainerCommand extends
|
|
65
|
-
readonly input: DeleteContainerCommandInput;
|
|
66
|
-
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
67
|
-
/**
|
|
68
|
-
* @public
|
|
69
|
-
*/
|
|
70
|
-
constructor(input: DeleteContainerCommandInput);
|
|
71
|
-
/**
|
|
72
|
-
* @internal
|
|
73
|
-
*/
|
|
74
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MediaStoreClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteContainerCommandInput, DeleteContainerCommandOutput>;
|
|
75
|
-
/**
|
|
76
|
-
* @internal
|
|
77
|
-
*/
|
|
78
|
-
private serialize;
|
|
79
|
-
/**
|
|
80
|
-
* @internal
|
|
81
|
-
*/
|
|
82
|
-
private deserialize;
|
|
67
|
+
export declare class DeleteContainerCommand extends DeleteContainerCommand_base {
|
|
83
68
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
1
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
-
import {
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
4
3
|
import { MediaStoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaStoreClient";
|
|
5
4
|
import { DeleteContainerPolicyInput, DeleteContainerPolicyOutput } from "../models/models_0";
|
|
6
5
|
/**
|
|
@@ -21,6 +20,10 @@ export interface DeleteContainerPolicyCommandInput extends DeleteContainerPolicy
|
|
|
21
20
|
*/
|
|
22
21
|
export interface DeleteContainerPolicyCommandOutput extends DeleteContainerPolicyOutput, __MetadataBearer {
|
|
23
22
|
}
|
|
23
|
+
declare const DeleteContainerPolicyCommand_base: {
|
|
24
|
+
new (input: DeleteContainerPolicyCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteContainerPolicyCommandInput, DeleteContainerPolicyCommandOutput, MediaStoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
24
27
|
/**
|
|
25
28
|
* @public
|
|
26
29
|
* <p>Deletes the access policy that is associated with the specified container.</p>
|
|
@@ -62,23 +65,5 @@ export interface DeleteContainerPolicyCommandOutput extends DeleteContainerPolic
|
|
|
62
65
|
* <p>Base exception class for all service exceptions from MediaStore service.</p>
|
|
63
66
|
*
|
|
64
67
|
*/
|
|
65
|
-
export declare class DeleteContainerPolicyCommand extends
|
|
66
|
-
readonly input: DeleteContainerPolicyCommandInput;
|
|
67
|
-
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
68
|
-
/**
|
|
69
|
-
* @public
|
|
70
|
-
*/
|
|
71
|
-
constructor(input: DeleteContainerPolicyCommandInput);
|
|
72
|
-
/**
|
|
73
|
-
* @internal
|
|
74
|
-
*/
|
|
75
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MediaStoreClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteContainerPolicyCommandInput, DeleteContainerPolicyCommandOutput>;
|
|
76
|
-
/**
|
|
77
|
-
* @internal
|
|
78
|
-
*/
|
|
79
|
-
private serialize;
|
|
80
|
-
/**
|
|
81
|
-
* @internal
|
|
82
|
-
*/
|
|
83
|
-
private deserialize;
|
|
68
|
+
export declare class DeleteContainerPolicyCommand extends DeleteContainerPolicyCommand_base {
|
|
84
69
|
}
|