start_search_job
¶
start_search_job(
search_scope: SearchScope,
*,
config_overrides: Optional[BackupSearchClientConfig] = None,
tags: Optional[TagMap] = None,
name: Optional[str] = None,
encryption_key_arn: Optional[EncryptionKeyArn] = None,
client_token: Optional[str] = None,
item_filters: Optional[ItemFilters] = None,
) -> StartSearchJobOutput
This operation creates a search job which returns recovery points filtered by SearchScope and items filtered by ItemFilters.
You can optionally include ClientToken, EncryptionKeyArn, Name, and/or Tags.
Parameters:
-
tags(Optional[TagMap], default:None) –List of tags returned by the operation.
-
name(Optional[str], default:None) –Include alphanumeric characters to create a name for this search job.
-
encryption_key_arn(Optional[EncryptionKeyArn], default:None) –The encryption key for the specified search job.
-
client_token(Optional[str], default:None) –Include this parameter to allow multiple identical calls for idempotency.
A client token is valid for 8 hours after the first request that uses it is completed. After this time, any request with the same token is treated as a new request.
-
search_scope(SearchScope) –This object can contain BackupResourceTypes, BackupResourceArns, BackupResourceCreationTime, BackupResourceTags, and SourceResourceArns to filter the recovery points returned by the search job.
-
item_filters(Optional[ItemFilters], default:None) –Item Filters represent all input item properties specified when the search was created.
Contains either EBSItemFilters or S3ItemFilters
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–An internal server error occurred. Retry your request.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by a service.
-
ConflictException–This exception occurs when a conflict with a previous successful operation is detected. This generally occurs when the previous operation did not have time to propagate to the host serving the current request.
A retry (with appropriate backoff logic) is the recommended response to this exception.
-
ResourceNotFoundException–The resource was not found for this request.
Confirm the resource information, such as the ARN or type is correct and exists, then retry the request.
-
ServiceQuotaExceededException–The request denied due to exceeding the quota limits permitted.
-
UnknownServiceError–The service returned an error code this client does not model.