Definitions for @turbot/aws-codestar

codeStar

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

codeStarAka

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