Skip to main content

autoshifts

Creates, updates, deletes, gets or lists an autoshifts resource.

Overview

Nameautoshifts
TypeResource
Idaws.arc_zonal_shift.autoshifts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
away_fromstringThe Availability Zone (for example, use1-az1) that traffic is shifted away from for a resource when Amazon Web Services starts an autoshift. Until the autoshift ends, traffic for the resource is instead directed to other Availability Zones in the Amazon Web Services Region. An autoshift can end for a resource, for example, when Amazon Web Services ends the autoshift for the Availability Zone or when you disable zonal autoshift for the resource.
end_timestring (date-time)The time (in UTC) when the autoshift ended.
start_timestring (date-time)The time (in UTC) when the autoshift started.
statusstringThe status for an autoshift. (ACTIVE, COMPLETED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_autoshiftsselectregionnextToken, status, maxResultsReturns the autoshifts for an Amazon Web Services Region. By default, the call returns only ACTIVE autoshifts. Optionally, you can specify the status parameter to return COMPLETED autoshifts.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
maxResultsintegerThe number of objects that you want to return with this call.
nextTokenstringSpecifies that you want to receive the next page of results. Valid only if you received a nextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's nextToken response to request the next page of results.
statusstringThe status of the autoshift.

SELECT examples

Returns the autoshifts for an Amazon Web Services Region. By default, the call returns only ACTIVE autoshifts. Optionally, you can specify the status parameter to return COMPLETED autoshifts.

SELECT
away_from,
end_time,
start_time,
status
FROM aws.arc_zonal_shift.autoshifts
WHERE region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND status = '{{ status }}'
AND maxResults = '{{ maxResults }}'
;