Definitions for @turbot/aws-backup

backup

{
"allOf": [
{
"$ref": "turbot#/definitions/service"
},
{
"type": "object",
"properties": {
"name": {
"const": "Backup"
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/backupServiceAka"
}
},
"title": {
"const": "Backup"
},
"custom": {
"type": "object",
"properties": {
"aws": {
"$ref": "aws#/definitions/awsMetadata"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "Valid - all properties provided",
"input": {
"name": "Backup",
"turbot": {
"akas": [
"arn:aws:backup::123456789012"
],
"title": "Backup",
"custom": {
"aws": {
"accountId": 123456789012
}
}
}
}
}
]
}
],
".turbot": {
"uri": "tmod:@turbot/aws-backup#/definitions/backup",
"modUri": "tmod:@turbot/aws-backup"
}
}

backupPlan

{
"type": "object",
"properties": {
"BackupPlanName": {
"$ref": "#/definitions/backupPlanName"
},
"BackupPlanId": {
"$ref": "#/definitions/backupPlanId"
},
"BackupPlanArn": {
"$ref": "#/definitions/backupPlanArn"
},
"Tags": {
"$ref": "aws#/definitions/tagsMap"
},
"BackupPlan": {
"type": "object"
},
"VersionId": {
"type": "string"
},
"CreatorRequestId": {
"type": "string"
},
"CreationDate": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"LastExecutionDate": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/backupPlanArn"
}
},
"title": {
"$ref": "#/definitions/backupPlanName"
},
"tags": {
"$ref": "aws#/definitions/tagsMap"
},
"custom": {
"type": "object",
"properties": {
"aws": {
"$ref": "aws#/definitions/awsMetadata"
},
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"lastUsedTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "Valid - All properties",
"input": {
"BackupPlanId": "edd254c6-668f-42b4-9686-b0f12deb6ba6",
"BackupPlanName": "backupplan01",
"BackupPlanArn": "arn:aws:backup:us-east-1:123456789012:backup-plan:edd254c6-668f-42b4-9686-b0f12deb6ba6",
"Tags": {
"env": "test",
"app": "facebook"
},
"turbot": {
"akas": [
"arn:aws:backup:us-east-1:123456789012:backup-plan:edd254c6-668f-42b4-9686-b0f12deb6ba6"
],
"tags": {
"Env": "Test",
"App": "Facebook"
},
"custom": {
"aws": {
"accountId": 123456789012,
"regionName": "us-east-1"
}
}
}
}
}
],
".turbot": {
"uri": "tmod:@turbot/aws-backup#/definitions/backupPlan",
"modUri": "tmod:@turbot/aws-backup"
}
}

backupPlanArn

