Skip to content

Type definitions#

Index > MediaStore > Type definitions

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

CorsRuleUnionTypeDef#

# CorsRuleUnionTypeDef definition

CorsRuleUnionTypeDef = Union[
    CorsRuleTypeDef,  # (1)
    CorsRuleOutputTypeDef,  # (2)
]
  1. See CorsRuleTypeDef
  2. See CorsRuleOutputTypeDef

ContainerTypeDef#

# ContainerTypeDef definition

class ContainerTypeDef(TypedDict):
    Endpoint: NotRequired[str],
    CreationTime: NotRequired[datetime],
    ARN: NotRequired[str],
    Name: NotRequired[str],
    Status: NotRequired[ContainerStatusType],  # (1)
    AccessLoggingEnabled: NotRequired[bool],
  1. See ContainerStatusType

CorsRuleOutputTypeDef#

# CorsRuleOutputTypeDef definition

class CorsRuleOutputTypeDef(TypedDict):
    AllowedOrigins: List[str],
    AllowedHeaders: List[str],
    AllowedMethods: NotRequired[List[MethodNameType]],  # (1)
    MaxAgeSeconds: NotRequired[int],
    ExposeHeaders: NotRequired[List[str]],
  1. See MethodNameType

CorsRuleTypeDef#

# CorsRuleTypeDef definition

class CorsRuleTypeDef(TypedDict):
    AllowedOrigins: Sequence[str],
    AllowedHeaders: Sequence[str],
    AllowedMethods: NotRequired[Sequence[MethodNameType]],  # (1)
    MaxAgeSeconds: NotRequired[int],
    ExposeHeaders: NotRequired[Sequence[str]],
  1. See MethodNameType

TagTypeDef#

# TagTypeDef definition

class TagTypeDef(TypedDict):
    Key: str,
    Value: NotRequired[str],

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef definition

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

DeleteContainerInputRequestTypeDef#

# DeleteContainerInputRequestTypeDef definition

class DeleteContainerInputRequestTypeDef(TypedDict):
    ContainerName: str,

DeleteContainerPolicyInputRequestTypeDef#

# DeleteContainerPolicyInputRequestTypeDef definition

class DeleteContainerPolicyInputRequestTypeDef(TypedDict):
    ContainerName: str,

DeleteCorsPolicyInputRequestTypeDef#

# DeleteCorsPolicyInputRequestTypeDef definition

class DeleteCorsPolicyInputRequestTypeDef(TypedDict):
    ContainerName: str,

DeleteLifecyclePolicyInputRequestTypeDef#

# DeleteLifecyclePolicyInputRequestTypeDef definition

class DeleteLifecyclePolicyInputRequestTypeDef(TypedDict):
    ContainerName: str,

DeleteMetricPolicyInputRequestTypeDef#

# DeleteMetricPolicyInputRequestTypeDef definition

class DeleteMetricPolicyInputRequestTypeDef(TypedDict):
    ContainerName: str,

DescribeContainerInputRequestTypeDef#

# DescribeContainerInputRequestTypeDef definition

class DescribeContainerInputRequestTypeDef(TypedDict):
    ContainerName: NotRequired[str],

GetContainerPolicyInputRequestTypeDef#

# GetContainerPolicyInputRequestTypeDef definition

class GetContainerPolicyInputRequestTypeDef(TypedDict):
    ContainerName: str,

GetCorsPolicyInputRequestTypeDef#

# GetCorsPolicyInputRequestTypeDef definition

class GetCorsPolicyInputRequestTypeDef(TypedDict):
    ContainerName: str,

GetLifecyclePolicyInputRequestTypeDef#

# GetLifecyclePolicyInputRequestTypeDef definition

class GetLifecyclePolicyInputRequestTypeDef(TypedDict):
    ContainerName: str,

GetMetricPolicyInputRequestTypeDef#

# GetMetricPolicyInputRequestTypeDef definition

class GetMetricPolicyInputRequestTypeDef(TypedDict):
    ContainerName: str,

PaginatorConfigTypeDef#

# PaginatorConfigTypeDef definition

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

ListContainersInputRequestTypeDef#

# ListContainersInputRequestTypeDef definition

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

ListTagsForResourceInputRequestTypeDef#

# ListTagsForResourceInputRequestTypeDef definition

