Skip to main content

zonal_autoshift_configurations

Creates, updates, deletes or gets a zonal_autoshift_configuration resource or lists zonal_autoshift_configurations in a region

Overview

Namezonal_autoshift_configurations
TypeResource
DescriptionDefinition of AWS::ARCZonalShift::ZonalAutoshiftConfiguration Resource Type
Idaws.arczonalshift.zonal_autoshift_configurations

Fields

NameDatatypeDescription
zonal_autoshift_statusstring
practice_run_configurationobject
resource_identifierstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all zonal_autoshift_configurations in a region.

SELECT
region,
zonal_autoshift_status,
practice_run_configuration,
resource_identifier
FROM aws.arczonalshift.zonal_autoshift_configurations
WHERE region = 'us-east-1';

Gets all properties from an individual zonal_autoshift_configuration.

SELECT
region,
zonal_autoshift_status,
practice_run_configuration,
resource_identifier
FROM aws.arczonalshift.zonal_autoshift_configurations
WHERE region = 'us-east-1' AND data__Identifier = '<ResourceIdentifier>';

INSERT example

Use the following StackQL query and manifest file to create a new zonal_autoshift_configuration resource, using stack-deploy.

/*+ create */
INSERT INTO aws.arczonalshift.zonal_autoshift_configurations (
ZonalAutoshiftStatus,
PracticeRunConfiguration,
ResourceIdentifier,
region
)
SELECT
'{{ ZonalAutoshiftStatus }}',
'{{ PracticeRunConfiguration }}',
'{{ ResourceIdentifier }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.arczonalshift.zonal_autoshift_configurations
WHERE data__Identifier = '<ResourceIdentifier>'
AND region = 'us-east-1';

Permissions

To operate on the zonal_autoshift_configurations resource, the following permissions are required:

Create

arc-zonal-shift:CreatePracticeRunConfiguration,
arc-zonal-shift:GetManagedResource,
arc-zonal-shift:UpdateZonalAutoshiftConfiguration,
cloudwatch:DescribeAlarms,
iam:CreateServiceLinkedRole

Read

arc-zonal-shift:GetManagedResource

Update

arc-zonal-shift:GetManagedResource,
arc-zonal-shift:UpdatePracticeRunConfiguration,
arc-zonal-shift:UpdateZonalAutoshiftConfiguration,
cloudwatch:DescribeAlarms

Delete

arc-zonal-shift:DeletePracticeRunConfiguration,
arc-zonal-shift:GetManagedResource,
arc-zonal-shift:UpdateZonalAutoshiftConfiguration

List

arc-zonal-shift:ListManagedResources