Skip to content

Typed dictionaries

Index > EBS > Typed dictionaries

Auto-generated documentation for EBS type annotations stubs module mypy-boto3-ebs.

BlockTypeDef

Usage Example
from mypy_boto3_ebs.type_defs import BlockTypeDef

def get_value() -> BlockTypeDef:
    return {
        "BlockIndex": ...,
    }
Definition
class BlockTypeDef(TypedDict):
    BlockIndex: NotRequired[int],
    BlockToken: NotRequired[str],

ChangedBlockTypeDef

Usage Example
from mypy_boto3_ebs.type_defs import ChangedBlockTypeDef

def get_value() -> ChangedBlockTypeDef:
    return {
        "BlockIndex": ...,
    }
Definition
class ChangedBlockTypeDef(TypedDict):
    BlockIndex: NotRequired[int],
    FirstBlockToken: NotRequired[str],
    SecondBlockToken: NotRequired[str],

CompleteSnapshotRequestRequestTypeDef

Usage Example
from mypy_boto3_ebs.type_defs import CompleteSnapshotRequestRequestTypeDef

def get_value() -> CompleteSnapshotRequestRequestTypeDef:
    return {
        "SnapshotId": ...,
        "ChangedBlocksCount": ...,
    }
Definition
class CompleteSnapshotRequestRequestTypeDef(TypedDict):
    SnapshotId: str,
    ChangedBlocksCount: int,
    Checksum: NotRequired[str],
    ChecksumAlgorithm: NotRequired[ChecksumAlgorithmType],  # (1)
    ChecksumAggregationMethod: NotRequired[ChecksumAggregationMethodType],  # (2)
  1. See ChecksumAlgorithmType
  2. See ChecksumAggregationMethodType

ResponseMetadataTypeDef

Usage Example
from mypy_boto3_ebs.type_defs import ResponseMetadataTypeDef

def get_value() -> ResponseMetadataTypeDef:
    return {
        "RequestId": ...,
        "HostId": ...,
        "HTTPStatusCode": ...,
        "HTTPHeaders": ...,
        "RetryAttempts": ...,
    }
Definition
class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HostId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,

GetSnapshotBlockRequestRequestTypeDef

Usage Example
from mypy_boto3_ebs.type_defs import GetSnapshotBlockRequestRequestTypeDef

def get_value() -> GetSnapshotBlockRequestRequestTypeDef:
    return {
        "SnapshotId": ...,
        "BlockIndex": ...,
        "BlockToken": ...,
    }
Definition
class GetSnapshotBlockRequestRequestTypeDef(TypedDict):
    SnapshotId: str,
    BlockIndex: int,
    BlockToken: str,

ListChangedBlocksRequestRequestTypeDef

Usage Example
from mypy_boto3_ebs.type_defs import ListChangedBlocksRequestRequestTypeDef

def get_value() -> ListChangedBlocksRequestRequestTypeDef:
    return {
        "SecondSnapshotId": ...,
    }
Definition
class ListChangedBlocksRequestRequestTypeDef(TypedDict):
    SecondSnapshotId: str,
    FirstSnapshotId: NotRequired[str],
    NextToken: NotRequired[str],
    MaxResults: NotRequired[int],
    StartingBlockIndex: NotRequired[int],

ListSnapshotBlocksRequestRequestTypeDef

Usage Example
from mypy_boto3_ebs.type_defs import ListSnapshotBlocksRequestRequestTypeDef

def get_value() -> ListSnapshotBlocksRequestRequestTypeDef:
    return {
        "SnapshotId": ...,
    }
Definition
class ListSnapshotBlocksRequestRequestTypeDef(TypedDict):
    SnapshotId: str,
    NextToken: NotRequired[str],
    MaxResults: NotRequired[int],
    StartingBlockIndex: NotRequired[int],

PutSnapshotBlockRequestRequestTypeDef

Usage Example
from mypy_boto3_ebs.type_defs import PutSnapshotBlockRequestRequestTypeDef

def get_value() -> PutSnapshotBlockRequestRequestTypeDef:
    return {
        "SnapshotId": ...,
        "BlockIndex": ...,
        "BlockData": ...,
        "DataLength": ...,
        "Checksum": ...,
        "ChecksumAlgorithm": ...,
    }
Definition
class PutSnapshotBlockRequestRequestTypeDef(TypedDict):
    SnapshotId: str,
    BlockIndex: int,
    BlockData: Union[str, bytes, IO[Any], StreamingBody],
    DataLength: int,
    Checksum: str,
    ChecksumAlgorithm: ChecksumAlgorithmType,  # (1)
    Progress: NotRequired[int],
  1. See ChecksumAlgorithmType

TagTypeDef

Usage Example
from mypy_boto3_ebs.type_defs import TagTypeDef

def get_value() -> TagTypeDef:
    return {
        "Key": ...,
    }
Definition
class TagTypeDef(TypedDict):
    Key: NotRequired[str],
    Value: NotRequired[str],