class ListTagsForResourceInputRequestTypeDef(TypedDict):
    Resource: str,

MetricPolicyRuleTypeDef#

# MetricPolicyRuleTypeDef definition

class MetricPolicyRuleTypeDef(TypedDict):
    ObjectGroup: str,
    ObjectGroupName: str,

PutContainerPolicyInputRequestTypeDef#

# PutContainerPolicyInputRequestTypeDef definition

class PutContainerPolicyInputRequestTypeDef(TypedDict):
    ContainerName: str,
    Policy: str,

PutLifecyclePolicyInputRequestTypeDef#

# PutLifecyclePolicyInputRequestTypeDef definition

class PutLifecyclePolicyInputRequestTypeDef(TypedDict):
    ContainerName: str,
    LifecyclePolicy: str,

StartAccessLoggingInputRequestTypeDef#

# StartAccessLoggingInputRequestTypeDef definition

class StartAccessLoggingInputRequestTypeDef(TypedDict):
    ContainerName: str,

StopAccessLoggingInputRequestTypeDef#

# StopAccessLoggingInputRequestTypeDef definition

class StopAccessLoggingInputRequestTypeDef(TypedDict):
    ContainerName: str,

UntagResourceInputRequestTypeDef#

# UntagResourceInputRequestTypeDef definition

class UntagResourceInputRequestTypeDef(TypedDict):
    Resource: str,
    TagKeys: Sequence[str],

CreateContainerInputRequestTypeDef#

# CreateContainerInputRequestTypeDef definition

class CreateContainerInputRequestTypeDef(TypedDict):
    ContainerName: str,
    Tags: NotRequired[Sequence[TagTypeDef]],  # (1)
  1. See TagTypeDef

TagResourceInputRequestTypeDef#

# TagResourceInputRequestTypeDef definition

class TagResourceInputRequestTypeDef(TypedDict):
    Resource: str,
    Tags: Sequence[TagTypeDef],  # (1)
  1. See TagTypeDef

CreateContainerOutputTypeDef#

# CreateContainerOutputTypeDef definition

class CreateContainerOutputTypeDef(TypedDict):
    Container: ContainerTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ContainerTypeDef
  2. See ResponseMetadataTypeDef

DescribeContainerOutputTypeDef#

# DescribeContainerOutputTypeDef definition

class DescribeContainerOutputTypeDef(TypedDict):
    Container: ContainerTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ContainerTypeDef
  2. See ResponseMetadataTypeDef

GetContainerPolicyOutputTypeDef#

# GetContainerPolicyOutputTypeDef definition

class GetContainerPolicyOutputTypeDef(TypedDict):
    Policy: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

GetCorsPolicyOutputTypeDef#

# GetCorsPolicyOutputTypeDef definition

class GetCorsPolicyOutputTypeDef(TypedDict):
    CorsPolicy: List[CorsRuleOutputTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See CorsRuleOutputTypeDef
  2. See ResponseMetadataTypeDef

GetLifecyclePolicyOutputTypeDef#

# GetLifecyclePolicyOutputTypeDef definition

class GetLifecyclePolicyOutputTypeDef(TypedDict):
    LifecyclePolicy: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

ListContainersOutputTypeDef#

# ListContainersOutputTypeDef definition

class ListContainersOutputTypeDef(TypedDict):
    Containers: List[ContainerTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],
  1. See ContainerTypeDef
  2. See ResponseMetadataTypeDef

ListTagsForResourceOutputTypeDef#

# ListTagsForResourceOutputTypeDef definition

class ListTagsForResourceOutputTypeDef(TypedDict):
    Tags: List[TagTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See TagTypeDef
  2. See ResponseMetadataTypeDef

ListContainersInputListContainersPaginateTypeDef#

# ListContainersInputListContainersPaginateTypeDef definition

class ListContainersInputListContainersPaginateTypeDef(TypedDict):
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

MetricPolicyOutputTypeDef#

# MetricPolicyOutputTypeDef definition

class MetricPolicyOutputTypeDef(TypedDict):
    ContainerLevelMetrics: ContainerLevelMetricsType,  # (1)
    MetricPolicyRules: NotRequired[List[MetricPolicyRuleTypeDef]],  # (2)
  1. See ContainerLevelMetricsType
  2. See