Definitions for @turbot/aws-serverlessapplicationrepository

serverlessApplicationRepository

{
"allOf": [
{
"$ref": "turbot#/definitions/service"
},
{
"type": "object",
"properties": {
"name": {
"const": "Serverless Application Repository"
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/serverlessApplicationRepositoryAka"
}
},
"title": {
"const": "Serverless Application Repository"
},
"custom": {
"type": "object",
"properties": {
"aws": {
"$ref": "aws#/definitions/awsMetadata"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "All data are valid",
"input": {
"name": "Serverless Application Repository",
"turbot": {
"akas": [
"arn:aws:serverlessrepo:us-east-1:560741234067"
],
"title": "Serverless Application Repository",
"custom": {
"aws": {
"accountId": 560741234067,
"regionName": "us-east-1",
"partition": "aws"
}
}
}
}
},
{
"description": "Invalid - Service Name is not correct",
"input": {
"name": "AWS SAR",
"turbot": {
"akas": [
"arn:aws:serverlessrepo:us-east-1:560741234067"
],
"title": "Serverless Application Repository",
"custom": {
"aws": {
"accountId": 560741234067,
"regionName": "us-east-1",
"partition": "aws"
}
}
}
},
"expected": false
}
]
}
],
".turbot": {
"uri": "tmod:@turbot/aws-serverlessapplicationrepository#/definitions/serverlessApplicationRepository",
"modUri": "tmod:@turbot/aws-serverlessapplicationrepository"
}
}

serverlessApplicationRepositoryAka

{
"type": "string",
"pattern": "^arn:aws(-us-gov|-cn)?:serverlessrepo:[a-z]{2}(-gov)?-[a-z]+-[0-9]{1}:[0-9]{12}$",
"tests": [
{
"description": "Valid AWS Partition Non-Gov",
"input": "arn:aws:serverlessrepo:us-east-1:560741234067"
},
{
"description": "Valid AWS Partition US Gov",
"input": "arn:aws-us-gov:serverlessrepo:us-gov-west-1:560741234067"
},
{
"description": "Valid AWS Partition CHINA Gov",
"input": "arn:aws-cn:serverlessrepo:cn-north-1:560741234067"
},
{
"description": "Invalid Service Name in the AKA",
"input": "arn:aws:ds11:us-east-1:560741234067",
"expected": false
},
{
"description": "Invalid Region Name in the AKA",
"input": "arn:aws:serverlessrepo:us-easted-441:560741234067",
"expected": false
},
{
"description": "Invalid Account Id in the AKA",
"input": "arn:aws:serverlessrepo:us-east-1:12345678905512",
"expected": false
},
{
"description": "Invalid AKA pattern",
"input": "serverlessrepoV2|us-east-1:560741234067",
"expected": false
},
{
"description": "Invalid AWS partition name",
"input": "arn:aws-eu:serverlessrepo:us-east-1:560741234067",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-serverlessapplicationrepository#/definitions/serverlessApplicationRepositoryAka",
"modUri": "tmod:@turbot/aws-serverlessapplicationrepository"
}
}