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
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.
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)
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
close
Closes underlying endpoint connections.
Type annotations and code completion for session.client("mediastore-data").close
method.
boto3 documentation
delete_object
Deletes an object at the specified path.
Type annotations and code completion for session.client("mediastore-data").delete_object
method.
boto3 documentation
kwargs: DeleteObjectRequestRequestTypeDef = { # (1)
"Path": ...,
}
parent.delete_object(**kwargs)
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
await def describe_object(
self,
*,
Path: str,
) -> DescribeObjectResponseTypeDef: # (1)
...
kwargs: DescribeObjectRequestRequestTypeDef = { # (1)
"Path": ...,
}
parent.describe_object(**kwargs)
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
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
await def get_object(
self,
*,
Path: str,
Range: str = ...,
) -> GetObjectResponseTypeDef: # (1)
...
kwargs: GetObjectRequestRequestTypeDef = { # (1)
"Path": ...,
}
parent.get_object(**kwargs)
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
await def list_items(
self,
*,
Path: str = ...,
MaxResults: int = ...,
NextToken: str = ...,
) -> ListItemsResponseTypeDef: # (1)
...
kwargs: ListItemsRequestRequestTypeDef = { # (1)
"Path": ...,
}
parent.list_items(**kwargs)
put_object
Uploads an object to the specified path.
Type annotations and code completion for session.client("mediastore-data").put_object
method.
boto3 documentation
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)
...
kwargs: PutObjectRequestRequestTypeDef = { # (1)
"Body": ...,
"Path": ...,
}
parent.put_object(**kwargs)
__aenter__
Type annotations and code completion for session.client("mediastore-data").__aenter__
method.
boto3 documentation
__aexit__
Type annotations and code completion for session.client("mediastore-data").__aexit__
method.
boto3 documentation
get_paginator
Type annotations and code completion for session.client("mediastore-data").get_paginator
method with overloads.
client.get_paginator("list_items")
-> ListItemsPaginator