{
"type": "string",
"pattern": "arn:aws(-us-gov|-cn)?:backup:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-[0-9]{1}:[0-9]{12}:backup-plan:[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$",
"tests": [
{
"description": "valid arn",
"input": "arn:aws:backup:us-east-1:123456789012:backup-plan:edd254c6-668f-42b4-9686-b0f12deb6ba6"
},
{
"description": "valid arn",
"input": "arn:aws:backup:us-east-1:123456789012:backup-plan:edd254c6-668f-42b4-9686-b0f12deb6ba6"
},
{
"description": "invalid arn- random input",
"input": "I am happy",
"expected": false
},
{
"description": "invalid arn - incorrect backupvaultname",
"input": "arn:aws:backup:us-east-1:123456789012:vault:aBackup@@@Vault",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-backup#/definitions/backupPlanArn",
"modUri": "tmod:@turbot/aws-backup"
}
}

backupPlanId

{
"type": "string",
"pattern": "^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$",
"tests": [
{
"description": "Valid backupplanid",
"input": "b0a45792-0a97-4b98-9b0b-e2329026a561"
},
{
"description": "invalid backupplanid",
"input": "0a45792-0a97-4b98",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-backup#/definitions/backupPlanId",
"modUri": "tmod:@turbot/aws-backup"
}
}

backupPlanName

{
"type": "string",
"pattern": "^[a-zA-Z0-9-_.]{1,50}$",
"tests": [
{
"description": "valid BackupPlan name",
"input": "backupPlan101"
},
{
"description": "valid BackupPlan name - using special characters",
"input": "backup_Plan.101"
},
{
"description": "invalid BackupPlan name - special characters other than _ and .",
"input": "ABC@@&&&",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-backup#/definitions/backupPlanName",
"modUri": "tmod:@turbot/aws-backup"
}
}

backupSelection

{
"type": "object",
"properties": {
"SelectionName": {
"$ref": "#/definitions/selectionName"
},
"IamRoleArn": {
"$ref": "#/definitions/iamRoleArn"
},
"Resources": {
"type": "array"
},
"ListOfTags": {
"type": "array"
},
"NotResources": {
"type": "array"
},
"Conditions": {
"type": "object"
},
"SelectionId": {
"$ref": "#/definitions/id"
},
"BackupPlanId": {
"$ref": "#/definitions/id"
},
"CreationDate": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/backupSelectionArn"
}
},
"title": {
"$ref": "#/definitions/selectionName"
},
"custom": {
"type": "object",
"properties": {
"aws": {
"$ref": "aws#/definitions/awsMetadata"
},
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "Valid - All properties",
"input": {
"BackupPlanId": "73d922fb-9312-3a70-99c3-e69367f9fdad",
"Conditions": {
"StringEquals": [],
"StringLike": [],
"StringNotEquals": [],
"StringNotLike": []
},
"CreationDate": "2021-03-18T10:42:19.775Z",
"CreatorRequestId": "automatic-backup-388460667113-us-east-2",
"IamRoleArn": "arn:aws:iam::388460667113:role/aws-service-role/backup.amazonaws.com/AWSServiceRoleForBackup",
"ListOfTags": [
{
"ConditionKey": "aws:elasticfilesystem:default-backup",
"ConditionType": "STRINGEQUALS",
"ConditionValue": "enabled"
}
],
"NotResources": [],
"Resources": [],
"SelectionId": "b02d4cfb-38c4-4497-a8f6-00eef9664ed0",
"SelectionName": "automatic-backup-selection",
"turbot": {
"akas": [
"arn:aws:backup:us-east-2:388460667113:backup-plan:73d922fb-9312-3a70-99c3-e69367f9fdad:selection/b02d4cfb-38c4-4497-a8f6-00eef9664ed0"
],
"custom": {
"aws": {
"accountId": "388460667113",
"partition": "aws",
"regionName": "us-east-2"
},
"createTimestamp": "2021-03-18T10:42:19.775Z"
},
"title": "automatic-backup-selection"
}
}
}
],
".turbot": {
"uri": "tmod:@turbot/aws-backup#/definitions/backupSelection",
"modUri": "tmod:@turbot/aws-backup"
}
}

backupSelectionArn

{
"type": "string",
"pattern": "arn:aws(-us-gov|-cn)?:backup:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-[0-9]{1}:[0-9]{12}:backup-plan:[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}:selection/[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$",
"tests": [
{
"description": "valid arn",
"input": "arn:aws:backup:us-east-1:123456789012:backup-plan:edd254c6-668f-42b4-9686-b0f12deb6ba6:selection/23e531a1-de55-4af5-b0ae-6fc64c08b324"
},
{
"description": "invalid arn - incorrect backupselection id",
"input": "arn:aws:backup:us-east-1:123456789012:backup-plan:edd254c6-b0fa6:selection/23e531a1-de55-4af5-b0ae-6fc64c08b324",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-backup#/definitions/backupSelectionArn",
"modUri": "tmod:@turbot/aws-backup"
}
}

backupServiceAka

{
"type": "string",
"pattern": "^arn:aws(-us-gov|-cn)?:backup:[a-z]{2}(-gov)?-[a-z]+-[0-9]{1}:[0-9]{12}$",
"tests": [
{
"description": "base",
"input": "arn:aws:backup:us-east-1:123123123123"
},
{
"description": "Invalid - service name not valid",
"input": "arn:aws:datasync111::123123123123",
"expected": false
},
{
"description": "Invalid - account id is not valid",
"input": "arn:aws:vpc::123382743123123123",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-backup#/definitions/backupServiceAka",
"modUri": "tmod:@turbot/aws-backup"
}
}

backupVault

{
"type": "object",
"properties": {
"BackupVaultArn": {
"$ref": "#/definitions/backupVaultArn"
},
"BackupVaultName": {
"$ref": "#/definitions/backupVaultName"
},
"Tags": {
"$ref": "aws#/definitions/tagsMap"
},
"EncryptionKeyArn": {
"type": "string"
},
"CreationDate": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"CreatorRequestId": {
"type": "string"
},
"Policy": {
"type": "string"
},
"NumberOfRecoveryPoints": {
"type": "integer"
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/backupVaultArn"
}
},
"tags": {
"$ref": "aws#/definitions/tagsMap"
},
"custom": {
"type": "object",
"properties": {
"aws": {
"$ref": "aws#/definitions/awsMetadata"
},
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "Valid - All properties",
"input": {
"BackupVaultArn": "arn:aws:backup:us-west-2:492552618977:backup-vault:test01",
"BackupVaultName": "backupvaultname",
"Tags": {
"Env": "Test",
"App": "Facebook"
},
"turbot": {
"akas": [
"arn:aws:backup:us-west-2:123456789012:backup-vault:aBackupPlan"
],
"tags": {
"Env": "Test",
"App": "Facebook"
},
"custom": {
"aws": {
"accountId": 123456789012,
"regionName": "us-east-1"
}
}
}
}
}
],
".turbot": {
"uri": "tmod:@turbot/aws-backup#/definitions/backupVault",
"modUri": "tmod:@turbot/aws-backup"
}
}

backupVaultArn

{
"type": "string",
"pattern": "arn:aws(-us-gov|-cn)?:backup:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-[0-9]{1}:[0-9]{12}:backup-vault:[a-zA-Z0-9-_.]{1,50}$",
"tests": [
{
"description": "valid arn",
"input": "arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault"
},
{
"description": "invalid arn- random input",
"input": "I am happy",
"expected": false
},
{
"description": "invalid arn - incorrect backupvaultname",
"input": "arn:aws:backup:us-east-1:123456789012:vault:aBackup@@@Vault",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-backup#/definitions/backupVaultArn",
"modUri": "tmod:@turbot/aws-backup"
}
}

backupVaultName

{
"type": "string",
"pattern": "^[a-zA-Z0-9-_.]{1,50}$",
"tests": [
{
"description": "Valid backupvaultname",
"input": "ved-us-east-2"
},
{
"description": "valid backupvaultname- Uppercase letters",
"input": "Ved-US-east_2"
},
{
"description": "Invalid backupvaultname- special character other than hyphen",
"input": "ved/us-east-2@@",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-backup#/definitions/backupVaultName",
"modUri": "tmod:@turbot/aws-backup"
}
}

calculatedLifecycle

{
"type": "object",
"properties": {
"MoveToColdStorageAt": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"DeleteAt": {
"$ref": "turbot#/definitions/isoTimestamp"
}
},
".turbot": {
"uri": "tmod:@turbot/aws-backup#/definitions/calculatedLifecycle",
"modUri": "tmod:@turbot/aws-backup"
}
}

createdBy

{
"type": "object",
"properties": {
"BackupPlanId": {
"$ref": "#/definitions/id"
},
"BackupPlanArn": {
"$ref": "#/definitions/backupPlanArn"
},
"BackupPlanVersion": {
"type": "string"
},
"BackupRuleId": {
"$ref": "#/definitions/id"
}
},
".turbot": {
"uri": "tmod:@turbot/aws-backup#/definitions/createdBy",
"modUri": "tmod:@turbot/aws-backup"
}
}

encryptionKeyArn

{
"type": "string",
"pattern": "^arn:aws(-us-gov|-cn)?:kms:[a-z]{2}(-gov)?-[a-z]+-[0-9]:[0-9]{12}:key/[0-9a-f-]+(?:[0-9a-f]{1,255})?$",
"tests": [
{
"description": "Valid - Base case",
"input": "arn:aws:kms:us-west-2:492552618977:key/39dcbfab-70e6-4368-b592-6f547c2afe7f"
},
{
"description": "Invalid - Malformed aka",
"input": "arn:aws:kms:usa-west-2:49255261897322237:keys/39dcbfab-70e6-4368-b592-6f547c2afe7f",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-backup#/definitions/encryptionKeyArn",
"modUri": "tmod:@turbot/aws-backup"
}
}

iamRoleArn

{
"type": "string",
"pattern": "^arn:aws(-us-gov|-cn)?:iam::[0-9]{12}:role/[A-Za-z0-9/_+=,.@-]{1,64}$",
"tests": [
{
"description": "Valid - Base case",
"input": "arn:aws:iam::123456789012:role/turbot_role_metadata"
},
{
"description": "Invalid - Malformed resource collection",
"input": "arn:aws:ec2:123456789012:roles/turbot_role_metadata",
"expected": false
},
{
"description": "Invalid - Malformed account ID",
"input": "arn:aws:ec2:1234567892101489:role/turbot_role_metadata",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-backup#/definitions/iamRoleArn",
"modUri": "tmod:@turbot/aws-backup"
}
}

id

{
"type": "string",
"pattern": "^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$",
"tests": [
{
"description": "valid id",
"input": "b1dbc18b-0244-4d7c-b89c-17be72e1048f"
},
{
"description": "invalid id",
"input": "b1dbc1-0244-4d7c-b89c-17be72e1048f",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-backup#/definitions/id",
"modUri": "tmod:@turbot/aws-backup"
}
}

lifecycle

{
"type": "object",
"properties": {
"MoveToColdStorageAfterDays": {
"type": "number"
},
"DeleteAfterDays": {
"type": "number"
}
},
".turbot": {
"uri": "tmod:@turbot/aws-backup#/definitions/lifecycle",
"modUri": "tmod:@turbot/aws-backup"
}
}

protectedResource

{
"type": "object",
"properties": {
"ResourceArn": {
"type": "string"
},
"ResourceType": {
"type": "string"
},
"LastBackupTime": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/protectedResourceArn"
}
},
"custom": {
"type": "object",
"properties": {
"aws": {
"$ref": "aws#/definitions/awsMetadata"
},
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "Valid - All properties",
"input": {
"ResourceArn": "arn:aws:ec2:us-east-1:388460667113:volume/vol-0dcc8f0a8f0ae82ad",
"ResourceType": "EBS",
"LastBackupTime": "2022-04-29T11:12:33.341Z",
"turbot": {
"akas": [
"arn:aws:backup:us-east-1:123456789012:protected-resource:vol-0dcc8f0a8f0ae82ad"
],
"custom": {
"aws": {
"accountId": 123456789012,
"regionName": "us-east-1"
}
}
}
}
}
],
".turbot": {
"uri": "tmod:@turbot/aws-backup#/definitions/protectedResource",
"modUri": "tmod:@turbot/aws-backup"
}
}

protectedResourceArn

{
"type": "string",
"pattern": "arn:aws(-us-gov|-cn)?:backup:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-[0-9]{1}:[0-9]{12}:protected-resource:[a-zA-Z0-9-_.]+$",
"tests": [
{
"description": "valid arn",
"input": "arn:aws:backup:us-east-1:123456789012:protected-resource:vol-0dcc8f0a8f0ae82ad"
},
{
"description": "invalid arn - incorrect resourcetype",
"input": "arn:aws:backup:us-east-1:123456789012:vault:aBackup@@@Vault",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-backup#/definitions/protectedResourceArn",
"modUri": "tmod:@turbot/aws-backup"
}
}

recoveryPoint

{
"type": "object",
"properties": {
"RecoveryPointArn": {
"type": "string"
},
"BackupVaultName": {
"$ref": "#/definitions/backupVaultName"
},
"BackupVaultArn": {
"$ref": "#/definitions/backupVaultArn"
},
"SourceBackupVaultArn": {
"$ref": "#/definitions/backupVaultArn"
},
"ResourceArn": {
"type": "string"
},
"ResourceType": {
"type": "string"
},
"CreatedBy": {
"$ref": "#/definitions/createdBy"
},
"IamRoleArn": {
"$ref": "#/definitions/iamRoleArn"
},
"Status": {
"$ref": "#/definitions/status"
},
"StatusMessage": {
"type": "string"
},
"CreationDate": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"CompletionDate": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"BackupSizeInBytes": {
"type": "number"
},
"CalculatedLifecycle": {
"$ref": "#/definitions/calculatedLifecycle"
},
"Lifecycle": {
"$ref": "#/definitions/lifecycle"
},
"Tags": {
"$ref": "aws#/definitions/tagsMap"
},
"EncryptionKeyArn": {
"$ref": "#/definitions/encryptionKeyArn"
},
"IsEncrypted": {
"type": "boolean"
},
"StorageClass": {
"$ref": "#/definitions/storageClass"
},
"LastRestoreTime": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/recoveryPointArn"
}
},
"title": {
"type": "string"
},
"tags": {
"$ref": "aws#/definitions/tagsMap"
},
"custom": {
"type": "object",
"properties": {
"aws": {
"$ref": "aws#/definitions/awsMetadata"
},
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "Valid - All properties",
"input": {
"RecoveryPointArn": "arn:aws:ec2:us-east-1::image/ami-0b2d83a6aa2fc4c66",
"BackupVaultName": "Default",
"BackupVaultArn": "arn:aws:backup:us-east-1:388460667113:backup-vault:Default",
"ResourceArn": "arn:aws:ec2:us-east-1:388460667113:instance/i-0690d6c9a72bcd523",
"ResourceType": "EC2",
"IamRoleArn": "arn:aws:iam::388460667113:role/service-role/AWSBackupDefaultServiceRole",
"Status": "COMPLETED",
"CreationDate": "2022-04-27T22:57:14.521Z",
"CompletionDate": "2022-04-27T22:59:17.948Z",
"BackupSizeInBytes": 8589934592,
"CalculatedLifecycle": {
"DeleteAt": "2022-06-02T22:57:14.521Z"
},
"Lifecycle": {
"DeleteAfterDays": 36
},
"IsEncrypted": true,
"Tags": {
"env": "test",
"app": "facebook"
},
"turbot": {
"akas": [
"arn:aws:backup:us-east-1:123456789012:backup-vault:Default:recovery-point:ami-0b2d83a6aa2fc4c66"
],
"tags": {
"Env": "Test",
"App": "Facebook"
},
"custom": {
"aws": {
"accountId": 123456789012,
"regionName": "us-east-1"
}
}
}
}
}
],
".turbot": {
"uri": "tmod:@turbot/aws-backup#/definitions/recoveryPoint",
"modUri": "tmod:@turbot/aws-backup"
}
}

recoveryPointArn

{
"type": "string",
"pattern": "arn:aws(-us-gov|-cn)?:backup:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-[0-9]{1}:[0-9]{12}:backup-vault:[a-zA-Z0-9-_.]{1,50}:recovery-point:[a-zA-Z0-9/-]+$",
"tests": [
{
"description": "valid arn",
"input": "arn:aws:backup:us-east-1:123456789012:backup-vault:Default:recovery-point:edd254c6-668f-42b4-9686-b0f12deb6ba6"
},
{
"description": "valid arn",
"input": "arn:aws:backup:us-east-1:123456789012:backup-vault:Default:recovery-point:snap-01fccseaerqfaesfa"
},
{
"description": "invalid arn - incorrect recoveryPointArn",
"input": "arn:aws:backup:us-east-1:123456789012:vault:aBackup@@@Vault",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-backup#/definitions/recoveryPointArn",
"modUri": "tmod:@turbot/aws-backup"
}
}

regionSettings

{
"type": "object",
"properties": {
"ResourceTypeOptInPreference": {
"$ref": "#/definitions/resourceTypeOptInPreference"
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/regionSettingsArn"
}
},
"custom": {
"type": "object",
"properties": {
"aws": {
"$ref": "aws#/definitions/awsMetadata"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "Valid - All properties",
"input": {
"ResourceTypeOptInPreference": {
"Aurora": true,
"DynamoDB": true,
"EBS": true,
"EC2": true,
"EFS": true,
"FSx": true,
"RDS": true,
"Storage Gateway": true
},
"turbot": {
"akas": [
"arn:aws:backup:us-west-2:123456789012:region-settings"
],
"custom": {
"aws": {
"accountId": 123456789012,
"regionName": "us-east-1"
}
}
}
}
}
],
".turbot": {
"uri": "tmod:@turbot/aws-backup#/definitions/regionSettings",
"modUri": "tmod:@turbot/aws-backup"
}
}

regionSettingsArn

{
"type": "string",
"pattern": "arn:aws(-us-gov|-cn)?:backup:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-[0-9]{1}:[0-9]{12}:region-settings$",
"tests": [
{
"description": "valid arn",
"input": "arn:aws:backup:us-east-1:123456789012:region-settings"
},
{
"description": "invalid arn- random input",
"input": "I am happy",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-backup#/definitions/regionSettingsArn",
"modUri": "tmod:@turbot/aws-backup"
}
}

resourceTypeOptInPreference

{
"type": "object",
"properties": {
"Aurora": {
"type": "boolean"
},
"DynamoDB": {
"type": "boolean"
},
"EBS": {
"type": "boolean"
},
"EC2": {
"type": "boolean"
},
"EFS": {
"type": "boolean"
},
"FSx": {
"type": "boolean"
},
"RDS": {
"type": "boolean"
},
"Storage Gateway": {
"type": "boolean"
}
},
".turbot": {
"uri": "tmod:@turbot/aws-backup#/definitions/resourceTypeOptInPreference",
"modUri": "tmod:@turbot/aws-backup"
}
}

selectionName

{
"type": "string",
"pattern": "^[a-zA-Z0-9_.-]{1,50}$",
"tests": [
{
"description": "valid backup selection name",
"input": "backupSelection01"
},
{
"description": "valid backup selection name - using special characters",
"input": "bbackupSelection.01"
},
{
"description": "invalid backup selection name - special characters other than _, - and .",
"input": "ABC@@&&&",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-backup#/definitions/selectionName",
"modUri": "tmod:@turbot/aws-backup"
}
}

status

{
"type": "string",
"enum": [
"COMPLETED",
"PARTIAL",
"DELETING",
"EXPIRED"
],
"tests": [
{
"input": "PARTIAL"
},
{
"input": "DELETING"
},
{
"describe": "invalid - value not allowed",
"input": "vaid",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-backup#/definitions/status",
"modUri": "tmod:@turbot/aws-backup"
}
}

storageClass

{
"type": "string",
"enum": [
"WARM",
"COLD",
"DELETED"
],
"tests": [
{
"input": "WARM"
},
{
"input": "COLD"
},
{
"describe": "invalid - value not allowed",
"input": "delete",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-backup#/definitions/storageClass",
"modUri": "tmod:@turbot/aws-backup"
}
}