Definitions for @turbot/aws-iot
iot
Schema
{ "allOf": [ { "$ref": "turbot#/definitions/service" }, { "type": "object", "properties": { "name": { "const": "IoT" }, "turbot": { "type": "object", "properties": { "akas": { "type": "array", "items": { "$ref": "#/definitions/iotAka" } }, "title": { "const": "IoT" }, "custom": { "type": "object", "properties": { "aws": { "$ref": "aws#/definitions/awsMetadata" } } } } } }, "required": [ "name", "turbot" ], "additionalProperties": true, "tests": [ { "description": "base", "input": { "name": "IoT", "turbot": { "akas": [ "arn:aws:iot:us-east-1:123456789012" ], "title": "IoT", "custom": { "aws": { "accountId": 123456789012, "regionName": "us-east-1", "partition": "aws" } } } } }, { "description": "invalid name", "input": { "name": "AWS IOT", "turbot": { "akas": [ "arn:aws:iot:us-east-1:123456789012" ], "title": "IoT", "custom": { "aws": { "accountId": 123456789012, "regionName": "us-east-1", "partition": "aws" } } } }, "expected": false } ] } ], ".turbot": { "uri": "tmod:@turbot/aws-iot#/definitions/iot", "modUri": "tmod:@turbot/aws-iot" }}
iotAka
Schema
{ "type": "string", "pattern": "^arn:aws(-us-gov|-cn)?:iot:[a-z]{2}(-gov)?-[a-z]+-[0-9]{1}:[0-9]{12}$", "tests": [ { "description": "base", "input": "arn:aws:iot:us-east-1:123123123123" }, { "description": "invalid service name", "input": "arn:aws:xyz:us-east-1:123123123123", "expected": false }, { "description": "invalid account id", "input": "arn:aws:ec2:us-east-1:123382743123123123", "expected": false }, { "description": "invalid region name", "input": "arn:aws:ec2:us-eastdk-74381:123123123123", "expected": false }, { "description": "invalid partition name", "input": "arn:aws-ed:ec2:us-eastdk-74381:123123123123", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/aws-iot#/definitions/iotAka", "modUri": "tmod:@turbot/aws-iot" }}