Definitions for @turbot/aws-artifact

artifact

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

artifactServiceAka

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