Skip to content

Type definitions#

Index > MediaStoreData > Type definitions

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

BlobTypeDef#

# BlobTypeDef definition

BlobTypeDef = Union[
    str,
    bytes,
    IO[Any],
    StreamingBody,
]

DeleteObjectRequestRequestTypeDef#

# DeleteObjectRequestRequestTypeDef definition

class DeleteObjectRequestRequestTypeDef(TypedDict):
    Path: str,

DescribeObjectRequestRequestTypeDef#

# DescribeObjectRequestRequestTypeDef definition

class DescribeObjectRequestRequestTypeDef(TypedDict):
    Path: str,

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef definition

class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,
    HostId: NotRequired[str],

GetObjectRequestRequestTypeDef#

# GetObjectRequestRequestTypeDef definition

class GetObjectRequestRequestTypeDef(TypedDict):
    Path: str,
    Range: NotRequired[str],

ItemTypeDef#

# ItemTypeDef definition

class ItemTypeDef(TypedDict):
    Name: NotRequired[str],
    Type: NotRequired[ItemTypeType],  # (1)
    ETag: NotRequired[str],
    LastModified: NotRequired[datetime],
    ContentType: NotRequired[str],
    ContentLength: NotRequired[int],
  1. See ItemTypeType

PaginatorConfigTypeDef#

# PaginatorConfigTypeDef definition

class PaginatorConfigTypeDef(TypedDict):
    MaxItems: NotRequired[int],
    PageSize: NotRequired[int],
    StartingToken: NotRequired[str],

ListItemsRequestRequestTypeDef#

# ListItemsRequestRequestTypeDef definition

class ListItemsRequestRequestTypeDef(TypedDict):
    Path: NotRequired[str],
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],

PutObjectRequestRequestTypeDef#

# PutObjectRequestRequestTypeDef definition

class PutObjectRequestRequestTypeDef(TypedDict):
    Body: Union[str, bytes, IO[Any], StreamingBody],
    Path: str,
    ContentType: NotRequired[str],
    CacheControl: NotRequired[str],
    StorageClass: NotRequired[StorageClassType],  # (1)
    UploadAvailability: NotRequired[UploadAvailabilityType],  # (2)
  1. See StorageClassType
  2. See UploadAvailabilityType

DescribeObjectResponseTypeDef#

# DescribeObjectResponseTypeDef definition

class DescribeObjectResponseTypeDef(TypedDict):
    ETag: str,
    ContentType: str,
    ContentLength: int,
    CacheControl: str,
    LastModified: datetime,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

GetObjectResponseTypeDef#

# GetObjectResponseTypeDef definition

class GetObjectResponseTypeDef(TypedDict):
    Body: StreamingBody,
    CacheControl: str,
    ContentRange: str,
    ContentLength: int,
    ContentType: str,
    ETag: str,
    LastModified: datetime,
    StatusCode: int,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

PutObjectResponseTypeDef#

# PutObjectResponseTypeDef definition

class PutObjectResponseTypeDef(TypedDict):
    ContentSHA256: str,
    ETag: str,
    StorageClass: StorageClassType,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See StorageClassType
  2. See ResponseMetadataTypeDef

ListItemsResponseTypeDef#

# ListItemsResponseTypeDef definition

class ListItemsResponseTypeDef(TypedDict):
    Items: List[ItemTypeDef],  # (1)
    NextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ItemTypeDef
  2. See ResponseMetadataTypeDef

ListItemsRequestListItemsPaginateTypeDef#

# ListItemsRequestListItemsPaginateTypeDef definition

class ListItemsRequestListItemsPaginateTypeDef(TypedDict):
    Path: NotRequired[str],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef