Definitions for @turbot/aws-datapipeline

dataPipeline

{
"allOf": [
{
"$ref": "turbot#/definitions/service"
},
{
"type": "object",
"properties": {
"name": {
"const": "Data Pipeline"
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/dataPipelineAka"
}
},
"title": {
"const": "Data Pipeline"
},
"custom": {
"type": "object",
"properties": {
"aws": {
"$ref": "aws#/definitions/awsMetadata"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "All data are valid",
"input": {
"name": "Data Pipeline",
"turbot": {
"akas": [
"arn:aws:datapipeline:us-east-1:123456789012"
],
"title": "Data Pipeline",
"custom": {
"aws": {
"accountId": 123456789012
}
}
}
}
},
{
"description": "Invalid - Name does not match",
"input": {
"name": "DATA PIPELINE",
"turbot": {
"akas": [
"arn:aws:datapipeline:us-east-1:123456789012"
],
"title": "Data Pipeline",
"custom": {
"aws": {
"accountId": 123456789012
}
}
}
},
"expected": false
}
]
}
],
".turbot": {
"uri": "tmod:@turbot/aws-datapipeline#/definitions/dataPipeline",
"modUri": "tmod:@turbot/aws-datapipeline"
}
}

dataPipelineAka

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

pipeline

{
"type": "object",
"properties": {
"id": {
"$ref": "#/definitions/pipelineId"
},
"pipelineId": {
"$ref": "#/definitions/pipelineId"
},
"name": {
"$ref": "#/definitions/pipelineName"
},
"fields": {
"type": "array"
},
"description": {
"type": "string"
},
"tags": {
"$ref": "aws#/definitions/tagList"
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/pipelineArn"
}
},
"tags": {
"$ref": "aws#/definitions/tagsMap"
},
"title": {
"$ref": "#/definitions/pipelineName"
},
"custom": {
"type": "object",
"properties": {
"aws": {
"$ref": "aws#/definitions/awsMetadata"
},
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "Valid - All properties",
"input": {
"id": "df-0939053233TGFWGK7JA0",
"name": "test-pipeline",
"description": "Test description",
"turbot": {
"tags": {
"Env": "Test"
},
"title": "df-0939053233TGFWGK7JA0",
"custom": {
"aws": {
"accountId": 123456789012,
"regionName": "us-east-1"
}
}
}
}
}
],
".turbot": {
"uri": "tmod:@turbot/aws-datapipeline#/definitions/pipeline",
"modUri": "tmod:@turbot/aws-datapipeline"
}
}

pipelineArn

{
"type": "string",
"pattern": "^arn:aws(-us-gov|-cn)?:datapipeline:[a-z]{2}(-gov)?-[a-z]+-\\d{1}:\\d{12}:pipeline\\/([a-zA-Z0-9-]{1,1024})$",
"tests": [
{
"input": "arn:aws:datapipeline:us-east-1:123456789012:pipeline/df-0939053233TGFWGK7JA0"
},
{
"description": "invalid - incorrect arn inserted",
"input": 12345,
"expected": false
},
{
"description": "invalid - empty string inserted",
"input": "",
"expected": false
},
{
"description": "invalid - incorrect service inserted",
"input": "arn:aws:acm:us-east-1:123456789012/12345678-1234-1234-1234-123456789012/myApp",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-datapipeline#/definitions/pipelineArn",
"modUri": "tmod:@turbot/aws-datapipeline"
}
}

pipelineId

{
"type": "string",
"pattern": "^([a-zA-Z0-9-]{1,1024})$",
"minLength": 1,
"maxLength": 1024,
"tests": [
{
"input": "df-0939053233TGFWGK7JA0"
},
{
"description": "invalid - empty string inserted",
"input": "",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-datapipeline#/definitions/pipelineId",
"modUri": "tmod:@turbot/aws-datapipeline"
}
}

pipelineName

{
"type": "string",
"pattern": "^(.){1,1024}$",
"minLength": 1,
"maxLength": 1024,
"tests": [
{
"input": "test-01"
},
{
"description": "invalid - empty string inserted",
"input": "",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-datapipeline#/definitions/pipelineName",
"modUri": "tmod:@turbot/aws-datapipeline"
}
}