@aws-sdk/client-mediastore 3.35.0 → 3.38.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/CHANGELOG.md +47 -0
- package/dist-cjs/MediaStore.js +0 -5
- package/dist-cjs/MediaStoreClient.js +0 -10
- package/dist-cjs/commands/CreateContainerCommand.js +0 -26
- package/dist-cjs/commands/DeleteContainerCommand.js +0 -27
- package/dist-cjs/commands/DeleteContainerPolicyCommand.js +0 -25
- package/dist-cjs/commands/DeleteCorsPolicyCommand.js +0 -29
- package/dist-cjs/commands/DeleteLifecyclePolicyCommand.js +0 -25
- package/dist-cjs/commands/DeleteMetricPolicyCommand.js +0 -25
- package/dist-cjs/commands/DescribeContainerCommand.js +0 -31
- package/dist-cjs/commands/GetContainerPolicyCommand.js +0 -27
- package/dist-cjs/commands/GetCorsPolicyCommand.js +0 -29
- package/dist-cjs/commands/GetLifecyclePolicyCommand.js +0 -25
- package/dist-cjs/commands/GetMetricPolicyCommand.js +0 -25
- package/dist-cjs/commands/ListContainersCommand.js +0 -33
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -25
- package/dist-cjs/commands/PutContainerPolicyCommand.js +0 -31
- package/dist-cjs/commands/PutCorsPolicyCommand.js +0 -35
- package/dist-cjs/commands/PutLifecyclePolicyCommand.js +0 -26
- package/dist-cjs/commands/PutMetricPolicyCommand.js +0 -25
- package/dist-cjs/commands/StartAccessLoggingCommand.js +0 -25
- package/dist-cjs/commands/StopAccessLoggingCommand.js +0 -25
- package/dist-cjs/commands/TagResourceCommand.js +0 -27
- package/dist-cjs/commands/UntagResourceCommand.js +0 -25
- package/dist-cjs/commands/index.js +24 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +4 -26
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -160
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListContainersPaginator.js +0 -11
- package/dist-cjs/pagination/index.js +5 -0
- package/dist-cjs/protocols/Aws_json1_1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/MediaStore.js +0 -1
- package/dist-es/MediaStoreClient.js +0 -1
- package/dist-es/commands/CreateContainerCommand.js +0 -1
- package/dist-es/commands/DeleteContainerCommand.js +0 -1
- package/dist-es/commands/DeleteContainerPolicyCommand.js +0 -1
- package/dist-es/commands/DeleteCorsPolicyCommand.js +0 -1
- package/dist-es/commands/DeleteLifecyclePolicyCommand.js +0 -1
- package/dist-es/commands/DeleteMetricPolicyCommand.js +0 -1
- package/dist-es/commands/DescribeContainerCommand.js +0 -1
- package/dist-es/commands/GetContainerPolicyCommand.js +0 -1
- package/dist-es/commands/GetCorsPolicyCommand.js +0 -1
- package/dist-es/commands/GetLifecyclePolicyCommand.js +0 -1
- package/dist-es/commands/GetMetricPolicyCommand.js +0 -1
- package/dist-es/commands/ListContainersCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/PutContainerPolicyCommand.js +0 -1
- package/dist-es/commands/PutCorsPolicyCommand.js +0 -1
- package/dist-es/commands/PutLifecyclePolicyCommand.js +0 -1
- package/dist-es/commands/PutMetricPolicyCommand.js +0 -1
- package/dist-es/commands/StartAccessLoggingCommand.js +0 -1
- package/dist-es/commands/StopAccessLoggingCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/index.js +21 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +4 -26
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListContainersPaginator.js +0 -1
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_json1_1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +21 -0
- package/dist-types/index.d.ts +4 -25
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/MediaStore.d.ts +22 -113
- package/dist-types/ts3.4/MediaStoreClient.d.ts +24 -90
- package/dist-types/ts3.4/commands/CreateContainerCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeleteContainerCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DeleteContainerPolicyCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteCorsPolicyCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/DeleteLifecyclePolicyCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DeleteMetricPolicyCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeContainerCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/GetContainerPolicyCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/GetCorsPolicyCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/GetLifecyclePolicyCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetMetricPolicyCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListContainersCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/PutContainerPolicyCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/PutCorsPolicyCommand.d.ts +2 -30
- package/dist-types/ts3.4/commands/PutLifecyclePolicyCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/PutMetricPolicyCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StartAccessLoggingCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StopAccessLoggingCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/index.d.ts +21 -0
- package/dist-types/ts3.4/index.d.ts +4 -25
- package/dist-types/ts3.4/models/models_0.d.ts +14 -746
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/MediaStore.js.map +0 -1
- package/dist-cjs/MediaStoreClient.js.map +0 -1
- package/dist-cjs/commands/CreateContainerCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteContainerCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteContainerPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteCorsPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteLifecyclePolicyCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteMetricPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeContainerCommand.js.map +0 -1
- package/dist-cjs/commands/GetContainerPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/GetCorsPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/GetLifecyclePolicyCommand.js.map +0 -1
- package/dist-cjs/commands/GetMetricPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/ListContainersCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/PutContainerPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/PutCorsPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/PutLifecyclePolicyCommand.js.map +0 -1
- package/dist-cjs/commands/PutMetricPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/StartAccessLoggingCommand.js.map +0 -1
- package/dist-cjs/commands/StopAccessLoggingCommand.js.map +0 -1
- package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListContainersPaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/MediaStore.js.map +0 -1
- package/dist-es/MediaStoreClient.js.map +0 -1
- package/dist-es/commands/CreateContainerCommand.js.map +0 -1
- package/dist-es/commands/DeleteContainerCommand.js.map +0 -1
- package/dist-es/commands/DeleteContainerPolicyCommand.js.map +0 -1
- package/dist-es/commands/DeleteCorsPolicyCommand.js.map +0 -1
- package/dist-es/commands/DeleteLifecyclePolicyCommand.js.map +0 -1
- package/dist-es/commands/DeleteMetricPolicyCommand.js.map +0 -1
- package/dist-es/commands/DescribeContainerCommand.js.map +0 -1
- package/dist-es/commands/GetContainerPolicyCommand.js.map +0 -1
- package/dist-es/commands/GetCorsPolicyCommand.js.map +0 -1
- package/dist-es/commands/GetLifecyclePolicyCommand.js.map +0 -1
- package/dist-es/commands/GetMetricPolicyCommand.js.map +0 -1
- package/dist-es/commands/ListContainersCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/PutContainerPolicyCommand.js.map +0 -1
- package/dist-es/commands/PutCorsPolicyCommand.js.map +0 -1
- package/dist-es/commands/PutLifecyclePolicyCommand.js.map +0 -1
- package/dist-es/commands/PutMetricPolicyCommand.js.map +0 -1
- package/dist-es/commands/StartAccessLoggingCommand.js.map +0 -1
- package/dist-es/commands/StopAccessLoggingCommand.js.map +0 -1
- package/dist-es/commands/TagResourceCommand.js.map +0 -1
- package/dist-es/commands/UntagResourceCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListContainersPaginator.js.map +0 -1
- package/dist-es/protocols/Aws_json1_1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/MediaStore.ts +0 -822
- package/src/MediaStoreClient.ts +0 -309
- package/src/commands/CreateContainerCommand.ts +0 -96
- package/src/commands/DeleteContainerCommand.ts +0 -97
- package/src/commands/DeleteContainerPolicyCommand.ts +0 -95
- package/src/commands/DeleteCorsPolicyCommand.ts +0 -99
- package/src/commands/DeleteLifecyclePolicyCommand.ts +0 -95
- package/src/commands/DeleteMetricPolicyCommand.ts +0 -95
- package/src/commands/DescribeContainerCommand.ts +0 -101
- package/src/commands/GetContainerPolicyCommand.ts +0 -97
- package/src/commands/GetCorsPolicyCommand.ts +0 -99
- package/src/commands/GetLifecyclePolicyCommand.ts +0 -95
- package/src/commands/GetMetricPolicyCommand.ts +0 -95
- package/src/commands/ListContainersCommand.ts +0 -103
- package/src/commands/ListTagsForResourceCommand.ts +0 -95
- package/src/commands/PutContainerPolicyCommand.ts +0 -101
- package/src/commands/PutCorsPolicyCommand.ts +0 -105
- package/src/commands/PutLifecyclePolicyCommand.ts +0 -96
- package/src/commands/PutMetricPolicyCommand.ts +0 -95
- package/src/commands/StartAccessLoggingCommand.ts +0 -95
- package/src/commands/StopAccessLoggingCommand.ts +0 -95
- package/src/commands/TagResourceCommand.ts +0 -97
- package/src/commands/UntagResourceCommand.ts +0 -95
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -26
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -1013
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListContainersPaginator.ts +0 -59
- package/src/protocols/Aws_json1_1.ts +0 -2693
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -5,41 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Creates an access policy for the specified container to restrict the users and
|
|
10
|
-
* clients that can access it. For information about the data that is included in an access
|
|
11
|
-
* policy, see the <a href="https://aws.amazon.com/documentation/iam/">AWS Identity and
|
|
12
|
-
* Access Management User Guide</a>.</p>
|
|
13
|
-
* <p>For this release of the REST API, you can create only one policy for a container. If
|
|
14
|
-
* you enter <code>PutContainerPolicy</code> twice, the second command modifies the existing
|
|
15
|
-
* policy. </p>
|
|
16
|
-
* @example
|
|
17
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
18
|
-
* ```javascript
|
|
19
|
-
* import { MediaStoreClient, PutContainerPolicyCommand } from "@aws-sdk/client-mediastore"; // ES Modules import
|
|
20
|
-
* // const { MediaStoreClient, PutContainerPolicyCommand } = require("@aws-sdk/client-mediastore"); // CommonJS import
|
|
21
|
-
* const client = new MediaStoreClient(config);
|
|
22
|
-
* const command = new PutContainerPolicyCommand(input);
|
|
23
|
-
* const response = await client.send(command);
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @see {@link PutContainerPolicyCommandInput} for command's `input` shape.
|
|
27
|
-
* @see {@link PutContainerPolicyCommandOutput} for command's `response` shape.
|
|
28
|
-
* @see {@link MediaStoreClientResolvedConfig | config} for command's `input` shape.
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
8
|
class PutContainerPolicyCommand extends smithy_client_1.Command {
|
|
32
|
-
// Start section: command_properties
|
|
33
|
-
// End section: command_properties
|
|
34
9
|
constructor(input) {
|
|
35
|
-
// Start section: command_constructor
|
|
36
10
|
super();
|
|
37
11
|
this.input = input;
|
|
38
|
-
// End section: command_constructor
|
|
39
12
|
}
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
*/
|
|
43
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
44
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
45
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -64,4 +34,3 @@ class PutContainerPolicyCommand extends smithy_client_1.Command {
|
|
|
64
34
|
}
|
|
65
35
|
}
|
|
66
36
|
exports.PutContainerPolicyCommand = PutContainerPolicyCommand;
|
|
67
|
-
//# sourceMappingURL=PutContainerPolicyCommand.js.map
|
|
@@ -5,45 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Sets the cross-origin resource sharing (CORS) configuration on a container so that
|
|
10
|
-
* the container can service cross-origin requests. For example, you might want to enable a
|
|
11
|
-
* request whose origin is http://www.example.com to access your AWS Elemental MediaStore
|
|
12
|
-
* container at my.example.container.com by using the browser's XMLHttpRequest
|
|
13
|
-
* capability.</p>
|
|
14
|
-
* <p>To enable CORS on a container, you attach a CORS policy to the container. In the CORS
|
|
15
|
-
* policy, you configure rules that identify origins and the HTTP methods that can be executed
|
|
16
|
-
* on your container. The policy can contain up to 398,000 characters. You can add up to 100
|
|
17
|
-
* rules to a CORS policy. If more than one rule applies, the service uses the first
|
|
18
|
-
* applicable rule listed.</p>
|
|
19
|
-
* <p>To learn more about CORS, see <a href="https://docs.aws.amazon.com/mediastore/latest/ug/cors-policy.html">Cross-Origin Resource Sharing (CORS) in AWS Elemental MediaStore</a>.</p>
|
|
20
|
-
* @example
|
|
21
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
22
|
-
* ```javascript
|
|
23
|
-
* import { MediaStoreClient, PutCorsPolicyCommand } from "@aws-sdk/client-mediastore"; // ES Modules import
|
|
24
|
-
* // const { MediaStoreClient, PutCorsPolicyCommand } = require("@aws-sdk/client-mediastore"); // CommonJS import
|
|
25
|
-
* const client = new MediaStoreClient(config);
|
|
26
|
-
* const command = new PutCorsPolicyCommand(input);
|
|
27
|
-
* const response = await client.send(command);
|
|
28
|
-
* ```
|
|
29
|
-
*
|
|
30
|
-
* @see {@link PutCorsPolicyCommandInput} for command's `input` shape.
|
|
31
|
-
* @see {@link PutCorsPolicyCommandOutput} for command's `response` shape.
|
|
32
|
-
* @see {@link MediaStoreClientResolvedConfig | config} for command's `input` shape.
|
|
33
|
-
*
|
|
34
|
-
*/
|
|
35
8
|
class PutCorsPolicyCommand extends smithy_client_1.Command {
|
|
36
|
-
// Start section: command_properties
|
|
37
|
-
// End section: command_properties
|
|
38
9
|
constructor(input) {
|
|
39
|
-
// Start section: command_constructor
|
|
40
10
|
super();
|
|
41
11
|
this.input = input;
|
|
42
|
-
// End section: command_constructor
|
|
43
12
|
}
|
|
44
|
-
/**
|
|
45
|
-
* @internal
|
|
46
|
-
*/
|
|
47
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
48
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
49
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -68,4 +34,3 @@ class PutCorsPolicyCommand extends smithy_client_1.Command {
|
|
|
68
34
|
}
|
|
69
35
|
}
|
|
70
36
|
exports.PutCorsPolicyCommand = PutCorsPolicyCommand;
|
|
71
|
-
//# sourceMappingURL=PutCorsPolicyCommand.js.map
|
|
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Writes an object lifecycle policy to a container. If the container already has an object lifecycle policy, the service replaces the existing policy with the new policy. It takes up to 20 minutes for the change to take effect.</p>
|
|
10
|
-
* <p>For information about how to construct an object lifecycle policy, see <a href="https://docs.aws.amazon.com/mediastore/latest/ug/policies-object-lifecycle-components.html">Components of an Object Lifecycle Policy</a>.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { MediaStoreClient, PutLifecyclePolicyCommand } from "@aws-sdk/client-mediastore"; // ES Modules import
|
|
15
|
-
* // const { MediaStoreClient, PutLifecyclePolicyCommand } = require("@aws-sdk/client-mediastore"); // CommonJS import
|
|
16
|
-
* const client = new MediaStoreClient(config);
|
|
17
|
-
* const command = new PutLifecyclePolicyCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link PutLifecyclePolicyCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link PutLifecyclePolicyCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link MediaStoreClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
8
|
class PutLifecyclePolicyCommand extends smithy_client_1.Command {
|
|
27
|
-
// Start section: command_properties
|
|
28
|
-
// End section: command_properties
|
|
29
9
|
constructor(input) {
|
|
30
|
-
// Start section: command_constructor
|
|
31
10
|
super();
|
|
32
11
|
this.input = input;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -59,4 +34,3 @@ class PutLifecyclePolicyCommand extends smithy_client_1.Command {
|
|
|
59
34
|
}
|
|
60
35
|
}
|
|
61
36
|
exports.PutLifecyclePolicyCommand = PutLifecyclePolicyCommand;
|
|
62
|
-
//# sourceMappingURL=PutLifecyclePolicyCommand.js.map
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>The metric policy that you want to add to the container. A metric policy allows AWS Elemental MediaStore to send metrics to Amazon CloudWatch. It takes up to 20 minutes for the new policy to take effect.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { MediaStoreClient, PutMetricPolicyCommand } from "@aws-sdk/client-mediastore"; // ES Modules import
|
|
14
|
-
* // const { MediaStoreClient, PutMetricPolicyCommand } = require("@aws-sdk/client-mediastore"); // CommonJS import
|
|
15
|
-
* const client = new MediaStoreClient(config);
|
|
16
|
-
* const command = new PutMetricPolicyCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link PutMetricPolicyCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link PutMetricPolicyCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link MediaStoreClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class PutMetricPolicyCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -58,4 +34,3 @@ class PutMetricPolicyCommand extends smithy_client_1.Command {
|
|
|
58
34
|
}
|
|
59
35
|
}
|
|
60
36
|
exports.PutMetricPolicyCommand = PutMetricPolicyCommand;
|
|
61
|
-
//# sourceMappingURL=PutMetricPolicyCommand.js.map
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Starts access logging on the specified container. When you enable access logging on a container, MediaStore delivers access logs for objects stored in that container to Amazon CloudWatch Logs.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { MediaStoreClient, StartAccessLoggingCommand } from "@aws-sdk/client-mediastore"; // ES Modules import
|
|
14
|
-
* // const { MediaStoreClient, StartAccessLoggingCommand } = require("@aws-sdk/client-mediastore"); // CommonJS import
|
|
15
|
-
* const client = new MediaStoreClient(config);
|
|
16
|
-
* const command = new StartAccessLoggingCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link StartAccessLoggingCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link StartAccessLoggingCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link MediaStoreClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class StartAccessLoggingCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -58,4 +34,3 @@ class StartAccessLoggingCommand extends smithy_client_1.Command {
|
|
|
58
34
|
}
|
|
59
35
|
}
|
|
60
36
|
exports.StartAccessLoggingCommand = StartAccessLoggingCommand;
|
|
61
|
-
//# sourceMappingURL=StartAccessLoggingCommand.js.map
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Stops access logging on the specified container. When you stop access logging on a container, MediaStore stops sending access logs to Amazon CloudWatch Logs. These access logs are not saved and are not retrievable.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { MediaStoreClient, StopAccessLoggingCommand } from "@aws-sdk/client-mediastore"; // ES Modules import
|
|
14
|
-
* // const { MediaStoreClient, StopAccessLoggingCommand } = require("@aws-sdk/client-mediastore"); // CommonJS import
|
|
15
|
-
* const client = new MediaStoreClient(config);
|
|
16
|
-
* const command = new StopAccessLoggingCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link StopAccessLoggingCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link StopAccessLoggingCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link MediaStoreClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class StopAccessLoggingCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -58,4 +34,3 @@ class StopAccessLoggingCommand extends smithy_client_1.Command {
|
|
|
58
34
|
}
|
|
59
35
|
}
|
|
60
36
|
exports.StopAccessLoggingCommand = StopAccessLoggingCommand;
|
|
61
|
-
//# sourceMappingURL=StopAccessLoggingCommand.js.map
|
|
@@ -5,37 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Adds tags to the specified AWS Elemental MediaStore container. Tags are key:value pairs that you can associate with AWS resources. For example, the
|
|
10
|
-
* tag key might be "customer" and the tag value might be "companyA." You can specify one or more tags to add to each container. You can add up to 50
|
|
11
|
-
* tags to each container. For more information about tagging, including naming and usage conventions, see <a href="https://docs.aws.amazon.com/mediastore/latest/ug/tagging.html">Tagging Resources in MediaStore</a>.</p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { MediaStoreClient, TagResourceCommand } from "@aws-sdk/client-mediastore"; // ES Modules import
|
|
16
|
-
* // const { MediaStoreClient, TagResourceCommand } = require("@aws-sdk/client-mediastore"); // CommonJS import
|
|
17
|
-
* const client = new MediaStoreClient(config);
|
|
18
|
-
* const command = new TagResourceCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link TagResourceCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link TagResourceCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link MediaStoreClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
8
|
class TagResourceCommand extends smithy_client_1.Command {
|
|
28
|
-
// Start section: command_properties
|
|
29
|
-
// End section: command_properties
|
|
30
9
|
constructor(input) {
|
|
31
|
-
// Start section: command_constructor
|
|
32
10
|
super();
|
|
33
11
|
this.input = input;
|
|
34
|
-
// End section: command_constructor
|
|
35
12
|
}
|
|
36
|
-
/**
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
39
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
40
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
41
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -60,4 +34,3 @@ class TagResourceCommand extends smithy_client_1.Command {
|
|
|
60
34
|
}
|
|
61
35
|
}
|
|
62
36
|
exports.TagResourceCommand = TagResourceCommand;
|
|
63
|
-
//# sourceMappingURL=TagResourceCommand.js.map
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Removes tags from the specified container. You can specify one or more tags to remove. </p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { MediaStoreClient, UntagResourceCommand } from "@aws-sdk/client-mediastore"; // ES Modules import
|
|
14
|
-
* // const { MediaStoreClient, UntagResourceCommand } = require("@aws-sdk/client-mediastore"); // CommonJS import
|
|
15
|
-
* const client = new MediaStoreClient(config);
|
|
16
|
-
* const command = new UntagResourceCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link UntagResourceCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link UntagResourceCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link MediaStoreClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class UntagResourceCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -58,4 +34,3 @@ class UntagResourceCommand extends smithy_client_1.Command {
|
|
|
58
34
|
}
|
|
59
35
|
}
|
|
60
36
|
exports.UntagResourceCommand = UntagResourceCommand;
|
|
61
|
-
//# sourceMappingURL=UntagResourceCommand.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./CreateContainerCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./DeleteContainerCommand"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./DeleteContainerPolicyCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./DeleteCorsPolicyCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./DeleteLifecyclePolicyCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./DeleteMetricPolicyCommand"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./DescribeContainerCommand"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./GetContainerPolicyCommand"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./GetCorsPolicyCommand"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./GetLifecyclePolicyCommand"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./GetMetricPolicyCommand"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./ListContainersCommand"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./PutContainerPolicyCommand"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./PutCorsPolicyCommand"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./PutLifecyclePolicyCommand"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./PutMetricPolicyCommand"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./StartAccessLoggingCommand"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./StopAccessLoggingCommand"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -35,7 +35,7 @@ const partitionHash = {
|
|
|
35
35
|
hostname: "mediastore.{region}.amazonaws.com.cn",
|
|
36
36
|
},
|
|
37
37
|
"aws-iso": {
|
|
38
|
-
regions: ["us-iso-east-1"],
|
|
38
|
+
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
39
39
|
hostname: "mediastore.{region}.c2s.ic.gov",
|
|
40
40
|
},
|
|
41
41
|
"aws-iso-b": {
|
|
@@ -54,4 +54,3 @@ const defaultRegionInfoProvider = async (region, options) => config_resolver_1.g
|
|
|
54
54
|
partitionHash,
|
|
55
55
|
});
|
|
56
56
|
exports.defaultRegionInfoProvider = defaultRegionInfoProvider;
|
|
57
|
-
//# sourceMappingURL=endpoints.js.map
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,30 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./MediaStoreClient"), exports);
|
|
5
4
|
tslib_1.__exportStar(require("./MediaStore"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./
|
|
7
|
-
tslib_1.__exportStar(require("./commands
|
|
8
|
-
tslib_1.__exportStar(require("./
|
|
9
|
-
tslib_1.__exportStar(require("./
|
|
10
|
-
tslib_1.__exportStar(require("./commands/DeleteLifecyclePolicyCommand"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("./commands/DeleteMetricPolicyCommand"), exports);
|
|
12
|
-
tslib_1.__exportStar(require("./commands/DescribeContainerCommand"), exports);
|
|
13
|
-
tslib_1.__exportStar(require("./commands/GetContainerPolicyCommand"), exports);
|
|
14
|
-
tslib_1.__exportStar(require("./commands/GetCorsPolicyCommand"), exports);
|
|
15
|
-
tslib_1.__exportStar(require("./commands/GetLifecyclePolicyCommand"), exports);
|
|
16
|
-
tslib_1.__exportStar(require("./commands/GetMetricPolicyCommand"), exports);
|
|
17
|
-
tslib_1.__exportStar(require("./commands/ListContainersCommand"), exports);
|
|
18
|
-
tslib_1.__exportStar(require("./pagination/ListContainersPaginator"), exports);
|
|
19
|
-
tslib_1.__exportStar(require("./commands/ListTagsForResourceCommand"), exports);
|
|
20
|
-
tslib_1.__exportStar(require("./commands/PutContainerPolicyCommand"), exports);
|
|
21
|
-
tslib_1.__exportStar(require("./commands/PutCorsPolicyCommand"), exports);
|
|
22
|
-
tslib_1.__exportStar(require("./commands/PutLifecyclePolicyCommand"), exports);
|
|
23
|
-
tslib_1.__exportStar(require("./commands/PutMetricPolicyCommand"), exports);
|
|
24
|
-
tslib_1.__exportStar(require("./commands/StartAccessLoggingCommand"), exports);
|
|
25
|
-
tslib_1.__exportStar(require("./commands/StopAccessLoggingCommand"), exports);
|
|
26
|
-
tslib_1.__exportStar(require("./commands/TagResourceCommand"), exports);
|
|
27
|
-
tslib_1.__exportStar(require("./commands/UntagResourceCommand"), exports);
|
|
28
|
-
tslib_1.__exportStar(require("./pagination/Interfaces"), exports);
|
|
29
|
-
tslib_1.__exportStar(require("./models/index"), exports);
|
|
30
|
-
//# sourceMappingURL=index.js.map
|
|
5
|
+
tslib_1.__exportStar(require("./MediaStoreClient"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./models"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./pagination"), exports);
|
package/dist-cjs/models/index.js
CHANGED