AWS Backup Search 2018-05-10
- Client: Aws\BackupSearch\BackupSearchClient
- Service ID: backupsearch
- Version: 2018-05-10
This page describes the parameters and results for the operations of the AWS Backup Search (2018-05-10), and shows how to use the Aws\BackupSearch\BackupSearchClient object to call the described operations. This documentation is specific to the 2018-05-10 API version of the service.
Operation Summary
Each of the following operations can be created from a client using
$client->getCommand('CommandName')
, where "CommandName" is the
name of one of the following operations. Note: a command is a value that
encapsulates an operation and the parameters used to create an HTTP request.
You can also create and send a command immediately using the magic methods
available on a client object: $client->commandName(/* parameters */)
.
You can send the command asynchronously (returning a promise) by appending the
word "Async" to the operation name: $client->commandNameAsync(/* parameters */)
.
- GetSearchJob ( array $params = [] )
- This operation retrieves metadata of a search job, including its progress.
- GetSearchResultExportJob ( array $params = [] )
- This operation retrieves the metadata of an export job.
- ListSearchJobBackups ( array $params = [] )
- This operation returns a list of all backups (recovery points) in a paginated format that were included in the search job.
- ListSearchJobResults ( array $params = [] )
- This operation returns a list of a specified search job.
- ListSearchJobs ( array $params = [] )
- This operation returns a list of search jobs belonging to an account.
- ListSearchResultExportJobs ( array $params = [] )
- This operation exports search results of a search job to a specified destination S3 bucket.
- ListTagsForResource ( array $params = [] )
- This operation returns the tags for a resource type.
- StartSearchJob ( array $params = [] )
- This operation creates a search job which returns recovery points filtered by SearchScope and items filtered by ItemFilters.
- StartSearchResultExportJob ( array $params = [] )
- This operations starts a job to export the results of search job to a designated S3 bucket.
- StopSearchJob ( array $params = [] )
- This operations ends a search job.
- TagResource ( array $params = [] )
- This operation puts tags on the resource you indicate.
- UntagResource ( array $params = [] )
- This operation removes tags from the specified resource.
Paginators
Paginators handle automatically iterating over paginated API results. Paginators are associated with specific API operations, and they accept the parameters that the corresponding API operation accepts. You can get a paginator from a client class using getPaginator($paginatorName, $operationParameters). This client supports the following paginators:
Operations
GetSearchJob
$result = $client->getSearchJob
([/* ... */]); $promise = $client->getSearchJobAsync
([/* ... */]);
This operation retrieves metadata of a search job, including its progress.
Parameter Syntax
$result = $client->getSearchJob([ 'SearchJobIdentifier' => '<string>', // REQUIRED ]);
Parameter Details
Members
- SearchJobIdentifier
-
- Required: Yes
- Type: string
Required unique string that specifies the search job.
Result Syntax
[ 'CompletionTime' => <DateTime>, 'CreationTime' => <DateTime>, 'CurrentSearchProgress' => [ 'ItemsMatchedCount' => <integer>, 'ItemsScannedCount' => <integer>, 'RecoveryPointsScannedCount' => <integer>, ], 'EncryptionKeyArn' => '<string>', 'ItemFilters' => [ 'EBSItemFilters' => [ [ 'CreationTimes' => [ [ 'Operator' => 'EQUALS_TO|NOT_EQUALS_TO|LESS_THAN_EQUAL_TO|GREATER_THAN_EQUAL_TO', 'Value' => <DateTime>, ], // ... ], 'FilePaths' => [ [ 'Operator' => 'EQUALS_TO|NOT_EQUALS_TO|CONTAINS|DOES_NOT_CONTAIN|BEGINS_WITH|ENDS_WITH|DOES_NOT_BEGIN_WITH|DOES_NOT_END_WITH', 'Value' => '<string>', ], // ... ], 'LastModificationTimes' => [ [ 'Operator' => 'EQUALS_TO|NOT_EQUALS_TO|LESS_THAN_EQUAL_TO|GREATER_THAN_EQUAL_TO', 'Value' => <DateTime>, ], // ... ], 'Sizes' => [ [ 'Operator' => 'EQUALS_TO|NOT_EQUALS_TO|LESS_THAN_EQUAL_TO|GREATER_THAN_EQUAL_TO', 'Value' => <integer>, ], // ... ], ], // ... ], 'S3ItemFilters' => [ [ 'CreationTimes' => [ [ 'Operator' => 'EQUALS_TO|NOT_EQUALS_TO|LESS_THAN_EQUAL_TO|GREATER_THAN_EQUAL_TO', 'Value' => <DateTime>, ], // ... ], 'ETags' => [ [ 'Operator' => 'EQUALS_TO|NOT_EQUALS_TO|CONTAINS|DOES_NOT_CONTAIN|BEGINS_WITH|ENDS_WITH|DOES_NOT_BEGIN_WITH|DOES_NOT_END_WITH', 'Value' => '<string>', ], // ... ], 'ObjectKeys' => [ [ 'Operator' => 'EQUALS_TO|NOT_EQUALS_TO|CONTAINS|DOES_NOT_CONTAIN|BEGINS_WITH|ENDS_WITH|DOES_NOT_BEGIN_WITH|DOES_NOT_END_WITH', 'Value' => '<string>', ], // ... ], 'Sizes' => [ [ 'Operator' => 'EQUALS_TO|NOT_EQUALS_TO|LESS_THAN_EQUAL_TO|GREATER_THAN_EQUAL_TO', 'Value' => <integer>, ], // ... ], 'VersionIds' => [ [ 'Operator' => 'EQUALS_TO|NOT_EQUALS_TO|CONTAINS|DOES_NOT_CONTAIN|BEGINS_WITH|ENDS_WITH|DOES_NOT_BEGIN_WITH|DOES_NOT_END_WITH', 'Value' => '<string>', ], // ... ], ], // ... ], ], 'Name' => '<string>', 'SearchJobArn' => '<string>', 'SearchJobIdentifier' => '<string>', 'SearchScope' => [ 'BackupResourceArns' => ['<string>', ...], 'BackupResourceCreationTime' => [ 'CreatedAfter' => <DateTime>, 'CreatedBefore' => <DateTime>, ], 'BackupResourceTags' => ['<string>', ...], 'BackupResourceTypes' => ['<string>', ...], 'SourceResourceArns' => ['<string>', ...], ], 'SearchScopeSummary' => [ 'TotalItemsToScanCount' => <integer>, 'TotalRecoveryPointsToScanCount' => <integer>, ], 'Status' => 'RUNNING|COMPLETED|STOPPING|STOPPED|FAILED', 'StatusMessage' => '<string>', ]
Result Details
Members
- CompletionTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time that a search job completed, in Unix format and Coordinated Universal Time (UTC). The value of
CompletionTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. - CreationTime
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time that a search job was created, in Unix format and Coordinated Universal Time (UTC). The value of
CompletionTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. - CurrentSearchProgress
-
- Type: CurrentSearchProgress structure
Returns numbers representing BackupsScannedCount, ItemsScanned, and ItemsMatched.
- EncryptionKeyArn
-
- Type: string
The encryption key for the specified search job.
Example:
arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
. - ItemFilters
-
- Required: Yes
- Type: ItemFilters structure
Item Filters represent all input item properties specified when the search was created.
- Name
-
- Type: string
Returned name of the specified search job.
- SearchJobArn
-
- Required: Yes
- Type: string
The unique string that identifies the Amazon Resource Name (ARN) of the specified search job.
- SearchJobIdentifier
-
- Required: Yes
- Type: string
The unique string that identifies the specified search job.
- SearchScope
-
- Required: Yes
- Type: SearchScope structure
The search scope is all backup properties input into a search.
- SearchScopeSummary
-
- Type: SearchScopeSummary structure
Returned summary of the specified search job scope, including:
-
TotalBackupsToScanCount, the number of recovery points returned by the search.
-
TotalItemsToScanCount, the number of items returned by the search.
- Status
-
- Required: Yes
- Type: string
The current status of the specified search job.
A search job may have one of the following statuses:
RUNNING
;COMPLETED
;STOPPED
;FAILED
;TIMED_OUT
; orEXPIRED
. - StatusMessage
-
- Type: string
A status message will be returned for either a earch job with a status of
ERRORED
or a status ofCOMPLETED
jobs with issues.For example, a message may say that a search contained recovery points unable to be scanned because of a permissions issue.
Errors
- 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.
- ThrottlingException:
The request was denied due to request throttling.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
The input fails to satisfy the constraints specified by a service.
- InternalServerException:
An internal server error occurred. Retry your request.
GetSearchResultExportJob
$result = $client->getSearchResultExportJob
([/* ... */]); $promise = $client->getSearchResultExportJobAsync
([/* ... */]);
This operation retrieves the metadata of an export job.
An export job is an operation that transmits the results of a search job to a specified S3 bucket in a .csv file.
An export job allows you to retain results of a search beyond the search job's scheduled retention of 7 days.
Parameter Syntax
$result = $client->getSearchResultExportJob([ 'ExportJobIdentifier' => '<string>', // REQUIRED ]);
Parameter Details
Members
- ExportJobIdentifier
-
- Required: Yes
- Type: string
This is the unique string that identifies a specific export job.
Required for this operation.
Result Syntax
[ 'CompletionTime' => <DateTime>, 'CreationTime' => <DateTime>, 'ExportJobArn' => '<string>', 'ExportJobIdentifier' => '<string>', 'ExportSpecification' => [ 's3ExportSpecification' => [ 'DestinationBucket' => '<string>', 'DestinationPrefix' => '<string>', ], ], 'SearchJobArn' => '<string>', 'Status' => 'RUNNING|FAILED|COMPLETED', 'StatusMessage' => '<string>', ]
Result Details
Members
- CompletionTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time that an export job completed, in Unix format and Coordinated Universal Time (UTC). The value of
CreationTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. - CreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time that an export job was created, in Unix format and Coordinated Universal Time (UTC). The value of
CreationTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. - ExportJobArn
-
- Type: string
The unique Amazon Resource Name (ARN) that uniquely identifies the export job.
- ExportJobIdentifier
-
- Required: Yes
- Type: string
This is the unique string that identifies the specified export job.
- ExportSpecification
-
- Type: ExportSpecification structure
The export specification consists of the destination S3 bucket to which the search results were exported, along with the destination prefix.
- SearchJobArn
-
- Type: string
The unique string that identifies the Amazon Resource Name (ARN) of the specified search job.
- Status
-
- Type: string
This is the current status of the export job.
- StatusMessage
-
- Type: string
A status message is a string that is returned for search job with a status of
FAILED
, along with steps to remedy and retry the operation.
Errors
- 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.
- ThrottlingException:
The request was denied due to request throttling.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
The input fails to satisfy the constraints specified by a service.
- InternalServerException:
An internal server error occurred. Retry your request.
ListSearchJobBackups
$result = $client->listSearchJobBackups
([/* ... */]); $promise = $client->listSearchJobBackupsAsync
([/* ... */]);
This operation returns a list of all backups (recovery points) in a paginated format that were included in the search job.
If a search does not display an expected backup in the results, you can call this operation to display each backup included in the search. Any backups that were not included because they have a FAILED
status from a permissions issue will be displayed, along with a status message.
Only recovery points with a backup index that has a status of ACTIVE
will be included in search results. If the index has any other status, its status will be displayed along with a status message.
Parameter Syntax
$result = $client->listSearchJobBackups([ 'MaxResults' => <integer>, 'NextToken' => '<string>', 'SearchJobIdentifier' => '<string>', // REQUIRED ]);
Parameter Details
Members
- MaxResults
-
- Type: int
The maximum number of resource list items to be returned.
- NextToken
-
- Type: string
The next item following a partial list of returned backups included in a search job.
For example, if a request is made to return
MaxResults
number of backups,NextToken
allows you to return more items in your list starting at the location pointed to by the next token. - SearchJobIdentifier
-
- Required: Yes
- Type: string
The unique string that specifies the search job.
Result Syntax
[ 'NextToken' => '<string>', 'Results' => [ [ 'BackupCreationTime' => <DateTime>, 'BackupResourceArn' => '<string>', 'IndexCreationTime' => <DateTime>, 'ResourceType' => 'S3|EBS', 'SourceResourceArn' => '<string>', 'Status' => 'RUNNING|COMPLETED|STOPPING|STOPPED|FAILED', 'StatusMessage' => '<string>', ], // ... ], ]
Result Details
Members
- NextToken
-
- Type: string
The next item following a partial list of returned backups included in a search job.
For example, if a request is made to return
MaxResults
number of backups,NextToken
allows you to return more items in your list starting at the location pointed to by the next token. - Results
-
- Required: Yes
- Type: Array of SearchJobBackupsResult structures
The recovery points returned the results of a search job
Errors
- 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.
- ThrottlingException:
The request was denied due to request throttling.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
The input fails to satisfy the constraints specified by a service.
- InternalServerException:
An internal server error occurred. Retry your request.
ListSearchJobResults
$result = $client->listSearchJobResults
([/* ... */]); $promise = $client->listSearchJobResultsAsync
([/* ... */]);
This operation returns a list of a specified search job.
Parameter Syntax
$result = $client->listSearchJobResults([ 'MaxResults' => <integer>, 'NextToken' => '<string>', 'SearchJobIdentifier' => '<string>', // REQUIRED ]);
Parameter Details
Members
- MaxResults
-
- Type: int
The maximum number of resource list items to be returned.
- NextToken
-
- Type: string
The next item following a partial list of returned search job results.
For example, if a request is made to return
MaxResults
number of search job results,NextToken
allows you to return more items in your list starting at the location pointed to by the next token. - SearchJobIdentifier
-
- Required: Yes
- Type: string
The unique string that specifies the search job.
Result Syntax
[ 'NextToken' => '<string>', 'Results' => [ [ 'EBSResultItem' => [ 'BackupResourceArn' => '<string>', 'BackupVaultName' => '<string>', 'CreationTime' => <DateTime>, 'FilePath' => '<string>', 'FileSize' => <integer>, 'FileSystemIdentifier' => '<string>', 'LastModifiedTime' => <DateTime>, 'SourceResourceArn' => '<string>', ], 'S3ResultItem' => [ 'BackupResourceArn' => '<string>', 'BackupVaultName' => '<string>', 'CreationTime' => <DateTime>, 'ETag' => '<string>', 'ObjectKey' => '<string>', 'ObjectSize' => <integer>, 'SourceResourceArn' => '<string>', 'VersionId' => '<string>', ], ], // ... ], ]
Result Details
Members
- NextToken
-
- Type: string
The next item following a partial list of search job results.
For example, if a request is made to return
MaxResults
number of backups,NextToken
allows you to return more items in your list starting at the location pointed to by the next token. - Results
-
- Required: Yes
- Type: Array of ResultItem structures
The results consist of either EBSResultItem or S3ResultItem.
Errors
- 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.
- ThrottlingException:
The request was denied due to request throttling.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
The input fails to satisfy the constraints specified by a service.
- InternalServerException:
An internal server error occurred. Retry your request.
ListSearchJobs
$result = $client->listSearchJobs
([/* ... */]); $promise = $client->listSearchJobsAsync
([/* ... */]);
This operation returns a list of search jobs belonging to an account.
Parameter Syntax
$result = $client->listSearchJobs([ 'ByStatus' => 'RUNNING|COMPLETED|STOPPING|STOPPED|FAILED', 'MaxResults' => <integer>, 'NextToken' => '<string>', ]);
Parameter Details
Members
- ByStatus
-
- Type: string
Include this parameter to filter list by search job status.
- MaxResults
-
- Type: int
The maximum number of resource list items to be returned.
- NextToken
-
- Type: string
The next item following a partial list of returned search jobs.
For example, if a request is made to return
MaxResults
number of backups,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.
Result Syntax
[ 'NextToken' => '<string>', 'SearchJobs' => [ [ 'CompletionTime' => <DateTime>, 'CreationTime' => <DateTime>, 'Name' => '<string>', 'SearchJobArn' => '<string>', 'SearchJobIdentifier' => '<string>', 'SearchScopeSummary' => [ 'TotalItemsToScanCount' => <integer>, 'TotalRecoveryPointsToScanCount' => <integer>, ], 'Status' => 'RUNNING|COMPLETED|STOPPING|STOPPED|FAILED', 'StatusMessage' => '<string>', ], // ... ], ]
Result Details
Members
- NextToken
-
- Type: string
The next item following a partial list of returned backups included in a search job.
For example, if a request is made to return
MaxResults
number of backups,NextToken
allows you to return more items in your list starting at the location pointed to by the next token. - SearchJobs
-
- Required: Yes
- Type: Array of SearchJobSummary structures
The search jobs among the list, with details of the returned search jobs.
Errors
- ThrottlingException:
The request was denied due to request throttling.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
The input fails to satisfy the constraints specified by a service.
- InternalServerException:
An internal server error occurred. Retry your request.
ListSearchResultExportJobs
$result = $client->listSearchResultExportJobs
([/* ... */]); $promise = $client->listSearchResultExportJobsAsync
([/* ... */]);
This operation exports search results of a search job to a specified destination S3 bucket.
Parameter Syntax
$result = $client->listSearchResultExportJobs([ 'MaxResults' => <integer>, 'NextToken' => '<string>', 'SearchJobIdentifier' => '<string>', 'Status' => 'RUNNING|FAILED|COMPLETED', ]);
Parameter Details
Members
- MaxResults
-
- Type: int
The maximum number of resource list items to be returned.
- NextToken
-
- Type: string
The next item following a partial list of returned backups included in a search job.
For example, if a request is made to return
MaxResults
number of backups,NextToken
allows you to return more items in your list starting at the location pointed to by the next token. - SearchJobIdentifier
-
- Type: string
The unique string that specifies the search job.
- Status
-
- Type: string
The search jobs to be included in the export job can be filtered by including this parameter.
Result Syntax
[ 'ExportJobs' => [ [ 'CompletionTime' => <DateTime>, 'CreationTime' => <DateTime>, 'ExportJobArn' => '<string>', 'ExportJobIdentifier' => '<string>', 'SearchJobArn' => '<string>', 'Status' => 'RUNNING|FAILED|COMPLETED', 'StatusMessage' => '<string>', ], // ... ], 'NextToken' => '<string>', ]
Result Details
Members
- ExportJobs
-
- Required: Yes
- Type: Array of ExportJobSummary structures
The operation returns the included export jobs.
- NextToken
-
- Type: string
The next item following a partial list of returned backups included in a search job.
For example, if a request is made to return
MaxResults
number of backups,NextToken
allows you to return more items in your list starting at the location pointed to by the next token.
Errors
- 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.
- ThrottlingException:
The request was denied due to request throttling.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
The input fails to satisfy the constraints specified by a service.
- InternalServerException:
An internal server error occurred. Retry your request.
- ServiceQuotaExceededException:
The request denied due to exceeding the quota limits permitted.
ListTagsForResource
$result = $client->listTagsForResource
([/* ... */]); $promise = $client->listTagsForResourceAsync
([/* ... */]);
This operation returns the tags for a resource type.
Parameter Syntax
$result = $client->listTagsForResource([ 'ResourceArn' => '<string>', // REQUIRED ]);
Parameter Details
Members
- ResourceArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) that uniquely identifies the resource.>
Result Syntax
[ 'Tags' => ['<string>', ...], ]
Result Details
Members
- Tags
-
- Type: Associative array of custom strings keys (String) to strings
List of tags returned by the operation.
Errors
- 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.
- ThrottlingException:
The request was denied due to request throttling.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
The input fails to satisfy the constraints specified by a service.
- InternalServerException:
An internal server error occurred. Retry your request.
StartSearchJob
$result = $client->startSearchJob
([/* ... */]); $promise = $client->startSearchJobAsync
([/* ... */]);
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.
Parameter Syntax
$result = $client->startSearchJob([ 'ClientToken' => '<string>', 'EncryptionKeyArn' => '<string>', 'ItemFilters' => [ 'EBSItemFilters' => [ [ 'CreationTimes' => [ [ 'Operator' => 'EQUALS_TO|NOT_EQUALS_TO|LESS_THAN_EQUAL_TO|GREATER_THAN_EQUAL_TO', 'Value' => <integer || string || DateTime>, // REQUIRED ], // ... ], 'FilePaths' => [ [ 'Operator' => 'EQUALS_TO|NOT_EQUALS_TO|CONTAINS|DOES_NOT_CONTAIN|BEGINS_WITH|ENDS_WITH|DOES_NOT_BEGIN_WITH|DOES_NOT_END_WITH', 'Value' => '<string>', // REQUIRED ], // ... ], 'LastModificationTimes' => [ [ 'Operator' => 'EQUALS_TO|NOT_EQUALS_TO|LESS_THAN_EQUAL_TO|GREATER_THAN_EQUAL_TO', 'Value' => <integer || string || DateTime>, // REQUIRED ], // ... ], 'Sizes' => [ [ 'Operator' => 'EQUALS_TO|NOT_EQUALS_TO|LESS_THAN_EQUAL_TO|GREATER_THAN_EQUAL_TO', 'Value' => <integer>, // REQUIRED ], // ... ], ], // ... ], 'S3ItemFilters' => [ [ 'CreationTimes' => [ [ 'Operator' => 'EQUALS_TO|NOT_EQUALS_TO|LESS_THAN_EQUAL_TO|GREATER_THAN_EQUAL_TO', 'Value' => <integer || string || DateTime>, // REQUIRED ], // ... ], 'ETags' => [ [ 'Operator' => 'EQUALS_TO|NOT_EQUALS_TO|CONTAINS|DOES_NOT_CONTAIN|BEGINS_WITH|ENDS_WITH|DOES_NOT_BEGIN_WITH|DOES_NOT_END_WITH', 'Value' => '<string>', // REQUIRED ], // ... ], 'ObjectKeys' => [ [ 'Operator' => 'EQUALS_TO|NOT_EQUALS_TO|CONTAINS|DOES_NOT_CONTAIN|BEGINS_WITH|ENDS_WITH|DOES_NOT_BEGIN_WITH|DOES_NOT_END_WITH', 'Value' => '<string>', // REQUIRED ], // ... ], 'Sizes' => [ [ 'Operator' => 'EQUALS_TO|NOT_EQUALS_TO|LESS_THAN_EQUAL_TO|GREATER_THAN_EQUAL_TO', 'Value' => <integer>, // REQUIRED ], // ... ], 'VersionIds' => [ [ 'Operator' => 'EQUALS_TO|NOT_EQUALS_TO|CONTAINS|DOES_NOT_CONTAIN|BEGINS_WITH|ENDS_WITH|DOES_NOT_BEGIN_WITH|DOES_NOT_END_WITH', 'Value' => '<string>', // REQUIRED ], // ... ], ], // ... ], ], 'Name' => '<string>', 'SearchScope' => [ // REQUIRED 'BackupResourceArns' => ['<string>', ...], 'BackupResourceCreationTime' => [ 'CreatedAfter' => <integer || string || DateTime>, 'CreatedBefore' => <integer || string || DateTime>, ], 'BackupResourceTags' => ['<string>', ...], 'BackupResourceTypes' => ['<string>', ...], // REQUIRED 'SourceResourceArns' => ['<string>', ...], ], 'Tags' => ['<string>', ...], ]);
Parameter Details
Members
- ClientToken
-
- Type: string
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.
- EncryptionKeyArn
-
- Type: string
The encryption key for the specified search job.
- ItemFilters
-
- Type: ItemFilters structure
Item Filters represent all input item properties specified when the search was created.
Contains either EBSItemFilters or S3ItemFilters
- Name
-
- Type: string
Include alphanumeric characters to create a name for this search job.
- SearchScope
-
- Required: Yes
- Type: SearchScope structure
This object can contain BackupResourceTypes, BackupResourceArns, BackupResourceCreationTime, BackupResourceTags, and SourceResourceArns to filter the recovery points returned by the search job.
- Tags
-
- Type: Associative array of custom strings keys (String) to strings
List of tags returned by the operation.
Result Syntax
[ 'CreationTime' => <DateTime>, 'SearchJobArn' => '<string>', 'SearchJobIdentifier' => '<string>', ]
Result Details
Members
- CreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The date and time that a job was created, in Unix format and Coordinated Universal Time (UTC). The value of
CompletionTime
is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM. - SearchJobArn
-
- Type: string
The unique string that identifies the Amazon Resource Name (ARN) of the specified search job.
- SearchJobIdentifier
-
- Type: string
The unique string that specifies the search job.
Errors
- ThrottlingException:
The request was denied due to request throttling.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
The input fails to satisfy the constraints specified by a service.
- InternalServerException:
An internal server error occurred. Retry your request.
- ServiceQuotaExceededException:
The request denied due to exceeding the quota limits permitted.
- 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.
StartSearchResultExportJob
$result = $client->startSearchResultExportJob
([/* ... */]); $promise = $client->startSearchResultExportJobAsync
([/* ... */]);
This operations starts a job to export the results of search job to a designated S3 bucket.
Parameter Syntax
$result = $client->startSearchResultExportJob([ 'ClientToken' => '<string>', 'ExportSpecification' => [ // REQUIRED 's3ExportSpecification' => [ 'DestinationBucket' => '<string>', // REQUIRED 'DestinationPrefix' => '<string>', ], ], 'RoleArn' => '<string>', 'SearchJobIdentifier' => '<string>', // REQUIRED 'Tags' => ['<string>', ...], ]);
Parameter Details
Members
- ClientToken
-
- Type: string
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.
- ExportSpecification
-
- Required: Yes
- Type: ExportSpecification structure
This specification contains a required string of the destination bucket; optionally, you can include the destination prefix.
- RoleArn
-
- Type: string
This parameter specifies the role ARN used to start the search results export jobs.
- SearchJobIdentifier
-
- Required: Yes
- Type: string
The unique string that specifies the search job.
- Tags
-
- Type: Associative array of custom strings keys (String) to strings
Optional tags to include. A tag is a key-value pair you can use to manage, filter, and search for your resources. Allowed characters include UTF-8 letters, numbers, spaces, and the following characters: + - = . _ : /.
Result Syntax
[ 'ExportJobArn' => '<string>', 'ExportJobIdentifier' => '<string>', ]
Result Details
Members
- ExportJobArn
-
- Type: string
This is the unique ARN (Amazon Resource Name) that belongs to the new export job.
- ExportJobIdentifier
-
- Required: Yes
- Type: string
This is the unique identifier that specifies the new export job.
Errors
- 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.
- ThrottlingException:
The request was denied due to request throttling.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
The input fails to satisfy the constraints specified by a service.
- InternalServerException:
An internal server error occurred. Retry your request.
- ServiceQuotaExceededException:
The request denied due to exceeding the quota limits permitted.
- 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.
StopSearchJob
$result = $client->stopSearchJob
([/* ... */]); $promise = $client->stopSearchJobAsync
([/* ... */]);
This operations ends a search job.
Only a search job with a status of RUNNING
can be stopped.
Parameter Syntax
$result = $client->stopSearchJob([ 'SearchJobIdentifier' => '<string>', // REQUIRED ]);
Parameter Details
Members
- SearchJobIdentifier
-
- Required: Yes
- Type: string
The unique string that specifies the search job.
Result Syntax
[]
Result Details
Errors
- 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.
- ThrottlingException:
The request was denied due to request throttling.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
The input fails to satisfy the constraints specified by a service.
- InternalServerException:
An internal server error occurred. Retry your request.
- 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.
TagResource
$result = $client->tagResource
([/* ... */]); $promise = $client->tagResourceAsync
([/* ... */]);
This operation puts tags on the resource you indicate.
Parameter Syntax
$result = $client->tagResource([ 'ResourceArn' => '<string>', // REQUIRED 'Tags' => ['<string>', ...], // REQUIRED ]);
Parameter Details
Members
- ResourceArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) that uniquely identifies the resource.
This is the resource that will have the indicated tags.
- Tags
-
- Required: Yes
- Type: Associative array of custom strings keys (String) to strings
Required tags to include. A tag is a key-value pair you can use to manage, filter, and search for your resources. Allowed characters include UTF-8 letters, numbers, spaces, and the following characters: + - = . _ : /.
Result Syntax
[]
Result Details
Errors
- 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.
- ThrottlingException:
The request was denied due to request throttling.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
The input fails to satisfy the constraints specified by a service.
- InternalServerException:
An internal server error occurred. Retry your request.
UntagResource
$result = $client->untagResource
([/* ... */]); $promise = $client->untagResourceAsync
([/* ... */]);
This operation removes tags from the specified resource.
Parameter Syntax
$result = $client->untagResource([ 'ResourceArn' => '<string>', // REQUIRED 'TagKeys' => ['<string>', ...], // REQUIRED ]);
Parameter Details
Members
- ResourceArn
-
- Required: Yes
- Type: string
The Amazon Resource Name (ARN) that uniquely identifies the resource where you want to remove tags.
- TagKeys
-
- Required: Yes
- Type: Array of strings
This required parameter contains the tag keys you want to remove from the source.
Result Syntax
[]
Result Details
Errors
- 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.
- ThrottlingException:
The request was denied due to request throttling.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ValidationException:
The input fails to satisfy the constraints specified by a service.
- InternalServerException:
An internal server error occurred. Retry your request.
Shapes
AccessDeniedException
Description
You do not have sufficient access to perform this action.
Members
- message
-
- Required: Yes
- Type: string
User does not have sufficient access to perform this action.
BackupCreationTimeFilter
Description
This filters by recovery points within the CreatedAfter and CreatedBefore timestamps.
Members
- CreatedAfter
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
This timestamp includes recovery points only created after the specified time.
- CreatedBefore
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
This timestamp includes recovery points only created before the specified time.
ConflictException
Description
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.
Members
- message
-
- Required: Yes
- Type: string
Updating or deleting a resource can cause an inconsistent state.
- resourceId
-
- Required: Yes
- Type: string
Identifier of the resource affected.
- resourceType
-
- Required: Yes
- Type: string
Type of the resource affected.
CurrentSearchProgress
Description
This contains information results retrieved from a search job that may not have completed.
Members
- ItemsMatchedCount
-
- Type: long (int|float)
This number is the sum of all items that match the item filters in a search job in progress.
- ItemsScannedCount
-
- Type: long (int|float)
This number is the sum of all items that have been scanned so far during a search job.
- RecoveryPointsScannedCount
-
- Type: int
This number is the sum of all backups that have been scanned so far during a search job.
EBSItemFilter
Description
This contains arrays of objects, which may include CreationTimes time condition objects, FilePaths string objects, LastModificationTimes time condition objects,
Members
- CreationTimes
-
- Type: Array of TimeCondition structures
You can include 1 to 10 values.
If one is included, the results will return only items that match.
If more than one is included, the results will return all items that match any of the included values.
- FilePaths
-
- Type: Array of StringCondition structures
You can include 1 to 10 values.
If one file path is included, the results will return only items that match the file path.
If more than one file path is included, the results will return all items that match any of the file paths.
- LastModificationTimes
-
- Type: Array of TimeCondition structures
You can include 1 to 10 values.
If one is included, the results will return only items that match.
If more than one is included, the results will return all items that match any of the included values.
- Sizes
-
- Type: Array of LongCondition structures
You can include 1 to 10 values.
If one is included, the results will return only items that match.
If more than one is included, the results will return all items that match any of the included values.
EBSResultItem
Description
These are the items returned in the results of a search of Amazon EBS backup metadata.
Members
- BackupResourceArn
-
- Type: string
These are one or more items in the results that match values for the Amazon Resource Name (ARN) of recovery points returned in a search of Amazon EBS backup metadata.
- BackupVaultName
-
- Type: string
The name of the backup vault.
- CreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
These are one or more items in the results that match values for creation times returned in a search of Amazon EBS backup metadata.
- FilePath
-
- Type: string
These are one or more items in the results that match values for file paths returned in a search of Amazon EBS backup metadata.
- FileSize
-
- Type: long (int|float)
These are one or more items in the results that match values for file sizes returned in a search of Amazon EBS backup metadata.
- FileSystemIdentifier
-
- Type: string
These are one or more items in the results that match values for file systems returned in a search of Amazon EBS backup metadata.
- LastModifiedTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
These are one or more items in the results that match values for Last Modified Time returned in a search of Amazon EBS backup metadata.
- SourceResourceArn
-
- Type: string
These are one or more items in the results that match values for the Amazon Resource Name (ARN) of source resources returned in a search of Amazon EBS backup metadata.
ExportJobSummary
Description
This is the summary of an export job.
Members
- CompletionTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
This is a timestamp of the time the export job compeleted.
- CreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
This is a timestamp of the time the export job was created.
- ExportJobArn
-
- Type: string
This is the unique ARN (Amazon Resource Name) that belongs to the new export job.
- ExportJobIdentifier
-
- Required: Yes
- Type: string
This is the unique string that identifies a specific export job.
- SearchJobArn
-
- Type: string
The unique string that identifies the Amazon Resource Name (ARN) of the specified search job.
- Status
-
- Type: string
The status of the export job is one of the following:
CREATED
;RUNNING
;FAILED
; orCOMPLETED
. - StatusMessage
-
- Type: string
A status message is a string that is returned for an export job.
A status message is included for any status other than
COMPLETED
without issues.
ExportSpecification
Description
This contains the export specification object.
Members
- s3ExportSpecification
-
- Type: S3ExportSpecification structure
This specifies the destination Amazon S3 bucket for the export job. And, if included, it also specifies the destination prefix.
InternalServerException
Description
An internal server error occurred. Retry your request.
Members
- message
-
- Required: Yes
- Type: string
Unexpected error during processing of request.
- retryAfterSeconds
-
- Type: int
Retry the call after number of seconds.
ItemFilters
Description
Item Filters represent all input item properties specified when the search was created.
Contains either EBSItemFilters or S3ItemFilters
Members
- EBSItemFilters
-
- Type: Array of EBSItemFilter structures
This array can contain CreationTimes, FilePaths, LastModificationTimes, or Sizes objects.
- S3ItemFilters
-
- Type: Array of S3ItemFilter structures
This array can contain CreationTimes, ETags, ObjectKeys, Sizes, or VersionIds objects.
LongCondition
Description
The long condition contains a Value
and can optionally contain an Operator
.
Members
- Operator
-
- Type: string
A string that defines what values will be returned.
If this is included, avoid combinations of operators that will return all possible values. For example, including both
EQUALS_TO
andNOT_EQUALS_TO
with a value of4
will return all values. - Value
-
- Required: Yes
- Type: long (int|float)
The value of an item included in one of the search item filters.
ResourceNotFoundException
Description
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.
Members
- message
-
- Required: Yes
- Type: string
Request references a resource which does not exist.
- resourceId
-
- Required: Yes
- Type: string
Hypothetical identifier of the resource affected.
- resourceType
-
- Required: Yes
- Type: string
Hypothetical type of the resource affected.
ResultItem
Description
This is an object representing the item returned in the results of a search for a specific resource type.
Members
- EBSResultItem
-
- Type: EBSResultItem structure
These are items returned in the search results of an Amazon EBS search.
- S3ResultItem
-
- Type: S3ResultItem structure
These are items returned in the search results of an Amazon S3 search.
S3ExportSpecification
Description
This specification contains a required string of the destination bucket; optionally, you can include the destination prefix.
Members
- DestinationBucket
-
- Required: Yes
- Type: string
This specifies the destination Amazon S3 bucket for the export job.
- DestinationPrefix
-
- Type: string
This specifies the prefix for the destination Amazon S3 bucket for the export job.
S3ItemFilter
Description
This contains arrays of objects, which may include ObjectKeys, Sizes, CreationTimes, VersionIds, and/or Etags.
Members
- CreationTimes
-
- Type: Array of TimeCondition structures
You can include 1 to 10 values.
If one value is included, the results will return only items that match the value.
If more than one value is included, the results will return all items that match any of the values.
- ETags
-
- Type: Array of StringCondition structures
You can include 1 to 10 values.
If one value is included, the results will return only items that match the value.
If more than one value is included, the results will return all items that match any of the values.
- ObjectKeys
-
- Type: Array of StringCondition structures
You can include 1 to 10 values.
If one value is included, the results will return only items that match the value.
If more than one value is included, the results will return all items that match any of the values.
- Sizes
-
- Type: Array of LongCondition structures
You can include 1 to 10 values.
If one value is included, the results will return only items that match the value.
If more than one value is included, the results will return all items that match any of the values.
- VersionIds
-
- Type: Array of StringCondition structures
You can include 1 to 10 values.
If one value is included, the results will return only items that match the value.
If more than one value is included, the results will return all items that match any of the values.
S3ResultItem
Description
These are the items returned in the results of a search of Amazon S3 backup metadata.
Members
- BackupResourceArn
-
- Type: string
These are items in the returned results that match recovery point Amazon Resource Names (ARN) input during a search of Amazon S3 backup metadata.
- BackupVaultName
-
- Type: string
The name of the backup vault.
- CreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
These are one or more items in the returned results that match values for item creation time input during a search of Amazon S3 backup metadata.
- ETag
-
- Type: string
These are one or more items in the returned results that match values for ETags input during a search of Amazon S3 backup metadata.
- ObjectKey
-
- Type: string
This is one or more items returned in the results of a search of Amazon S3 backup metadata that match the values input for object key.
- ObjectSize
-
- Type: long (int|float)
These are items in the returned results that match values for object size(s) input during a search of Amazon S3 backup metadata.
- SourceResourceArn
-
- Type: string
These are items in the returned results that match source Amazon Resource Names (ARN) input during a search of Amazon S3 backup metadata.
- VersionId
-
- Type: string
These are one or more items in the returned results that match values for version IDs input during a search of Amazon S3 backup metadata.
SearchJobBackupsResult
Description
This contains the information about recovery points returned in results of a search job.
Members
- BackupCreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
This is the creation time of the backup (recovery point).
- BackupResourceArn
-
- Type: string
The Amazon Resource Name (ARN) that uniquely identifies the backup resources.
- IndexCreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
This is the creation time of the backup index.
- ResourceType
-
- Type: string
This is the resource type of the search.
- SourceResourceArn
-
- Type: string
The Amazon Resource Name (ARN) that uniquely identifies the source resources.
- Status
-
- Type: string
This is the status of the search job backup result.
- StatusMessage
-
- Type: string
This is the status message included with the results.
SearchJobSummary
Description
This is information pertaining to a search job.
Members
- CompletionTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
This is the completion time of the search job.
- CreationTime
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
This is the creation time of the search job.
- Name
-
- Type: string
This is the name of the search job.
- SearchJobArn
-
- Type: string
The unique string that identifies the Amazon Resource Name (ARN) of the specified search job.
- SearchJobIdentifier
-
- Type: string
The unique string that specifies the search job.
- SearchScopeSummary
-
- Type: SearchScopeSummary structure
Returned summary of the specified search job scope, including:
-
TotalBackupsToScanCount, the number of recovery points returned by the search.
-
TotalItemsToScanCount, the number of items returned by the search.
- Status
-
- Type: string
This is the status of the search job.
- StatusMessage
-
- Type: string
A status message will be returned for either a earch job with a status of
ERRORED
or a status ofCOMPLETED
jobs with issues.For example, a message may say that a search contained recovery points unable to be scanned because of a permissions issue.
SearchScope
Description
The search scope is all backup properties input into a search.
Members
- BackupResourceArns
-
- Type: Array of strings
The Amazon Resource Name (ARN) that uniquely identifies the backup resources.
- BackupResourceCreationTime
-
- Type: BackupCreationTimeFilter structure
This is the time a backup resource was created.
- BackupResourceTags
-
- Type: Associative array of custom strings keys (String) to strings
These are one or more tags on the backup (recovery point).
- BackupResourceTypes
-
- Required: Yes
- Type: Array of strings
The resource types included in a search.
Eligible resource types include S3 and EBS.
- SourceResourceArns
-
- Type: Array of strings
The Amazon Resource Name (ARN) that uniquely identifies the source resources.
SearchScopeSummary
Description
The summary of the specified search job scope, including:
-
TotalBackupsToScanCount, the number of recovery points returned by the search.
-
TotalItemsToScanCount, the number of items returned by the search.
Members
- TotalItemsToScanCount
-
- Type: long (int|float)
This is the count of the total number of items that will be scanned in a search.
- TotalRecoveryPointsToScanCount
-
- Type: int
This is the count of the total number of backups that will be scanned in a search.
ServiceQuotaExceededException
Description
The request denied due to exceeding the quota limits permitted.
Members
- message
-
- Required: Yes
- Type: string
This request was not successful due to a service quota exceeding limits.
- quotaCode
-
- Required: Yes
- Type: string
This is the code specific to the quota type.
- resourceId
-
- Required: Yes
- Type: string
Identifier of the resource.
- resourceType
-
- Required: Yes
- Type: string
Type of resource.
- serviceCode
-
- Required: Yes
- Type: string
This is the code unique to the originating service with the quota.
StringCondition
Description
This contains the value of the string and can contain one or more operators.
Members
- Operator
-
- Type: string
A string that defines what values will be returned.
If this is included, avoid combinations of operators that will return all possible values. For example, including both
EQUALS_TO
andNOT_EQUALS_TO
with a value of4
will return all values. - Value
-
- Required: Yes
- Type: string
The value of the string.
ThrottlingException
Description
The request was denied due to request throttling.
Members
- message
-
- Required: Yes
- Type: string
Request was unsuccessful due to request throttling.
- quotaCode
-
- Type: string
This is the code unique to the originating service with the quota.
- retryAfterSeconds
-
- Type: int
Retry the call after number of seconds.
- serviceCode
-
- Type: string
This is the code unique to the originating service.
TimeCondition
Description
A time condition denotes a creation time, last modification time, or other time.
Members
- Operator
-
- Type: string
A string that defines what values will be returned.
If this is included, avoid combinations of operators that will return all possible values. For example, including both
EQUALS_TO
andNOT_EQUALS_TO
with a value of4
will return all values. - Value
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
This is the timestamp value of the time condition.
ValidationException
Description
The input fails to satisfy the constraints specified by a service.
Members
- message
-
- Required: Yes
- Type: string
The input fails to satisfy the constraints specified by an Amazon service.