**Example 1: To add a CORS policy** The following ``put-cors-policy`` example adds a cross-origin resource sharing (CORS) policy to the specified container. The contents of the CORS policy are in the file named ``corsPolicy.json``. :: aws mediastore put-cors-policy \ --container-name ExampleContainer \ --cors-policy file://corsPolicy.json This command produces no output. For more information, see `Adding a CORS Policy to a Container <https://docs.aws.amazon.com/mediastore/latest/ug/cors-policy-adding.html>`__ in the *AWS Elemental MediaStore User Guide*. **Example 2: To edit a CORS policy** The following ``put-cors-policy`` example updates the cross-origin resource sharing (CORS) policy that is assigned to the specified container. The contents of the updated CORS policy are in the file named ``corsPolicy2.json``. For more information, see `Editing a CORS Policy <https://docs.aws.amazon.com/mediastore/latest/ug/cors-policy-editing.html>`__ in the *AWS Elemental MediaStore User Guide*.
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
create-container.rst | File | 651 B | 0644 |
|
delete-container-policy.rst | File | 573 B | 0644 |
|
delete-container.rst | File | 447 B | 0644 |
|
delete-cors-policy.rst | File | 472 B | 0644 |
|
delete-lifecycle-policy.rst | File | 540 B | 0644 |
|
describe-container.rst | File | 804 B | 0644 |
|
describe-object.rst | File | 772 B | 0644 |
|
get-container-policy.rst | File | 1.19 KB | 0644 |
|
get-cors-policy.rst | File | 846 B | 0644 |
|
get-lifecycle-policy.rst | File | 1.2 KB | 0644 |
|
get-object.rst | File | 1.33 KB | 0644 |
|
list-containers.rst | File | 1.17 KB | 0644 |
|
list-items.rst | File | 1.71 KB | 0644 |
|
list-tags-for-resource.rst | File | 723 B | 0644 |
|
put-container-policy.rst | File | 580 B | 0644 |
|
put-cors-policy.rst | File | 1 KB | 0644 |
|
put-lifecycle-policy.rst | File | 814 B | 0644 |
|
put-object.rst | File | 1.03 KB | 0644 |
|
start-access-logging.rst | File | 465 B | 0644 |
|
stop-access-logging.rst | File | 468 B | 0644 |
|
tag-resource.rst | File | 555 B | 0644 |
|
untag-resource.rst | File | 520 B | 0644 |
|