CompleteSnapshotResponseTypeDef

Usage Example
from mypy_boto3_ebs.type_defs import CompleteSnapshotResponseTypeDef

def get_value() -> CompleteSnapshotResponseTypeDef:
    return {
        "Status": ...,
        "ResponseMetadata": ...,
    }
Definition
class CompleteSnapshotResponseTypeDef(TypedDict):
    Status: StatusType,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See StatusType
  2. See ResponseMetadataTypeDef

GetSnapshotBlockResponseTypeDef

Usage Example
from mypy_boto3_ebs.type_defs import GetSnapshotBlockResponseTypeDef

def get_value() -> GetSnapshotBlockResponseTypeDef:
    return {
        "DataLength": ...,
        "BlockData": ...,
        "Checksum": ...,
        "ChecksumAlgorithm": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetSnapshotBlockResponseTypeDef(TypedDict):
    DataLength: int,
    BlockData: StreamingBody,
    Checksum: str,
    ChecksumAlgorithm: ChecksumAlgorithmType,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ChecksumAlgorithmType
  2. See ResponseMetadataTypeDef

ListChangedBlocksResponseTypeDef

Usage Example
from mypy_boto3_ebs.type_defs import ListChangedBlocksResponseTypeDef

def get_value() -> ListChangedBlocksResponseTypeDef:
    return {
        "ChangedBlocks": ...,
        "ExpiryTime": ...,
        "VolumeSize": ...,
        "BlockSize": ...,
        "NextToken": ...,
        "ResponseMetadata": ...,
    }
Definition
class ListChangedBlocksResponseTypeDef(TypedDict):
    ChangedBlocks: List[ChangedBlockTypeDef],  # (1)
    ExpiryTime: datetime,
    VolumeSize: int,
    BlockSize: int,
    NextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ChangedBlockTypeDef
  2. See ResponseMetadataTypeDef

ListSnapshotBlocksResponseTypeDef

Usage Example
from mypy_boto3_ebs.type_defs import ListSnapshotBlocksResponseTypeDef

def get_value() -> ListSnapshotBlocksResponseTypeDef:
    return {
        "Blocks": ...,
        "ExpiryTime": ...,
        "VolumeSize": ...,
        "BlockSize": ...,
        "NextToken": ...,
        "ResponseMetadata": ...,
    }
Definition
class ListSnapshotBlocksResponseTypeDef(TypedDict):
    Blocks: List[BlockTypeDef],  # (1)
    ExpiryTime: datetime,
    VolumeSize: int,
    BlockSize: int,
    NextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See BlockTypeDef
  2. See ResponseMetadataTypeDef

PutSnapshotBlockResponseTypeDef

Usage Example
from mypy_boto3_ebs.type_defs import PutSnapshotBlockResponseTypeDef

def get_value() -> PutSnapshotBlockResponseTypeDef:
    return {
        "Checksum": ...,
        "ChecksumAlgorithm": ...,
        "ResponseMetadata": ...,
    }
Definition
class PutSnapshotBlockResponseTypeDef(TypedDict):
    Checksum: str,
    ChecksumAlgorithm: ChecksumAlgorithmType,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ChecksumAlgorithmType
  2. See ResponseMetadataTypeDef

StartSnapshotRequestRequestTypeDef

Usage Example
from mypy_boto3_ebs.type_defs import StartSnapshotRequestRequestTypeDef

def get_value() -> StartSnapshotRequestRequestTypeDef:
    return {
        "VolumeSize": ...,
    }
Definition
class StartSnapshotRequestRequestTypeDef(TypedDict):
    VolumeSize: int,
    ParentSnapshotId: NotRequired[str],
    Tags: NotRequired[Sequence[TagTypeDef]],  # (1)
    Description: NotRequired[str],
    ClientToken: NotRequired[str],
    Encrypted: NotRequired[bool],
    KmsKeyArn: NotRequired[str],
    Timeout: NotRequired[int],
  1. See TagTypeDef

StartSnapshotResponseTypeDef

Usage Example
from mypy_boto3_ebs.type_defs import StartSnapshotResponseTypeDef

def get_value() -> StartSnapshotResponseTypeDef:
    return {
        "Description": ...,
        "SnapshotId": ...,
        "OwnerId": ...,
        "Status": ...,
        "StartTime": ...,
        "VolumeSize": ...,
        "BlockSize": ...,
        "Tags": ...,
        "ParentSnapshotId": ...,
        "KmsKeyArn": ...,
        "ResponseMetadata": ...,
    }
Definition
class StartSnapshotResponseTypeDef(TypedDict):
    Description: str,
    SnapshotId: str,
    OwnerId: str,
    Status: StatusType,  # (1)
    StartTime: datetime,
    VolumeSize: int,
    BlockSize: int,
    Tags: List[TagTypeDef],  # (2)
    ParentSnapshotId: str,
    KmsKeyArn: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See StatusType
  2. See TagTypeDef
  3. See ResponseMetadataTypeDef