123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- {
- "$schema": "http://json-schema.org/draft-04/schema",
- "type": "object",
- "title": "O3DE AWS Resource mapping file schema",
- "required": ["AWSResourceMappings", "AccountId", "Region", "Version"],
- "properties": {
- "AWSResourceMappings": {
- "type": "object",
- "title": "AWS resource mappings schema",
- "patternProperties": {
- "^.+$": {
- "type": "object",
- "title": "AWS resource entry schema",
- "required": ["Type", "Name/ID"],
- "properties": {
- "Type": {
- "$ref": "#/NonEmptyString"
- },
- "Name/ID": {
- "$ref": "#/NonEmptyString"
- },
- "AccountId": {
- "$ref": "#/AccountIdString"
- },
- "Region": {
- "$ref": "#/RegionString"
- }
- }
- }
- },
- "additionalProperties": false
- },
- "AccountId": {
- "$ref": "#/AccountIdString"
- },
- "Region": {
- "$ref": "#/RegionString"
- },
- "Version": {
- "pattern": "^[0-9]{1}.[0-9]{1}.[0-9]{1}$"
- }
- },
- "AccountIdString": {
- "type": "string",
- "pattern": "^[0-9]{12}$|EMPTY|^$"
- },
- "NonEmptyString": {
- "type": "string",
- "minLength": 1
- },
- "RegionString": {
- "type": "string",
- "pattern": "^[a-z]{2}-[a-z]{4,9}-[0-9]{1}$"
- },
- "additionalProperties": false
- }
|