BackupStorageClient
Index > BackupStorage > BackupStorageClient
Auto-generated documentation for BackupStorage type annotations stubs module mypy-boto3-backupstorage.
BackupStorageClient
Type annotations and code completion for boto3.client("backupstorage")
.
boto3 documentation
from boto3.session import Session
from mypy_boto3_backupstorage.client import BackupStorageClient
def get_backupstorage_client() -> BackupStorageClient:
return Session().client("backupstorage")
Exceptions
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("backupstorage").exceptions
structure.
client = boto3.client("backupstorage")
try:
do_something(client)
except (
client.AccessDeniedException,
client.ClientError,
client.DataAlreadyExistsException,
client.IllegalArgumentException,
client.KMSInvalidKeyUsageException,
client.NotReadableInputStreamException,
client.ResourceNotFoundException,
client.RetryableException,
client.ServiceInternalException,
client.ServiceUnavailableException,
client.ThrottlingException,
) as e:
print(e)
from mypy_boto3_backupstorage.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 boto3.client("backupstorage").can_paginate
method.
boto3 documentation
close
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("backupstorage").close
method.
boto3 documentation
delete_object
Delete Object from the incremental base Backup.
Type annotations and code completion for boto3.client("backupstorage").delete_object
method.
boto3 documentation
def delete_object(
self,
*,
BackupJobId: str,
ObjectName: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
kwargs: DeleteObjectInputRequestTypeDef = { # (1)
"BackupJobId": ...,
"ObjectName": ...,
}
parent.delete_object(**kwargs)
generate_presigned_url
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for boto3.client("backupstorage").generate_presigned_url
method.
boto3 documentation
def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
get_chunk
Gets the specified object's chunk.
Type annotations and code completion for boto3.client("backupstorage").get_chunk
method.
boto3 documentation
def get_chunk(
self,
*,
StorageJobId: str,
ChunkToken: str,
) -> GetChunkOutputTypeDef: # (1)
...
kwargs: GetChunkInputRequestTypeDef = { # (1)
"StorageJobId": ...,
"ChunkToken": ...,
}
parent.get_chunk(**kwargs)
get_object_metadata
Get metadata associated with an Object.
Type annotations and code completion for boto3.client("backupstorage").get_object_metadata
method.
boto3 documentation
def get_object_metadata(
self,
*,
StorageJobId: str,
ObjectToken: str,
) -> GetObjectMetadataOutputTypeDef: # (1)
...
kwargs: GetObjectMetadataInputRequestTypeDef = { # (1)
"StorageJobId": ...,
"ObjectToken": ...,
}
parent.get_object_metadata(**kwargs)
list_chunks
List chunks in a given Object See also: AWS API Documentation.
Type annotations and code completion for boto3.client("backupstorage").list_chunks
method.
boto3 documentation
def list_chunks(
self,
*,
StorageJobId: str,
ObjectToken: str,
MaxResults: int = ...,
NextToken: str = ...,
) -> ListChunksOutputTypeDef: # (1)
...
kwargs: ListChunksInputRequestTypeDef = { # (1)
"StorageJobId": ...,
"ObjectToken": ...,
}
parent.list_chunks(**kwargs)
list_objects
List all Objects in a given Backup.
Type annotations and code completion for boto3.client("backupstorage").list_objects
method.
boto3 documentation
def list_objects(
self,
*,
StorageJobId: str,
StartingObjectName: str = ...,
StartingObjectPrefix: str = ...,
MaxResults: int = ...,
NextToken: str = ...,
CreatedBefore: Union[datetime, str] = ...,
CreatedAfter: Union[datetime, str] = ...,
) -> ListObjectsOutputTypeDef: # (1)
...
kwargs: ListObjectsInputRequestTypeDef = { # (1)
"StorageJobId": ...,
}
parent.list_objects(**kwargs)
notify_object_complete
Complete upload See also: AWS API Documentation.
Type annotations and code completion for boto3.client("backupstorage").notify_object_complete
method.
boto3 documentation
def notify_object_complete(
self,
*,
BackupJobId: str,
UploadId: str,
ObjectChecksum: str,
ObjectChecksumAlgorithm: SummaryChecksumAlgorithmType, # (1)
MetadataString: str = ...,
MetadataBlob: Union[str, bytes, IO[Any], StreamingBody] = ...,
MetadataBlobLength: int = ...,
MetadataBlobChecksum: str = ...,
MetadataBlobChecksumAlgorithm: DataChecksumAlgorithmType = ..., # (2)
) -> NotifyObjectCompleteOutputTypeDef: # (3)
...
- See SummaryChecksumAlgorithmType
- See DataChecksumAlgorithmType
- See NotifyObjectCompleteOutputTypeDef
kwargs: NotifyObjectCompleteInputRequestTypeDef = { # (1)
"BackupJobId": ...,
"UploadId": ...,
"ObjectChecksum": ...,
"ObjectChecksumAlgorithm": ...,
}
parent.notify_object_complete(**kwargs)
put_chunk
Upload chunk.
Type annotations and code completion for boto3.client("backupstorage").put_chunk
method.
boto3 documentation
def put_chunk(
self,
*,
BackupJobId: str,
UploadId: str,
ChunkIndex: int,
Data: Union[str, bytes, IO[Any], StreamingBody],
Length: int,
Checksum: str,
ChecksumAlgorithm: DataChecksumAlgorithmType, # (1)
) -> PutChunkOutputTypeDef: # (2)
...
kwargs: PutChunkInputRequestTypeDef = { # (1)
"BackupJobId": ...,
"UploadId": ...,
"ChunkIndex": ...,
"Data": ...,
"Length": ...,
"Checksum": ...,
"ChecksumAlgorithm": ...,
}
parent.put_chunk(**kwargs)
put_object
Upload object that can store object metadata String and data blob in single API call using inline chunk field.
Type annotations and code completion for boto3.client("backupstorage").put_object
method.
boto3 documentation
def put_object(
self,
*,
BackupJobId: str,
ObjectName: str,
MetadataString: str = ...,
InlineChunk: Union[str, bytes, IO[Any], StreamingBody] = ...,
InlineChunkLength: int = ...,
InlineChunkChecksum: str = ...,
InlineChunkChecksumAlgorithm: str = ...,
ObjectChecksum: str = ...,
ObjectChecksumAlgorithm: SummaryChecksumAlgorithmType = ..., # (1)
ThrowOnDuplicate: bool = ...,
) -> PutObjectOutputTypeDef: # (2)
...
kwargs: PutObjectInputRequestTypeDef = { # (1)
"BackupJobId": ...,
"ObjectName": ...,
}
parent.put_object(**kwargs)
start_object
Start upload containing one or many chunks.
Type annotations and code completion for boto3.client("backupstorage").start_object
method.
boto3 documentation
def start_object(
self,
*,
BackupJobId: str,
ObjectName: str,
ThrowOnDuplicate: bool = ...,
) -> StartObjectOutputTypeDef: # (1)
...