Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 59 additions & 1 deletion src/rpdk/core/data/schema/provider.definition.schema.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,57 @@
"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",
Expand Down Expand Up @@ -145,6 +196,13 @@
"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": [
Expand Down Expand Up @@ -183,7 +241,7 @@
"$ref": "#/definitions/handlerDefinition"
},
"list": {
"$ref": "#/definitions/handlerDefinition"
"$ref": "#/definitions/handlerDefinitionWithSchemaOverride"
}
},
"additionalProperties": false
Expand Down