Definitions for @turbot/aws-appsync
appSync
Schema
{ "allOf": [ { "$ref": "turbot#/definitions/service" }, { "type": "object", "properties": { "name": { "const": "AppSync" }, "turbot": { "type": "object", "properties": { "akas": { "type": "array", "items": { "$ref": "#/definitions/appSyncAka" } }, "title": { "const": "AppSync" }, "metadata": { "type": "object", "properties": { "aws": { "$ref": "aws#/definitions/awsMetadata" } } } } } }, "additionalProperties": true, "tests": [ { "description": "Valid - all properties provided", "input": { "name": "AppSync", "turbot": { "akas": [ "arn:aws:appsync:us-east-1:560741234067" ], "title": "AppSync", "metadata": { "aws": { "accountId": 560741234067, "regionName": "us-east-1", "partition": "aws" } } } } }, { "description": "invalid - service provider name prefixed", "input": { "name": "AWS AppSync", "turbot": { "akas": [ "arn:aws:appsync:us-east-1:560741234067" ], "title": "AWS AppSync", "metadata": { "aws": { "accountId": 560741234067, "regionName": "us-east-1", "partition": "aws" } } } }, "expected": false } ] } ], ".turbot": { "uri": "tmod:@turbot/aws-appsync#/definitions/appSync", "modUri": "tmod:@turbot/aws-appsync" }}
appSyncAka
Schema
{ "type": "string", "pattern": "^arn:aws(-us-gov|-cn)?:appsync:[a-z]{2}(-gov)?-[a-z]+-[0-9]{1}:[0-9]{12}$", "tests": [ { "description": "Valid AWS Partition Non-Gov", "input": "arn:aws:appsync:us-east-1:560741234067" }, { "description": "Valid AWS Partition US Gov", "input": "arn:aws-us-gov:appsync:us-gov-east-1:560741234067" }, { "description": "Valid AWS Partition CHINA Gov", "input": "arn:aws-cn:appsync:cn-north-1:560741234067" }, { "description": "Invalid Service Name in the AKA", "input": "arn:aws:ds11:us-east-1:560741234067", "expected": false }, { "description": "Invalid Region Name in the AKA", "input": "arn:aws:appsync:us-easted-441:560741234067", "expected": false }, { "description": "Invalid Account Id in the AKA", "input": "arn:aws:appsync:us-east-1:12345678905512", "expected": false }, { "description": "Invalid AKA pattern", "input": "appsyncV2|us-east-1:560741234067", "expected": false }, { "description": "Invalid AWS partition name", "input": "arn:aws-eu:appsync:us-east-1:560741234067", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/aws-appsync#/definitions/appSyncAka", "modUri": "tmod:@turbot/aws-appsync" }}