Definitions for @turbot/aws-appmesh

appMesh

{
"allOf": [
{
"$ref": "turbot#/definitions/service",
"type": "object",
"properties": {
"name": {
"const": "App Mesh"
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/appMeshAka"
}
},
"title": {
"const": "App Mesh"
},
"custom": {
"type": "object",
"properties": {
"aws": {
"$ref": "aws#/definitions/awsMetadata"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "All valid properties",
"input": {
"name": "App Mesh",
"turbot": {
"akas": [
"arn:aws:appmesh:us-east-1:123123123123"
],
"title": "App Mesh",
"custom": {
"aws": {
"accountId": 123456789012,
"regionName": "us-east-1"
}
}
}
}
}
]
}
],
".turbot": {
"uri": "tmod:@turbot/aws-appmesh#/definitions/appMesh",
"modUri": "tmod:@turbot/aws-appmesh"
}
}

appMeshAka

{
"type": "string",
"pattern": "^arn:aws(-us-gov|-cn)?:appmesh:[a-z]{2}(-gov)?-[a-z]+-[0-9]{1}:[0-9]{12}$",
"tests": [
{
"description": "base",
"input": "arn:aws:appmesh:us-east-1:123123123123"
},
{
"description": "invalid aka",
"input": "arn:aws:appMesh1:us-east-1:123123123123",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-appmesh#/definitions/appMeshAka",
"modUri": "tmod:@turbot/aws-appmesh"
}
}

appMeshSupportedRegions

{
"type": "array",
"items": {
"$ref": "#/definitions/regionName"
},
"minItems": 1,
"example": [
[
"us-east-1",
"us-west-2"
]
],
"default": [
"eu-west-1",
"us-east-1",
"us-east-2",
"us-west-2"
],
"tests": [
{
"description": "one region",
"input": [
"us-east-1"
]
},
{
"description": "all supported regions",
"input": [
"us-east-1",
"us-east-2",
"eu-west-1",
"us-west-2"
]
},
{
"description": "invalid - no regions",
"input": [],
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-appmesh#/definitions/appMeshSupportedRegions",
"modUri": "tmod:@turbot/aws-appmesh"
}
}

mesh

{
"type": "object",
"properties": {
"meshName": {
"$ref": "#/definitions/name"
},
"arn": {
"$ref": "#/definitions/meshAka"
},
"status": {
"$ref": "#/definitions/status"
},
"createdAt": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"lastUpdatedAt": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"spec": {
"type": "object"
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "string",
"items": {
"$ref": "#/definitions/meshAka"
}
},
"title": {
"$ref": "#/definitions/name"
},
"custom": {
"type": "object",
"properties": {
"aws": {
"$ref": "aws#/definitions/awsMetadata"
},
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "Valid - All properties",
"input": {
"meshName": "test01",
"status": "Active",
"arn": "arn:aws:appmesh:us-east-2:560741234067:mesh/appmesh-mesh-useast2-test01",
"turbot": {
"akas": "arn:aws:appmesh:us-east-2:560741234067:mesh/appmesh-mesh-useast2-test01",
"title": "test_01",
"custom": {
"aws": {
"accountId": 560741234067,
"regionName": "us-east-2"
}
}
}
}
}
],
".turbot": {
"uri": "tmod:@turbot/aws-appmesh#/definitions/mesh",
"modUri": "tmod:@turbot/aws-appmesh"
}
}

meshAka

{
"type": "string",
"pattern": "^arn:aws(-us-gov|-cn)?:appmesh:[a-z]{2}(-gov)?-[a-z]+-[0-9]{1}:[0-9]{12}:mesh/[a-zA-Z0-9-_]{1,255}$",
"tests": [
{
"description": "Valid - Base case",
"input": "arn:aws:appmesh:us-east-2:560741234067:mesh/appmesh-mesh-useast2-test01"
},
{
"description": "Invalid - Malformed region name",
"input": "arn:aws:appmesh:use-east-1:560741234067:mesh/appmesh-mesh-useast1-test01",
"expected": false
},
{
"description": "Invalid - Malformed account ID",
"input": "arn:aws:appmesh:us-east-2:123442:mesh/appmesh-mesh-useast2-test01",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-appmesh#/definitions/meshAka",
"modUri": "tmod:@turbot/aws-appmesh"
}
}

name

{
"type": "string",
"pattern": "^[a-zA-Z0-9-_]{1,255}$",
"tests": [
{
"input": "test01"
},
{
"description": "invalid - special characters dollar, hash, asterisk, ampersand, cap, percentile not allowed",
"input": "test$#*&^%",
"expected": false
},
{
"description": "invalid - empty string passed",
"input": "",
"expected": false
},
{
"description": "invalid - max length exceeded",
"input": "test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01test01",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-appmesh#/definitions/name",
"modUri": "tmod:@turbot/aws-appmesh"
}
}

regionName

{
"type": "string",
"enum": [
"eu-west-1",
"us-east-1",
"us-east-2",
"us-west-2"
],
"tests": [
{
"input": "us-east-1"
},
{
"description": "invalid - usea1",
"input": "usea1",
"expected": false
},
{
"description": "invalid - au-north-1",
"input": "au-north-1",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-appmesh#/definitions/regionName",
"modUri": "tmod:@turbot/aws-appmesh"
}
}

status

{
"type": "string",
"enum": [
"Active",
"Deleted",
"Inactive"
],
"tests": [
{
"input": "Active"
},
{
"description": "invalid - wrong value passed",
"input": "testing",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-appmesh#/definitions/status",
"modUri": "tmod:@turbot/aws-appmesh"
}
}