Definitions for @turbot/aws-iotevents

iotEvents

{
"allOf": [
{
"$ref": "turbot#/definitions/service"
},
{
"type": "object",
"properties": {
"name": {
"const": "IoT Events"
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/iotEventsAka"
}
},
"title": {
"const": "IoT Events"
},
"custom": {
"type": "object",
"properties": {
"aws": {
"$ref": "aws#/definitions/awsMetadata"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "All data are valid",
"input": {
"name": "IoT Events",
"turbot": {
"akas": [
"arn:aws:iotevents:us-east-1:123123123123"
],
"title": "IoT Events",
"custom": {
"aws": {
"accountId": 123456789012
}
}
}
}
},
{
"description": "Invalid - Name does not match",
"input": {
"name": "IoT Events",
"turbot": {
"akas": [
"arn:aws:iotevents:us-east-1:123456789012"
],
"title": "IoT Events",
"custom": {
"aws": {
"accountId": 123456789012
}
}
}
},
"expected": false
}
]
}
],
".turbot": {
"uri": "tmod:@turbot/aws-iotevents#/definitions/iotEvents",
"modUri": "tmod:@turbot/aws-iotevents"
}
}

iotEventsAka

{
"type": "string",
"pattern": "^arn:aws(-us-gov|-cn)?:iotevents:[a-z]{2}(-gov)?-[a-z]+-[0-9]{1}:[0-9]{12}$",
"tests": [
{
"description": "base",
"input": "arn:aws:iotevents:us-east-1:123123123123"
},
{
"description": "invalid service name",
"input": "arn:aws:appflioteventsow:us-east-1:123123123123",
"expected": false
},
{
"description": "invalid region name",
"input": "arn:aws:iotevents:us-eastdk-74381:123456786354",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-iotevents#/definitions/iotEventsAka",
"modUri": "tmod:@turbot/aws-iotevents"
}
}