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.client("mediastore-data") boto3 documentation

Usage example
from aioboto3.session import Session
from types_aiobotocore_mediastore_data.client import MediaStoreDataClient

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

Exceptions

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

Usage example
async with session.client("mediastore-data") as client:
    try:
        do_something(client)
    except (
            client.ClientError,
        client.ContainerNotFoundException,
        client.InternalServerError,
        client.ObjectNotFoundException,
        client.RequestedRangeNotSatisfiableException,
    ) as e:
        print(e)
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.client("mediastore-data").can_paginate method. boto3 documentation

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

close

Closes underlying endpoint connections.

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

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

delete_object

Deletes an object at the specified path.

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

Method definition
await def delete_object(
    self,
    *,
    Path: str,
) -> Dict[str, Any]:
    ...
Usage example with kwargs
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.client("mediastore-data").describe_object method. boto3 documentation

Method definition
await def describe_object(
    self,
    *,
    Path: str,
) -> DescribeObjectResponseTypeDef:  # (1)
    ...
  1. See DescribeObjectResponseTypeDef
Usage example with kwargs
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.client("mediastore-data").generate_presigned_url method. boto3 documentation

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.client("mediastore-data").get_object method. boto3 documentation

Method definition
await def get_object(
    self,
    *,
    Path: str,
    Range: str = ...,
) -> GetObjectResponseTypeDef:  # (1)
    ...
  1. See GetObjectResponseTypeDef
Usage example with kwargs
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.client("mediastore-data").list_items method. boto3 documentation

Method definition
await def list_items(
    self,
    *,
    Path: str = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> ListItemsResponseTypeDef:  # (1)
    ...
  1. See ListItemsResponseTypeDef
Usage example with kwargs
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.client("mediastore-data").put_object method. boto3 documentation

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
Usage example with kwargs
kwargs: PutObjectRequestRequestTypeDef = {  # (1)
    "Body": ...,
    "Path": ...,
}

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

__aenter__

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

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

__aexit__

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

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.client("mediastore-data").get_paginator method with overloads.