-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathprovider.definition.schema.v1.json
331 lines (331 loc) · 15 KB
/
provider.definition.schema.v1.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://schema.cloudformation.us-east-1.amazonaws.com/provider.definition.schema.v1.json",
"title": "CloudFormation Resource Provider Definition MetaSchema",
"description": "This schema validates a CloudFormation resource provider definition.",
"definitions": {
"handlerSchema": {
"type": "object",
"properties": {
"properties": {
"$ref": "base.definition.schema.v1.json#/properties/properties"
},
"required": {
"$ref": "base.definition.schema.v1.json#/properties/required"
},
"allOf": {
"$ref": "base.definition.schema.v1.json#/definitions/schemaArray"
},
"anyOf": {
"$ref": "base.definition.schema.v1.json#/definitions/schemaArray"
},
"oneOf": {
"$ref": "base.definition.schema.v1.json#/definitions/schemaArray"
}
},
"required": [
"properties"
],
"additionalProperties": false
},
"handlerDefinitionWithSchemaOverride": {
"description": "Defines any execution operations which can be performed on this resource provider",
"type": "object",
"properties": {
"handlerSchema": {
"$ref": "#/definitions/handlerSchema"
},
"permissions": {
"type": "array",
"items": {
"type": "string"
},
"additionalItems": false
},
"timeoutInMinutes": {
"description": "Defines the timeout for the entire operation to be interpreted by the invoker of the handler. The default is 120 (2 hours).",
"type": "integer",
"minimum": 2,
"maximum": 2160,
"default": 120
}
},
"additionalProperties": false,
"required": [
"permissions"
]
},
"handlerDefinition": {
"description": "Defines any execution operations which can be performed on this resource provider",
"type": "object",
"properties": {
"permissions": {
"type": "array",
"items": {
"type": "string"
},
"additionalItems": false
},
"timeoutInMinutes": {
"description": "Defines the timeout for the entire operation to be interpreted by the invoker of the handler. The default is 120 (2 hours).",
"type": "integer",
"minimum": 2,
"maximum": 2160,
"default": 120
}
},
"additionalProperties": false,
"required": [
"permissions"
]
},
"replacementStrategy": {
"type": "string",
"description": "The valid replacement strategies are [create_then_delete] and [delete_then_create]. All other inputs are invalid.",
"default": "create_then_delete",
"enum": [
"create_then_delete",
"delete_then_create"
]
},
"resourceLink": {
"type": "object",
"properties": {
"$comment": {
"$ref": "http://json-schema.org/draft-07/schema#/properties/$comment"
},
"templateUri": {
"type": "string",
"pattern": "^(/|https:)"
},
"mappings": {
"type": "object",
"patternProperties": {
"^[A-Za-z0-9]{1,64}$": {
"type": "string",
"format": "json-pointer"
}
},
"additionalProperties": false
}
},
"required": [
"templateUri",
"mappings"
],
"additionalProperties": false
}
},
"type": "object",
"patternProperties": {
"^\\$id$": {
"$ref": "http://json-schema.org/draft-07/schema#/properties/$id"
}
},
"properties": {
"$schema": {
"$ref": "base.definition.schema.v1.json#/properties/$schema"
},
"type": {
"$comment": "Resource Type",
"type": "string",
"const": "RESOURCE"
},
"typeName": {
"$comment": "Resource Type Identifier",
"examples": [
"Organization::Service::Resource",
"AWS::EC2::Instance",
"Initech::TPS::Report"
],
"$ref": "base.definition.schema.v1.json#/properties/typeName"
},
"$comment": {
"$ref": "base.definition.schema.v1.json#/properties/$comment"
},
"title": {
"$ref": "base.definition.schema.v1.json#/properties/title"
},
"description": {
"$comment": "A short description of the resource provider. This will be shown in the AWS CloudFormation console.",
"$ref": "base.definition.schema.v1.json#/properties/description"
},
"sourceUrl": {
"$comment": "The location of the source code for this resource provider, to help interested parties submit issues or improvements.",
"examples": [
"https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-s3"
],
"$ref": "base.definition.schema.v1.json#/properties/sourceUrl"
},
"documentationUrl": {
"$comment": "A page with supplemental documentation. The property documentation in schemas should be able to stand alone, but this is an opportunity for e.g. rich examples or more guided documents.",
"examples": [
"https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/CHAP_Using.html"
],
"$ref": "base.definition.schema.v1.json#/definitions/httpsUrl"
},
"taggable": {
"description": "(Deprecated, please use new metadata attribute tagging) A boolean flag indicating whether this resource type supports tagging.",
"type": "boolean",
"default": true
},
"tagging": {
"type": "object",
"properties": {
"taggable": {
"description": "A boolean flag indicating whether this resource type supports tagging.",
"type": "boolean",
"default": true
},
"tagOnCreate": {
"description": "A boolean flag indicating whether this resource type supports tagging resources upon creation.",
"type": "boolean",
"default": true
},
"tagUpdatable": {
"description": "A boolean flag indicating whether this resource type supports updatable tagging.",
"type": "boolean",
"default": true
},
"cloudFormationSystemTags": {
"description": "A boolean flag indicating whether this resource type supports CloudFormation system tags.",
"type": "boolean",
"default": true
},
"tagProperty": {
"description": "A reference to the Tags property in the schema.",
"$ref": "http://json-schema.org/draft-07/schema#/properties/$ref",
"default": "/properties/Tags"
},
"permissions": {
"type": "array",
"items": {
"type": "string"
},
"additionalItems": false
}
},
"required": [
"taggable"
],
"additionalProperties": false
},
"replacementStrategy": {
"$comment": "The order of replacement for an immutable resource update.",
"$ref": "#/definitions/replacementStrategy"
},
"additionalProperties": {
"$comment": "All properties of a resource must be expressed in the schema - arbitrary inputs are not allowed",
"$ref": "base.definition.schema.v1.json#/properties/additionalProperties"
},
"properties": {
"$ref": "base.definition.schema.v1.json#/properties/properties"
},
"definitions": {
"$ref": "base.definition.schema.v1.json#/properties/definitions"
},
"handlers": {
"description": "Defines the provisioning operations which can be performed on this resource type",
"type": "object",
"properties": {
"create": {
"$ref": "#/definitions/handlerDefinition"
},
"read": {
"$ref": "#/definitions/handlerDefinition"
},
"update": {
"$ref": "#/definitions/handlerDefinition"
},
"delete": {
"$ref": "#/definitions/handlerDefinition"
},
"list": {
"$ref": "#/definitions/handlerDefinitionWithSchemaOverride"
}
},
"additionalProperties": false
},
"remote": {
"description": "Reserved for CloudFormation use. A namespace to inline remote schemas.",
"$ref": "base.definition.schema.v1.json#/properties/remote"
},
"readOnlyProperties": {
"description": "A list of JSON pointers to properties that are able to be found in a Read request but unable to be specified by the customer",
"$ref": "base.definition.schema.v1.json#/definitions/jsonPointerArray"
},
"writeOnlyProperties": {
"description": "A list of JSON pointers to properties (typically sensitive) that are able to be specified by the customer but unable to be returned in a Read request",
"$ref": "base.definition.schema.v1.json#/definitions/jsonPointerArray"
},
"conditionalCreateOnlyProperties": {
"description": "A list of JSON pointers for properties that can only be updated under certain conditions. For example, you can upgrade the engine version of an RDS DBInstance but you cannot downgrade it. When updating this property for a resource in a CloudFormation stack, the resource will be replaced if it cannot be updated.",
"$ref": "base.definition.schema.v1.json#/definitions/jsonPointerArray"
},
"nonPublicProperties": {
"description": "A list of JSON pointers for properties that are hidden. These properties will still be used but will not be visible",
"$ref": "base.definition.schema.v1.json#/definitions/jsonPointerArray"
},
"nonPublicDefinitions": {
"description": "A list of JSON pointers for definitions that are hidden. These definitions will still be used but will not be visible",
"$ref": "base.definition.schema.v1.json#/definitions/jsonPointerArray"
},
"createOnlyProperties": {
"description": "A list of JSON pointers to properties that are only able to be specified by the customer when creating a resource. Conversely, any property *not* in this list can be applied to an Update request.",
"$ref": "base.definition.schema.v1.json#/definitions/jsonPointerArray"
},
"deprecatedProperties": {
"description": "A list of JSON pointers to properties that have been deprecated by the underlying service provider. These properties are still accepted in create & update operations, however they may be ignored, or converted to a consistent model on application. Deprecated properties are not guaranteed to be present in read paths.",
"$ref": "base.definition.schema.v1.json#/definitions/jsonPointerArray"
},
"primaryIdentifier": {
"description": "A required identifier which uniquely identifies an instance of this resource type. An identifier is a non-zero-length list of JSON pointers to properties that form a single key. An identifier can be a single or multiple properties to support composite-key identifiers.",
"$ref": "base.definition.schema.v1.json#/definitions/jsonPointerArray"
},
"additionalIdentifiers": {
"description": "An optional list of supplementary identifiers, each of which uniquely identifies an instance of this resource type. An identifier is a non-zero-length list of JSON pointers to properties that form a single key. An identifier can be a single or multiple properties to support composite-key identifiers.",
"type": "array",
"minItems": 1,
"items": {
"$ref": "base.definition.schema.v1.json#/definitions/jsonPointerArray"
}
},
"required": {
"$ref": "base.definition.schema.v1.json#/properties/required"
},
"allOf": {
"$ref": "base.definition.schema.v1.json#/definitions/schemaArray"
},
"anyOf": {
"$ref": "base.definition.schema.v1.json#/definitions/schemaArray"
},
"oneOf": {
"$ref": "base.definition.schema.v1.json#/definitions/schemaArray"
},
"resourceLink": {
"description": "A template-able link to a resource instance. AWS-internal service links must be relative to the AWS console domain. External service links must be absolute, HTTPS URIs.",
"$ref": "#/definitions/resourceLink"
},
"propertyTransform": {
"description": "A map which allows resource owners to define a function for a property with possible transformation. This property helps ensure the input to the model is equal to output",
"type": "object",
"patternProperties": {
"^[A-Za-z0-9]{1,64}$": {
"type": "string"
}
}
},
"typeConfiguration": {
"description": "TypeConfiguration to set the configuration data for registry types. This configuration data is not passed through the resource properties in template. One of the possible use cases is configuring auth keys for 3P resource providers.",
"$ref": "provider.configuration.definition.schema.v1.json"
}
},
"required": [
"typeName",
"properties",
"description",
"primaryIdentifier",
"additionalProperties"
],
"additionalProperties": false
}