|
1 | 1 | {
|
2 |
| - "typeName": "AWS::Backup::LogicallyAirGappedBackupVault", |
3 |
| - "description": "Resource Type definition for AWS::Backup::LogicallyAirGappedBackupVault", |
4 | 2 | "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
|
5 |
| - "definitions": { |
6 |
| - "NotificationObjectType": { |
7 |
| - "type": "object", |
8 |
| - "additionalProperties": false, |
9 |
| - "properties": { |
10 |
| - "BackupVaultEvents": { |
11 |
| - "type": "array", |
12 |
| - "insertionOrder": false, |
13 |
| - "uniqueItems": false, |
14 |
| - "items": { |
15 |
| - "type": "string" |
16 |
| - } |
17 |
| - }, |
18 |
| - "SNSTopicArn": { |
19 |
| - "type": "string" |
20 |
| - } |
21 |
| - }, |
22 |
| - "required": [ |
23 |
| - "SNSTopicArn", |
24 |
| - "BackupVaultEvents" |
25 |
| - ] |
26 |
| - }, |
27 |
| - "BackupVaultNamePattern": { |
28 |
| - "type": "string", |
29 |
| - "pattern": "^[a-zA-Z0-9\\-\\_]{2,50}$" |
30 |
| - } |
31 |
| - }, |
32 |
| - "properties": { |
33 |
| - "AccessPolicy": { |
34 |
| - "type": [ |
35 |
| - "object", |
36 |
| - "string" |
37 |
| - ] |
38 |
| - }, |
39 |
| - "BackupVaultName": { |
40 |
| - "$ref": "#/definitions/BackupVaultNamePattern" |
41 |
| - }, |
42 |
| - "MinRetentionDays": { |
43 |
| - "type": "integer" |
44 |
| - }, |
45 |
| - "MaxRetentionDays": { |
46 |
| - "type": "integer" |
47 |
| - }, |
48 |
| - "BackupVaultTags": { |
49 |
| - "type": "object", |
50 |
| - "additionalProperties": false, |
51 |
| - "patternProperties": { |
52 |
| - "": { |
53 |
| - "type": "string" |
54 |
| - } |
55 |
| - } |
56 |
| - }, |
57 |
| - "Notifications": { |
58 |
| - "$ref": "#/definitions/NotificationObjectType" |
59 |
| - }, |
60 |
| - "EncryptionKeyArn": { |
61 |
| - "type": "string" |
62 |
| - }, |
63 |
| - "BackupVaultArn": { |
64 |
| - "type": "string" |
65 |
| - }, |
66 |
| - "VaultState": { |
67 |
| - "type": "string" |
68 |
| - }, |
69 |
| - "VaultType": { |
70 |
| - "type": "string" |
71 |
| - } |
72 |
| - }, |
73 |
| - "additionalProperties": false, |
74 | 3 | "tagging": {
|
75 |
| - "taggable": true, |
76 |
| - "tagOnCreate": true, |
77 |
| - "tagUpdatable": true, |
78 |
| - "cloudFormationSystemTags": true, |
79 |
| - "tagProperty": "/properties/BackupVaultTags", |
80 | 4 | "permissions": [
|
81 | 5 | "backup:TagResource",
|
82 | 6 | "backup:UntagResource",
|
83 | 7 | "backup:ListTags"
|
84 |
| - ] |
| 8 | + ], |
| 9 | + "taggable": true, |
| 10 | + "tagOnCreate": true, |
| 11 | + "tagUpdatable": true, |
| 12 | + "tagProperty": "/properties/BackupVaultTags", |
| 13 | + "cloudFormationSystemTags": true |
85 | 14 | },
|
86 |
| - "required": [ |
87 |
| - "BackupVaultName", |
88 |
| - "MinRetentionDays", |
89 |
| - "MaxRetentionDays" |
90 |
| - ], |
91 |
| - "createOnlyProperties": [ |
92 |
| - "/properties/BackupVaultName", |
93 |
| - "/properties/MinRetentionDays", |
94 |
| - "/properties/MaxRetentionDays" |
95 |
| - ], |
96 |
| - "readOnlyProperties": [ |
97 |
| - "/properties/BackupVaultArn", |
98 |
| - "/properties/EncryptionKeyArn", |
99 |
| - "/properties/VaultState", |
100 |
| - "/properties/VaultType" |
101 |
| - ], |
102 |
| - "primaryIdentifier": [ |
103 |
| - "/properties/BackupVaultName" |
104 |
| - ], |
105 | 15 | "handlers": {
|
| 16 | + "read": { |
| 17 | + "permissions": [ |
| 18 | + "backup:DescribeBackupVault", |
| 19 | + "backup:GetBackupVaultNotifications", |
| 20 | + "backup:GetBackupVaultAccessPolicy", |
| 21 | + "backup:ListTags" |
| 22 | + ] |
| 23 | + }, |
106 | 24 | "create": {
|
107 | 25 | "permissions": [
|
108 | 26 | "backup:TagResource",
|
|
114 | 32 | "backup:DescribeBackupVault"
|
115 | 33 | ]
|
116 | 34 | },
|
117 |
| - "read": { |
118 |
| - "permissions": [ |
119 |
| - "backup:DescribeBackupVault", |
120 |
| - "backup:GetBackupVaultNotifications", |
121 |
| - "backup:GetBackupVaultAccessPolicy", |
122 |
| - "backup:ListTags" |
123 |
| - ] |
124 |
| - }, |
125 | 35 | "update": {
|
126 | 36 | "permissions": [
|
127 | 37 | "backup:DescribeBackupVault",
|
|
137 | 47 | "backup:PutBackupVaultLockConfiguration"
|
138 | 48 | ]
|
139 | 49 | },
|
| 50 | + "list": { |
| 51 | + "permissions": [ |
| 52 | + "backup:ListBackupVaults" |
| 53 | + ] |
| 54 | + }, |
140 | 55 | "delete": {
|
141 | 56 | "permissions": [
|
142 | 57 | "backup:DeleteBackupVault"
|
143 | 58 | ]
|
| 59 | + } |
| 60 | + }, |
| 61 | + "typeName": "AWS::Backup::LogicallyAirGappedBackupVault", |
| 62 | + "readOnlyProperties": [ |
| 63 | + "/properties/BackupVaultArn", |
| 64 | + "/properties/EncryptionKeyArn", |
| 65 | + "/properties/VaultState", |
| 66 | + "/properties/VaultType" |
| 67 | + ], |
| 68 | + "description": "Resource Type definition for AWS::Backup::LogicallyAirGappedBackupVault", |
| 69 | + "createOnlyProperties": [ |
| 70 | + "/properties/BackupVaultName", |
| 71 | + "/properties/MinRetentionDays", |
| 72 | + "/properties/MaxRetentionDays" |
| 73 | + ], |
| 74 | + "additionalProperties": false, |
| 75 | + "primaryIdentifier": [ |
| 76 | + "/properties/BackupVaultName" |
| 77 | + ], |
| 78 | + "definitions": { |
| 79 | + "NotificationObjectType": { |
| 80 | + "additionalProperties": false, |
| 81 | + "type": "object", |
| 82 | + "properties": { |
| 83 | + "SNSTopicArn": { |
| 84 | + "type": "string" |
| 85 | + }, |
| 86 | + "BackupVaultEvents": { |
| 87 | + "uniqueItems": false, |
| 88 | + "insertionOrder": false, |
| 89 | + "type": "array", |
| 90 | + "items": { |
| 91 | + "type": "string" |
| 92 | + } |
| 93 | + } |
| 94 | + }, |
| 95 | + "required": [ |
| 96 | + "SNSTopicArn", |
| 97 | + "BackupVaultEvents" |
| 98 | + ] |
144 | 99 | },
|
145 |
| - "list": { |
146 |
| - "permissions": [ |
147 |
| - "backup:ListBackupVaults" |
| 100 | + "BackupVaultNamePattern": { |
| 101 | + "pattern": "^[a-zA-Z0-9\\-\\_]{2,50}$", |
| 102 | + "type": "string" |
| 103 | + } |
| 104 | + }, |
| 105 | + "required": [ |
| 106 | + "BackupVaultName", |
| 107 | + "MinRetentionDays", |
| 108 | + "MaxRetentionDays" |
| 109 | + ], |
| 110 | + "properties": { |
| 111 | + "VaultState": { |
| 112 | + "type": "string" |
| 113 | + }, |
| 114 | + "BackupVaultTags": { |
| 115 | + "patternProperties": { |
| 116 | + "": { |
| 117 | + "type": "string" |
| 118 | + } |
| 119 | + }, |
| 120 | + "additionalProperties": false, |
| 121 | + "type": "object" |
| 122 | + }, |
| 123 | + "VaultType": { |
| 124 | + "type": "string" |
| 125 | + }, |
| 126 | + "BackupVaultName": { |
| 127 | + "$ref": "#/definitions/BackupVaultNamePattern" |
| 128 | + }, |
| 129 | + "BackupVaultArn": { |
| 130 | + "type": "string" |
| 131 | + }, |
| 132 | + "EncryptionKeyArn": { |
| 133 | + "type": "string" |
| 134 | + }, |
| 135 | + "MaxRetentionDays": { |
| 136 | + "type": "integer" |
| 137 | + }, |
| 138 | + "MinRetentionDays": { |
| 139 | + "type": "integer" |
| 140 | + }, |
| 141 | + "Notifications": { |
| 142 | + "$ref": "#/definitions/NotificationObjectType" |
| 143 | + }, |
| 144 | + "AccessPolicy": { |
| 145 | + "type": [ |
| 146 | + "object", |
| 147 | + "string" |
148 | 148 | ]
|
149 | 149 | }
|
150 | 150 | }
|
|
0 commit comments