EBSClient
Auto-generated documentation for EBS type annotations stubs module types-aiobotocore-ebs.
EBSClient
Type annotations and code completion for session.client("ebs")
boto3 documentation
from aioboto3.session import Session
from types_aiobotocore_ebs.client import EBSClient
session = Session()
async with session.client("ebs") as client:
client: EBSClient
Exceptions
aioboto3
client exceptions are generated in runtime.
This class provides code completion for session.client("ebs").exceptions
structure.
async with session.client("ebs") as client:
try:
do_something(client)
except (
client.AccessDeniedException,
client.ClientError,
client.ConcurrentLimitExceededException,
client.ConflictException,
client.InternalServerException,
client.RequestThrottledException,
client.ResourceNotFoundException,
client.ServiceQuotaExceededException,
client.ValidationException,
) as e:
print(e)
from types_aiobotocore_ebs.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods
can_paginate
Check if an operation can be paginated.
Type annotations and code completion for session.client("ebs").can_paginate
method.
boto3 documentation
close
Closes underlying endpoint connections.
Type annotations and code completion for session.client("ebs").close
method.
boto3 documentation
complete_snapshot
Seals and completes the snapshot after all of the required blocks of data have been written to it.
Type annotations and code completion for session.client("ebs").complete_snapshot
method.
boto3 documentation
await def complete_snapshot(
self,
*,
SnapshotId: str,
ChangedBlocksCount: int,
Checksum: str = ...,
ChecksumAlgorithm: ChecksumAlgorithmType = ..., # (1)
ChecksumAggregationMethod: ChecksumAggregationMethodType = ..., # (2)
) -> CompleteSnapshotResponseTypeDef: # (3)
...
kwargs: CompleteSnapshotRequestRequestTypeDef = { # (1)
"SnapshotId": ...,
"ChangedBlocksCount": ...,
}
parent.complete_snapshot(**kwargs)
generate_presigned_url
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for session.client("ebs").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_snapshot_block
Returns the data in a block in an Amazon Elastic Block Store snapshot.
Type annotations and code completion for session.client("ebs").get_snapshot_block
method.
boto3 documentation
await def get_snapshot_block(
self,
*,
SnapshotId: str,
BlockIndex: int,
BlockToken: str,
) -> GetSnapshotBlockResponseTypeDef: # (1)
...
kwargs: GetSnapshotBlockRequestRequestTypeDef = { # (1)
"SnapshotId": ...,
"BlockIndex": ...,
"BlockToken": ...,
}
parent.get_snapshot_block(**kwargs)
list_changed_blocks
Returns information about the blocks that are different between two Amazon Elastic Block Store snapshots of the same volume/snapshot lineage.
Type annotations and code completion for session.client("ebs").list_changed_blocks
method.
boto3 documentation
await def list_changed_blocks(
self,
*,
SecondSnapshotId: str,
FirstSnapshotId: str = ...,
NextToken: str = ...,
MaxResults: int = ...,
StartingBlockIndex: int = ...,
) -> ListChangedBlocksResponseTypeDef: # (1)
...
kwargs: ListChangedBlocksRequestRequestTypeDef = { # (1)
"SecondSnapshotId": ...,
}
parent.list_changed_blocks(**kwargs)
list_snapshot_blocks
Returns information about the blocks in an Amazon Elastic Block Store snapshot.
Type annotations and code completion for session.client("ebs").list_snapshot_blocks
method.
boto3 documentation
await def list_snapshot_blocks(
self,
*,
SnapshotId: str,
NextToken: str = ...,
MaxResults: int = ...,
StartingBlockIndex: int = ...,
) -> ListSnapshotBlocksResponseTypeDef: # (1)
...
kwargs: ListSnapshotBlocksRequestRequestTypeDef = { # (1)
"SnapshotId": ...,
}
parent.list_snapshot_blocks(**kwargs)
put_snapshot_block
Writes a block of data to a snapshot.
Type annotations and code completion for session.client("ebs").put_snapshot_block
method.
boto3 documentation
await def put_snapshot_block(
self,
*,
SnapshotId: str,
BlockIndex: int,
BlockData: Union[str, bytes, IO[Any], StreamingBody],
DataLength: int,
Checksum: str,
ChecksumAlgorithm: ChecksumAlgorithmType, # (1)
Progress: int = ...,
) -> PutSnapshotBlockResponseTypeDef: # (2)
...
kwargs: PutSnapshotBlockRequestRequestTypeDef = { # (1)
"SnapshotId": ...,
"BlockIndex": ...,
"BlockData": ...,
"DataLength": ...,
"Checksum": ...,
"ChecksumAlgorithm": ...,
}
parent.put_snapshot_block(**kwargs)
start_snapshot
Creates a new Amazon EBS snapshot.
Type annotations and code completion for session.client("ebs").start_snapshot
method.
boto3 documentation
await def start_snapshot(
self,
*,
VolumeSize: int,
ParentSnapshotId: str = ...,
Tags: Sequence[TagTypeDef] = ..., # (1)
Description: str = ...,
ClientToken: str = ...,
Encrypted: bool = ...,
KmsKeyArn: str = ...,
Timeout: int = ...,
) -> StartSnapshotResponseTypeDef: # (2)
...
kwargs: StartSnapshotRequestRequestTypeDef = { # (1)
"VolumeSize": ...,
}
parent.start_snapshot(**kwargs)
__aenter__
Type annotations and code completion for session.client("ebs").__aenter__
method.
boto3 documentation
__aexit__
Type annotations and code completion for session.client("ebs").__aexit__
method.
boto3 documentation