Skip to content

MediaStoreDataClient#

Index > MediaStoreData > MediaStoreDataClient

Auto-generated documentation for MediaStoreData type annotations stubs module types-aiobotocore-mediastore-data.

MediaStoreDataClient#

Type annotations and code completion for session.create_client("mediastore-data") boto3 documentation

MediaStoreDataClient usage example

from aiobotocore.session import get_session
from types_aiobotocore_mediastore_data.client import MediaStoreDataClient

session = get_session()
async with session.create_client("mediastore-data") as client:
    client: MediaStoreDataClient

Exceptions#

aiobotocore client exceptions are generated in runtime. This class provides code completion for session.create_client("mediastore-data").exceptions structure.

MediaStoreDataClient.exceptions usage example

async with session.create_client("mediastore-data") as client:
    try:
        do_something(client)
    except (
            client.ClientError,
        client.ContainerNotFoundException,
        client.InternalServerError,
        client.ObjectNotFoundException,
        client.RequestedRangeNotSatisfiableException,
    ) as e:
        print(e)
MediaStoreDataClient usage type checking example

from types_aiobotocore_mediastore_data.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 session.create_client("mediastore-data").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 session.create_client("mediastore-data").close method. boto3 documentation

# close method definition

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

delete_object#

Deletes an object at the specified path.

Type annotations and code completion for session.create_client("mediastore-data").delete_object method. boto3 documentation

# delete_object method definition

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

kwargs: DeleteObjectRequestRequestTypeDef = {  # (1)
    "Path": ...,
}

parent.delete_object(**kwargs)
  1. See DeleteObjectRequestRequestTypeDef

describe_object#

Gets the headers for an object at the specified path.

Type annotations and code completion for session.create_client("mediastore-data").describe_object method. boto3 documentation

# describe_object method definition

await def describe_object(
    self,
    *,
    Path: str,
) -> DescribeObjectResponseTypeDef:  # (1)
    ...
  1. See DescribeObjectResponseTypeDef
# describe_object method usage example with argument unpacking

kwargs: DescribeObjectRequestRequestTypeDef = {  # (1)
    "Path": ...,
}

parent.describe_object(**kwargs)
  1. See DescribeObjectRequestRequestTypeDef

generate_presigned_url#

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

Type annotations and code completion for session.create_client("mediastore-data").generate_presigned_url method. boto3 documentation

# generate_presigned_url method definition

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

get_object#

Downloads the object at the specified path.

Type annotations and code completion for session.create_client("mediastore-data").get_object method. boto3 documentation

# get_object method definition

await def get_object(
    self,
    *,
    Path: str,
    Range: str = ...,
) -> GetObjectResponseTypeDef:  # (1)
    ...
  1. See GetObjectResponseTypeDef
# get_object method usage example with argument unpacking

kwargs: GetObjectRequestRequestTypeDef = {  # (1)
    "Path": ...,
}

parent.get_object(**kwargs)
  1. See GetObjectRequestRequestTypeDef

list_items#

Provides a list of metadata entries about folders and objects in the specified folder.

Type annotations and code completion for session.create_client("mediastore-data").list_items method. boto3 documentation

# list_items method definition

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

kwargs: ListItemsRequestRequestTypeDef = {  # (1)
    "Path": ...,
}

parent.list_items(**kwargs)
  1. See ListItemsRequestRequestTypeDef

put_object#

Uploads an object to the specified path.

Type annotations and code completion for session.create_client("mediastore-data").put_object method. boto3 documentation

# put_object method definition

await def put_object(
    self,
    *,
    Body: Union[str, bytes, IO[Any], StreamingBody],
    Path: str,
    ContentType: str = ...,
    CacheControl: str = ...,
    StorageClass: StorageClassType = ...,  # (1)
    UploadAvailability: UploadAvailabilityType = ...,  # (2)
) -> PutObjectResponseTypeDef:  # (3)
    ...
  1. See StorageClassType
  2. See UploadAvailabilityType
  3. See PutObjectResponseTypeDef
# put_object method usage example with argument unpacking

kwargs: PutObjectRequestRequestTypeDef = {  # (1)
    "Body": ...,
    "Path": ...,
}

parent.put_object(**kwargs)
  1. See PutObjectRequestRequestTypeDef

__aenter__#

Type annotations and code completion for session.create_client("mediastore-data").__aenter__ method. boto3 documentation

# __aenter__ method definition

await def __aenter__(
    self,
) -> MediaStoreDataClient:
    ...

__aexit__#

Type annotations and code completion for session.create_client("mediastore-data").__aexit__ method. boto3 documentation

# __aexit__ method definition

await def __aexit__(
    self,
    exc_type: Any,
    exc_val: Any,
    exc_tb: Any,
) -> Any:
    ...

get_paginator#

Type annotations and code completion for session.create_client("mediastore-data").get_paginator method with overloads.