Skip to content

MediaStoreClient#

Index > MediaStore > MediaStoreClient

Auto-generated documentation for MediaStore type annotations stubs module mypy-boto3-mediastore.

MediaStoreClient#

Type annotations and code completion for boto3.client("mediastore"). boto3 documentation

# MediaStoreClient usage example

from boto3.session import Session
from mypy_boto3_mediastore.client import MediaStoreClient

def get_mediastore_client() -> MediaStoreClient:
    return Session().client("mediastore")

Exceptions#

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("mediastore").exceptions structure.

# Exceptions.exceptions usage example

client = boto3.client("mediastore")

try:
    do_something(client)
except (
    client.exceptions.ClientError,
    client.exceptions.ContainerInUseException,
    client.exceptions.ContainerNotFoundException,
    client.exceptions.CorsPolicyNotFoundException,
    client.exceptions.InternalServerError,
    client.exceptions.LimitExceededException,
    client.exceptions.PolicyNotFoundException,
) as e:
    print(e)
# Exceptions.exceptions type checking example

from mypy_boto3_mediastore.client import Exceptions

def handle_error(exc: Exceptions.ClientError) -> None:
    ...

Methods#

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for boto3.client("mediastore").can_paginate method. boto3 documentation

# can_paginate method definition

def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

close#

Closes underlying endpoint connections.

Type annotations and code completion for boto3.client("mediastore").close method. boto3 documentation

# close method definition

def close(
    self,
) -> None:
    ...

create_container#

Creates a storage container to hold objects.

Type annotations and code completion for boto3.client("mediastore").create_container method. boto3 documentation

# create_container method definition

def create_container(
    self,
    *,
    ContainerName: str,
    Tags: Sequence[TagTypeDef] = ...,  # (1)
) -> CreateContainerOutputTypeDef:  # (2)
    ...
  1. See TagTypeDef
  2. See CreateContainerOutputTypeDef
# create_container method usage example with argument unpacking

kwargs: CreateContainerInputRequestTypeDef = {  # (1)
    "ContainerName": ...,
}

parent.create_container(**kwargs)
  1. See CreateContainerInputRequestTypeDef

delete_container#

Deletes the specified container.

Type annotations and code completion for boto3.client("mediastore").delete_container method. boto3 documentation

# delete_container method definition

def delete_container(
    self,
    *,
    ContainerName: str,
) -> Dict[str, Any]:
    ...
# delete_container method usage example with argument unpacking

kwargs: DeleteContainerInputRequestTypeDef = {  # (1)
    "ContainerName": ...,
}

parent.delete_container(**kwargs)
  1. See DeleteContainerInputRequestTypeDef

delete_container_policy#

Deletes the access policy that is associated with the specified container.

Type annotations and code completion for boto3.client("mediastore").delete_container_policy method. boto3 documentation

# delete_container_policy method definition

def delete_container_policy(
    self,
    *,
    ContainerName: str,
) -> Dict[str, Any]:
    ...
# delete_container_policy method usage example with argument unpacking

kwargs: DeleteContainerPolicyInputRequestTypeDef = {  # (1)
    "ContainerName": ...,
}

parent.delete_container_policy(**kwargs)
  1. See DeleteContainerPolicyInputRequestTypeDef

delete_cors_policy#

Deletes the cross-origin resource sharing (CORS) configuration information that is set for the container.

Type annotations and code completion for boto3.client("mediastore").delete_cors_policy method. boto3 documentation

# delete_cors_policy method definition

def delete_cors_policy(
    self,
    *,
    ContainerName: str,
) -> Dict[str, Any]:
    ...
# delete_cors_policy method usage example with argument unpacking

kwargs: DeleteCorsPolicyInputRequestTypeDef = {  # (1)
    "ContainerName": ...,
}

parent.delete_cors_policy(**kwargs)
  1. See DeleteCorsPolicyInputRequestTypeDef

delete_lifecycle_policy#

Removes an object lifecycle policy from a container.

Type annotations and code completion for boto3.client("mediastore").delete_lifecycle_policy method. boto3 documentation

# delete_lifecycle_policy method definition

def delete_lifecycle_policy(
    self,
    *,
    ContainerName: str,
) -> Dict[str, Any]:
    ...
# delete_lifecycle_policy method usage example with argument unpacking

kwargs: DeleteLifecyclePolicyInputRequestTypeDef = {  # (1)
    "ContainerName": ...,
}

parent.delete_lifecycle_policy(**kwargs)
  1. See DeleteLifecyclePolicyInputRequestTypeDef

delete_metric_policy#

Deletes the metric policy that is associated with the specified container.

Type annotations and code completion for boto3.client("mediastore").delete_metric_policy method. boto3 documentation

