Definitions for @turbot/aws-lex

lex

{
"allOf": [
{
"$ref": "turbot#/definitions/service"
},
{
"type": "object",
"properties": {
"name": {
"const": "Lex"
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/lexAka"
}
},
"title": {
"const": "Lex"
},
"custom": {
"type": "object",
"properties": {
"aws": {
"$ref": "aws#/definitions/awsMetadata"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "Valid - all properties provided",
"input": {
"name": "Lex",
"turbot": {
"akas": [
"arn:aws:lex:us-east-1:123456789012"
],
"title": "Lex",
"custom": {
"aws": {
"accountId": 123456789012
}
}
}
}
},
{
"description": "invalid - service provider name prefixed",
"input": {
"name": "AWS Lex",
"turbot": {
"akas": [
"arn:aws:lex:us-east-1:123456789012"
],
"title": "AWS Lex",
"custom": {
"aws": {
"accountId": 123456789012
}
}
}
},
"expected": false
}
]
}
],
".turbot": {
"uri": "tmod:@turbot/aws-lex#/definitions/lex",
"modUri": "tmod:@turbot/aws-lex"
}
}

lexAka

{
"type": "string",
"pattern": "^arn:aws(-us-gov|-cn)?:lex:[a-z]{2}(-gov)?-[a-z]+-[0-9]{1}:[0-9]{12}$",
"tests": [
{
"description": "base",
"input": "arn:aws:lex:us-east-1:123123123123"
},
{
"description": "Invalid - service name not valid",
"input": "arn:aws:datasync111:us-east-1:123123123123",
"expected": false
},
{
"description": "Invalid - account id is not valid",
"input": "arn:aws:lex:us-east-1:123382743123123123",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-lex#/definitions/lexAka",
"modUri": "tmod:@turbot/aws-lex"
}
}