BackupSearchClient#
Index > BackupSearch > BackupSearchClient
Auto-generated documentation for BackupSearch type annotations stubs module mypy-boto3-backupsearch.
BackupSearchClient#
Type annotations and code completion for boto3.client("backupsearch")
.
boto3 documentation
# BackupSearchClient usage example
from boto3.session import Session
from mypy_boto3_backupsearch.client import BackupSearchClient
def get_backupsearch_client() -> BackupSearchClient:
return Session().client("backupsearch")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("backupsearch").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("backupsearch")
try:
do_something(client)
except (
client.exceptions.AccessDeniedException,
client.exceptions.ClientError,
client.exceptions.ConflictException,
client.exceptions.InternalServerException,
client.exceptions.ResourceNotFoundException,
client.exceptions.ServiceQuotaExceededException,
client.exceptions.ThrottlingException,
client.exceptions.ValidationException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_backupsearch.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods#
can_paginate#
Type annotations and code completion for boto3.client("backupsearch").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
generate_presigned_url#
Type annotations and code completion for boto3.client("backupsearch").generate_presigned_url
method.
boto3 documentation
# generate_presigned_url method definition
def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
close#
Type annotations and code completion for boto3.client("backupsearch").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
get_search_job#
This operation retrieves metadata of a search job, including its progress.
Type annotations and code completion for boto3.client("backupsearch").get_search_job
method.
boto3 documentation
# get_search_job method definition
def get_search_job(
self,
*,
SearchJobIdentifier: str,
) -> GetSearchJobOutputTypeDef: # (1)
...
# get_search_job method usage example with argument unpacking
kwargs: GetSearchJobInputRequestTypeDef = { # (1)
"SearchJobIdentifier": ...,
}
parent.get_search_job(**kwargs)
get_search_result_export_job#
This operation retrieves the metadata of an export job.
Type annotations and code completion for boto3.client("backupsearch").get_search_result_export_job
method.
boto3 documentation
# get_search_result_export_job method definition
def get_search_result_export_job(
self,
*,
ExportJobIdentifier: str,
) -> GetSearchResultExportJobOutputTypeDef: # (1)
...
# get_search_result_export_job method usage example with argument unpacking
kwargs: GetSearchResultExportJobInputRequestTypeDef = { # (1)
"ExportJobIdentifier": ...,
}
parent.get_search_result_export_job(**kwargs)
list_search_job_backups#
This operation returns a list of all backups (recovery points) in a paginated format that were included in the search job.
Type annotations and code completion for boto3.client("backupsearch").list_search_job_backups
method.
boto3 documentation
# list_search_job_backups method definition
def list_search_job_backups(
self,
*,
SearchJobIdentifier: str,
NextToken: str = ...,
MaxResults: int = ...,
) -> ListSearchJobBackupsOutputTypeDef: # (1)
...
# list_search_job_backups method usage example with argument unpacking
kwargs: ListSearchJobBackupsInputRequestTypeDef = { # (1)
"SearchJobIdentifier": ...,
}
parent.list_search_job_backups(**kwargs)
list_search_job_results#
This operation returns a list of a specified search job.
Type annotations and code completion for boto3.client("backupsearch").list_search_job_results
method.
boto3 documentation
# list_search_job_results method definition
def list_search_job_results(
self,
*,
SearchJobIdentifier: str,
NextToken: str = ...,
MaxResults: int = ...,
) -> ListSearchJobResultsOutputTypeDef: # (1)
...
# list_search_job_results method usage example with argument unpacking
kwargs: ListSearchJobResultsInputRequestTypeDef = { # (1)
"SearchJobIdentifier": ...,
}
parent.list_search_job_results(**kwargs)
list_search_jobs#
This operation returns a list of search jobs belonging to an account.
Type annotations and code completion for boto3.client("backupsearch").list_search_jobs
method.
boto3 documentation
# list_search_jobs method definition
def list_search_jobs(
self,
*,
ByStatus: SearchJobStateType = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> ListSearchJobsOutputTypeDef: # (2)
...
# list_search_jobs method usage example with argument unpacking
kwargs: ListSearchJobsInputRequestTypeDef = { # (1)
"ByStatus": ...,
}
parent.list_search_jobs(**kwargs)
list_search_result_export_jobs#
This operation exports search results of a search job to a specified destination S3 bucket.
Type annotations and code completion for boto3.client("backupsearch").list_search_result_export_jobs
method.
boto3 documentation
# list_search_result_export_jobs method definition
def list_search_result_export_jobs(
self,
*,
Status: ExportJobStatusType = ..., # (1)
SearchJobIdentifier: str = ...,
NextToken: str = ...,
MaxResults: int = ...,
) -> ListSearchResultExportJobsOutputTypeDef: # (2)
...
# list_search_result_export_jobs method usage example with argument unpacking
kwargs: ListSearchResultExportJobsInputRequestTypeDef = { # (1)
"Status": ...,
}
parent.list_search_result_export_jobs(**kwargs)
list_tags_for_resource#
This operation returns the tags for a resource type.
Type annotations and code completion for boto3.client("backupsearch").list_tags_for_resource
method.
boto3 documentation
# list_tags_for_resource method definition
def list_tags_for_resource(
self,
*,
ResourceArn: str,
) -> ListTagsForResourceResponseTypeDef: # (1)
...
# list_tags_for_resource method usage example with argument unpacking
kwargs: ListTagsForResourceRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
}
parent.list_tags_for_resource(**kwargs)
start_search_job#
This operation creates a search job which returns recovery points filtered by SearchScope and items filtered by ItemFilters.
Type annotations and code completion for boto3.client("backupsearch").start_search_job
method.
boto3 documentation
# start_search_job method definition
def start_search_job(
self,
*,
SearchScope: SearchScopeTypeDef, # (1)
Tags: Mapping[str, str] = ...,
Name: str = ...,
EncryptionKeyArn: str = ...,
ClientToken: str = ...,
ItemFilters: ItemFiltersTypeDef = ..., # (2)
) -> StartSearchJobOutputTypeDef: # (3)
...
# start_search_job method usage example with argument unpacking
kwargs: StartSearchJobInputRequestTypeDef = { # (1)
"SearchScope": ...,
}
parent.start_search_job(**kwargs)
start_search_result_export_job#
This operations starts a job to export the results of search job to a designated S3 bucket.
Type annotations and code completion for boto3.client("backupsearch").start_search_result_export_job
method.
boto3 documentation
# start_search_result_export_job method definition
def start_search_result_export_job(
self,
*,
SearchJobIdentifier: str,
ExportSpecification: ExportSpecificationTypeDef, # (1)
ClientToken: str = ...,
Tags: Mapping[str, str] = ...,
RoleArn: str = ...,
) -> StartSearchResultExportJobOutputTypeDef: # (2)
...
# start_search_result_export_job method usage example with argument unpacking
kwargs: StartSearchResultExportJobInputRequestTypeDef = { # (1)
"SearchJobIdentifier": ...,
"ExportSpecification": ...,
}
parent.start_search_result_export_job(**kwargs)
stop_search_job#
This operations ends a search job.
Type annotations and code completion for boto3.client("backupsearch").stop_search_job
method.
boto3 documentation
# stop_search_job method definition
def stop_search_job(
self,
*,
SearchJobIdentifier: str,
) -> Dict[str, Any]:
...
# stop_search_job method usage example with argument unpacking
kwargs: StopSearchJobInputRequestTypeDef = { # (1)
"SearchJobIdentifier": ...,
}
parent.stop_search_job(**kwargs)
tag_resource#
This operation puts tags on the resource you indicate.
Type annotations and code completion for boto3.client("backupsearch").tag_resource
method.
boto3 documentation
# tag_resource method definition
def tag_resource(
self,
*,
ResourceArn: str,
Tags: Mapping[str, str],
) -> Dict[str, Any]:
...
# tag_resource method usage example with argument unpacking
kwargs: TagResourceRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
"Tags": ...,
}
parent.tag_resource(**kwargs)
untag_resource#
This operation removes tags from the specified resource.
Type annotations and code completion for boto3.client("backupsearch").untag_resource
method.
boto3 documentation
# untag_resource method definition
def untag_resource(
self,
*,
ResourceArn: str,
TagKeys: Sequence[str],
) -> Dict[str, Any]:
...
# untag_resource method usage example with argument unpacking
kwargs: UntagResourceRequestRequestTypeDef = { # (1)
"ResourceArn": ...,
"TagKeys": ...,
}
parent.untag_resource(**kwargs)
get_paginator#
Type annotations and code completion for boto3.client("backupsearch").get_paginator
method with overloads.
client.get_paginator("list_search_job_backups")
-> ListSearchJobBackupsPaginatorclient.get_paginator("list_search_job_results")
-> ListSearchJobResultsPaginatorclient.get_paginator("list_search_jobs")
-> ListSearchJobsPaginatorclient.get_paginator("list_search_result_export_jobs")
-> ListSearchResultExportJobsPaginator