# delete_metric_policy method definition

def delete_metric_policy(
    self,
    *,
    ContainerName: str,
) -> Dict[str, Any]:
    ...
# delete_metric_policy method usage example with argument unpacking

kwargs: DeleteMetricPolicyInputRequestTypeDef = {  # (1)
    "ContainerName": ...,
}

parent.delete_metric_policy(**kwargs)
  1. See DeleteMetricPolicyInputRequestTypeDef

describe_container#

Retrieves the properties of the requested container.

Type annotations and code completion for boto3.client("mediastore").describe_container method. boto3 documentation

# describe_container method definition

def describe_container(
    self,
    *,
    ContainerName: str = ...,
) -> DescribeContainerOutputTypeDef:  # (1)
    ...
  1. See DescribeContainerOutputTypeDef
# describe_container method usage example with argument unpacking

kwargs: DescribeContainerInputRequestTypeDef = {  # (1)
    "ContainerName": ...,
}

parent.describe_container(**kwargs)
  1. See DescribeContainerInputRequestTypeDef

generate_presigned_url#

Generate a presigned url given a client, its method, and arguments.

Type annotations and code completion for boto3.client("mediastore").generate_presigned_url method. boto3 documentation

# generate_presigned_url method definition

def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

get_container_policy#

Retrieves the access policy for the specified container.

Type annotations and code completion for boto3.client("mediastore").get_container_policy method. boto3 documentation

# get_container_policy method definition

def get_container_policy(
    self,
    *,
    ContainerName: str,
) -> GetContainerPolicyOutputTypeDef:  # (1)
    ...
  1. See GetContainerPolicyOutputTypeDef
# get_container_policy method usage example with argument unpacking

kwargs: GetContainerPolicyInputRequestTypeDef = {  # (1)
    "ContainerName": ...,
}

parent.get_container_policy(**kwargs)
  1. See GetContainerPolicyInputRequestTypeDef

get_cors_policy#

Returns the cross-origin resource sharing (CORS) configuration information that is set for the container.

Type annotations and code completion for boto3.client("mediastore").get_cors_policy method. boto3 documentation

# get_cors_policy method definition

def get_cors_policy(
    self,
    *,
    ContainerName: str,
) -> GetCorsPolicyOutputTypeDef:  # (1)
    ...
  1. See GetCorsPolicyOutputTypeDef
# get_cors_policy method usage example with argument unpacking

kwargs: GetCorsPolicyInputRequestTypeDef = {  # (1)
    "ContainerName": ...,
}

parent.get_cors_policy(**kwargs)
  1. See GetCorsPolicyInputRequestTypeDef

get_lifecycle_policy#

Retrieves the object lifecycle policy that is assigned to a container.

Type annotations and code completion for boto3.client("mediastore").get_lifecycle_policy method. boto3 documentation

# get_lifecycle_policy method definition

def get_lifecycle_policy(
    self,
    *,
    ContainerName: str,
) -> GetLifecyclePolicyOutputTypeDef:  # (1)
    ...
  1. See GetLifecyclePolicyOutputTypeDef
# get_lifecycle_policy method usage example with argument unpacking

kwargs: GetLifecyclePolicyInputRequestTypeDef = {  # (1)
    "ContainerName": ...,
}

parent.get_lifecycle_policy(**kwargs)
  1. See GetLifecyclePolicyInputRequestTypeDef

get_metric_policy#

Returns the metric policy for the specified container.

Type annotations and code completion for boto3.client("mediastore").get_metric_policy method. boto3 documentation

# get_metric_policy method definition

def get_metric_policy(
    self,
    *,
    ContainerName: str,
) -> GetMetricPolicyOutputTypeDef:  # (1)
    ...
  1. See GetMetricPolicyOutputTypeDef
# get_metric_policy method usage example with argument unpacking

kwargs: GetMetricPolicyInputRequestTypeDef = {  # (1)
    "ContainerName": ...,
}

parent.get_metric_policy(**kwargs)
  1. See GetMetricPolicyInputRequestTypeDef

list_containers#

Lists the properties of all containers in AWS Elemental MediaStore.

Type annotations and code completion for boto3.client("mediastore").list_containers method. boto3 documentation

# list_containers method definition

def list_containers(
    self,
    *,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> ListContainersOutputTypeDef:  # (1)
    ...
  1. See ListContainersOutputTypeDef
# list_containers method usage example with argument unpacking

kwargs: ListContainersInputRequestTypeDef = {  # (1)
    "NextToken": ...,
}

parent.list_containers(**kwargs)
  1. See ListContainersInputRequestTypeDef

list_tags_for_resource#

Returns a list of the tags assigned to the specified container.

Type annotations and code completion for boto3.client("mediastore").list_tags_for_resource method.