MediaStore / Client / delete_cors_policy
delete_cors_policy#
- MediaStore.Client.delete_cors_policy(**kwargs)#
Deletes the cross-origin resource sharing (CORS) configuration information that is set for the container.
To use this operation, you must have permission to perform the
MediaStore:DeleteCorsPolicy
action. The container owner has this permission by default and can grant this permission to others.See also: AWS API Documentation
Request Syntax
response = client.delete_cors_policy( ContainerName='string' )
- Parameters:
ContainerName (string) –
[REQUIRED]
The name of the container to remove the policy from.
- Return type:
dict
- Returns:
Response Syntax
{}
Response Structure
(dict) –
Exceptions
MediaStore.Client.exceptions.ContainerInUseException
MediaStore.Client.exceptions.ContainerNotFoundException
MediaStore.Client.exceptions.CorsPolicyNotFoundException
MediaStore.Client.exceptions.InternalServerError