Skip to main content

backup_plans

Creates, updates, deletes or gets a backup_plan resource or lists backup_plans in a region

Overview

Namebackup_plans
TypeResource
DescriptionResource Type definition for AWS::Backup::BackupPlan
Idaws.backup.backup_plans

Fields

NameDatatypeDescription
backup_planobject
backup_plan_tagsobject
backup_plan_arnstring
backup_plan_idstring
version_idstring
regionstringAWS region.

Methods

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

SELECT examples

Gets all backup_plans in a region.

SELECT
region,
backup_plan,
backup_plan_tags,
backup_plan_arn,
backup_plan_id,
version_id
FROM aws.backup.backup_plans
WHERE region = 'us-east-1';

Gets all properties from an individual backup_plan.

SELECT
region,
backup_plan,
backup_plan_tags,
backup_plan_arn,
backup_plan_id,
version_id
FROM aws.backup.backup_plans
WHERE region = 'us-east-1' AND data__Identifier = '<BackupPlanId>';

INSERT example

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

/*+ create */
INSERT INTO aws.backup.backup_plans (
BackupPlan,
region
)
SELECT
'{{ BackupPlan }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.backup.backup_plans
WHERE data__Identifier = '<BackupPlanId>'
AND region = 'us-east-1';

Permissions

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

Read

backup:GetBackupPlan,
backup:ListTags

Create

backup:GetBackupPlan,
backup:TagResource,
backup:CreateBackupPlan

Delete

backup:GetBackupPlan,
backup:DeleteBackupPlan

Update

backup:UpdateBackupPlan,
backup:ListTags,
backup:TagResource,
backup:UntagResource

List

backup:ListBackupPlans