Definitions for @turbot/aws-codewhisperer

codeWhisperer

{
"allOf": [
{
"$ref": "turbot#/definitions/service"
},
{
"type": "object",
"properties": {
"name": {
"const": "CodeWhisperer"
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/codeWhispererAka"
}
},
"title": {
"const": "CodeWhisperer"
},
"custom": {
"type": "object",
"properties": {
"aws": {
"$ref": "aws#/definitions/awsMetadata"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "All data are valid",
"input": {
"name": "CodeWhisperer",
"turbot": {
"akas": [
"arn:aws:codewhisperer:us-east-1:123456789012"
],
"title": "CodeWhisperer",
"custom": {
"aws": {
"accountId": 123456789012
}
}
}
}
}
]
}
],
".turbot": {
"uri": "tmod:@turbot/aws-codewhisperer#/definitions/codeWhisperer",
"modUri": "tmod:@turbot/aws-codewhisperer"
}
}

codeWhispererAka

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