create_container
async
¶
create_container(
container_name: ContainerName,
*,
config_overrides: Optional[AsyncMediaStoreClientConfig] = None,
tags: Optional[TagList] = None,
) -> CreateContainerOutput
Creates a storage container to hold objects. A container is similar to a bucket in the Amazon S3 service.
Parameters:
-
container_name(ContainerName) –The name for the container. The name must be from 1 to 255 characters. Container names must be unique to your AWS account within a specific region. As an example, you could create a container named
moviesin every region, as long as you don’t have an existing container with that name. -
tags(Optional[TagList], default:None) –An array of key:value pairs that you define. These values can be anything that you want. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each container. For more information about tagging, including naming and usage conventions, see Tagging Resources in MediaStore.
Raises:
-
ContainerInUseException–The container that you specified in the request already exists or is being updated.
-
InternalServerError–The service is temporarily unavailable.
-
LimitExceededException–A service limit has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.