Definitions for @turbot/aws-elasticbeanstalk
- application
- applicationArn
- applicationName
- elasticBeanstalk
- elasticBeanstalkAka
- elasticBeanstalkSupportedRegions
- environment
- environmentAka
- environmentArn
- environmentName
- environmentStatus
- regionName
application
Schema
{ "type": "object", "properties": { "ApplicationName": { "$ref": "#/definitions/applicationName" }, "ApplicationArn": { "$ref": "#/definitions/applicationArn" }, "Tags": { "$ref": "aws#/definitions/tagList" }, "Description": { "type": "string" }, "DateCreated": { "$ref": "turbot#/definitions/isoTimestamp" }, "DateUpdated": { "$ref": "turbot#/definitions/isoTimestamp" }, "Versions": { "type": "array" }, "ConfigurationTemplates": { "type": "array" }, "ResourceLifecycleConfig": { "type": "object" }, "turbot": { "type": "object", "properties": { "akas": { "type": "array", "items": { "$ref": "#/definitions/applicationArn" } }, "tags": { "$ref": "aws#/definitions/tagsMap" }, "title": { "$ref": "#/definitions/applicationName" }, "custom": { "type": "object", "properties": { "aws": { "$ref": "aws#/definitions/awsMetadata" }, "createTimestamp": { "$ref": "turbot#/definitions/isoTimestamp" }, "lastUsedTimestamp": { "$ref": "turbot#/definitions/isoTimestamp" } } } } } }, "additionalProperties": true, "tests": [ { "descriprion": "Valid - All properties", "input": { "ApplicationName": "test01", "Description": "testing", "DateCreated": "2019-05-21T17:26:18.575Z", "DateUpdated": "2019-05-21T17:26:18.575Z", "Versions": [], "ConfigurationTemplates": [], "ResourceLifecycleConfig": { "VersionLifecycleConfig": { "MaxCountRule": { "Enabled": false, "MaxCount": 200, "DeleteSourceFromS3": false }, "MaxAgeRule": { "Enabled": false, "MaxAgeInDays": 180, "DeleteSourceFromS3": false } } }, "ApplicationArn": "arn:aws:elasticbeanstalk:us-west-2:492552618977:application/test01", "Tags": [ { "Key": "App", "Value": "Facebook" }, { "Key": "Env", "Value": "Test" } ], "turbot": { "akas": [ "arn:aws:elasticbeanstalk:us-west-2:492552618977:application/test01" ], "tags": { "Env": "Test", "App": "Facebook" }, "title": "test01", "custom": { "aws": { "accountId": 123456789012, "regionName": "us-east-1" } } } } } ], ".turbot": { "uri": "tmod:@turbot/aws-elasticbeanstalk#/definitions/application", "modUri": "tmod:@turbot/aws-elasticbeanstalk" }}
applicationArn
Schema
{ "type": "string", "pattern": "^arn:aws(-us-gov|-cn)?:elasticbeanstalk:[a-z]{2}(-gov)?-[a-z]+-[0-9]:[0-9]{12}:application/[^/]{1,100}$", "tests": [ { "input": "arn:aws:elasticbeanstalk:us-west-2:492552618977:application/hello@there" }, { "description": "invalid - name cannot contain forward slash", "input": "arn:aws:elasticbeanstalk:us-west-2:492552618977:application/test/01", "expected": false }, { "description": "invalid - arn should start with arn:aws:elasticbeanstalk", "input": "arn:aws:beans:us-west-2:492552618977:application/test01", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/aws-elasticbeanstalk#/definitions/applicationArn", "modUri": "tmod:@turbot/aws-elasticbeanstalk" }}
applicationName
Schema
{ "type": "string", "pattern": "^[^/]{1,100}$", "tests": [ { "input": "test-Me-please-012345" }, { "description": "using special characters at, dollar, hash, asterisk, exclamation", "input": "Thi$@is#awesome*yeah!" }, { "description": "max length", "input": "a1234567890_a1234567890_a1234567890_a1234567890_a1234567890_a1234567890_a1234567890_a1234567890_a123" }, { "description": "invalid - too long", "input": "a1234567890_a1234567890_a1234567890_a1234567890_a1234567890_a1234567890_a1234567890_a1234567890_a1234567890", "expected": false }, { "description": "invalid - empty string", "input": "", "expected": false }, { "description": "invalid - name cannot contain forward slash", "input": "test/01", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/aws-elasticbeanstalk#/definitions/applicationName", "modUri": "tmod:@turbot/aws-elasticbeanstalk" }}
elasticBeanstalk
Schema
{ "allOf": [ { "$ref": "turbot#/definitions/service" }, { "type": "object", "properties": { "name": { "const": "Elastic Beanstalk" }, "turbot": { "type": "object", "properties": { "akas": { "type": "array", "items": { "$ref": "#/definitions/elasticBeanstalkAka" } }, "title": { "const": "Elastic Beanstalk" }, "custom": { "type": "object", "properties": { "aws": { "$ref": "aws#/definitions/awsMetadata" } } } } } }, "required": [ "name", "turbot" ], "additionalProperties": true, "tests": [ { "description": "Valid - base case", "input": { "name": "Elastic Beanstalk", "turbot": { "akas": [ "arn:aws:elasticbeanstalk:us-east-1:123456789012" ], "title": "Elastic Beanstalk", "custom": { "aws": { "accountId": 123456789012, "regionName": "us-east-1" } } } } }, { "description": "Invalid - name is wrong", "input": { "name": "elasticcomputecloud", "turbot": null, "akas": [ "arn:aws:elasticbeanstalk:us-east-1:123456789012" ], "title": "Elastic Beanstalk", "custom": { "aws": { "accountId": 123456789012, "regionName": "us-east-1" } } }, "expected": false }, { "description": "Invalid - Service name missing", "input": { "turbot": null, "akas": [ "arn:aws:elasticbeanstalk:us-east-1:123456789012" ], "title": "Elastic Beanstalk", "custom": { "aws": { "accountId": 123456789012, "regionName": "us-east-1" } } }, "expected": false } ] } ], ".turbot": { "uri": "tmod:@turbot/aws-elasticbeanstalk#/definitions/elasticBeanstalk", "modUri": "tmod:@turbot/aws-elasticbeanstalk" }}
elasticBeanstalkAka
Schema
{ "type": "string", "pattern": "^arn:aws:elasticbeanstalk:[a-z]{2}-[a-z]+-[0-9]{1}:[0-9]{12}$", "tests": [ { "description": "base", "input": "arn:aws:elasticbeanstalk:us-east-1:123123123123" }, { "description": "invalid service name", "input": "arn:aws:xyz:us-east-1:123123123123", "expected": false }, { "description": "invalid account id", "input": "arn:aws:elasticbeanstalk:us-east-1:123382743123123123", "expected": false }, { "description": "invalid region name", "input": "arn:aws:elasticbeanstalk:us-eastdk-74381:123123123123", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/aws-elasticbeanstalk#/definitions/elasticBeanstalkAka", "modUri": "tmod:@turbot/aws-elasticbeanstalk" }}
elasticBeanstalkSupportedRegions
Schema
{ "type": "array", "items": { "$ref": "#/definitions/regionName" }, "minItems": 1, "example": [ [ "us-east-2", "us-east-1" ] ], "default": [ "ap-northeast-1", "ap-northeast-2", "ap-northeast-3", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "cn-northwest-1", "eu-central-1", "eu-west-1", "eu-west-2", "eu-west-3", "sa-east-1", "us-east-1", "us-east-2", "us-west-1", "us-west-2" ], "tests": [ { "description": "one region", "input": [ "us-east-1" ] }, { "description": "all supported regions", "input": [ "ap-northeast-1", "ap-northeast-2", "ap-northeast-3", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "cn-northwest-1", "eu-central-1", "eu-west-1", "eu-west-2", "eu-west-3", "sa-east-1", "us-east-1", "us-east-2", "us-west-1", "us-west-2" ] }, { "description": "invalid - no regions", "input": [], "expected": false } ], ".turbot": { "uri": "tmod:@turbot/aws-elasticbeanstalk#/definitions/elasticBeanstalkSupportedRegions", "modUri": "tmod:@turbot/aws-elasticbeanstalk" }}
environment
Schema
{ "type": "object", "properties": { "ApplicationName": { "$ref": "#/definitions/applicationName" }, "EnvironmentName": { "$ref": "#/definitions/environmentName" }, "EnvironmentArn": { "$ref": "#/definitions/environmentArn" }, "lastUsedTimestamp": { "$ref": "turbot#/definitions/isoTimestamp" }, "Status": { "$ref": "#/definitions/environmentStatus" }, "VersionLabel": { "type": "string" }, "IncludeDeleted": { "type": "boolean" }, "ResourceTags": { "$ref": "aws#/definitions/tagList" }, "DateCreated": { "$ref": "turbot#/definitions/isoTimestamp" }, "DateUpdated": { "$ref": "turbot#/definitions/isoTimestamp" }, "turbot": { "type": "object", "properties": { "akas": { "type": "array", "items": { "$ref": "#/definitions/environmentAka" } }, "title": { "$ref": "#/definitions/environmentName" }, "tags": { "$ref": "aws#/definitions/tagsMap" }, "custom": { "type": "object", "properties": { "aws": { "$ref": "aws#/definitions/awsMetadata" }, "createTimestamp": { "$ref": "turbot#/definitions/isoTimestamp" }, "lastUsedTimestamp": { "$ref": "turbot#/definitions/isoTimestamp" } } } } } }, "additionalProperties": true, "tests": [ { "description": "Valid - All properties", "input": { "ApplicationName": "MyApp", "EnvironmentArn": "arn:aws:elasticbeanstalk:us-west-2:492552618977:environment/MyApp/MyEnvironment", "VersionLabel": "Sample Application", "DateCreated": "2019-06-26T08:56:46.084Z", "DateUpdated": "2019-06-26T10:45:54.936Z", "Status": "Ready", "turbot": { "akas": [ "arn:aws:elasticbeanstalk:us-west-2:492552618977:environment/MyApp/MyEnvironment" ], "title": "MyEnvironment", "custom": { "aws": { "accountId": 123456789012, "regionName": "us-west-2" } } } } }, { "description": "Invalid - Missing Application Name", "input": { "EnvironmentArn": "arn:aws:elasticbeanstalk:us-west-2:492552618977:environment/MyApp/MyEnvironment", "turbot": { "akas": [ "arn:aws:elasticbeanstalk:us-west-2:492552618977:environment/MyApp/MyEnvironment" ], "custom": { "aws": { "accountId": 123456789012, "regionName": "us-west-2" } } } } }, { "description": "Invalid - Missing turbot data", "input": { "ApplicationName": "MyEnvironment", "EnvironmentArn": "arn:aws:elasticbeanstalk:us-west-2:492552618977:environment/MyApp/MyEnvironment" } } ], ".turbot": { "uri": "tmod:@turbot/aws-elasticbeanstalk#/definitions/environment", "modUri": "tmod:@turbot/aws-elasticbeanstalk" }}
environmentAka
Schema
{ "type": "string", "pattern": "^arn:aws(-us-gov|-cn)?:elasticbeanstalk:[a-z]{2}(-gov)?-[a-z]+-[0-9]:[0-9]{12}:environment/[^/]{1,100}/[^/]{1,100}", "tests": [ { "description": "Valid - Base case", "input": "arn:aws:elasticbeanstalk:us-west-2:492552618977:environment/MyApp/hello@there" }, { "description": "Invalid - Malformed resource collection", "input": "arn:aws:elasticbeanstalk:us-west-2:492552618977:environments/MyApp/hello@there", "expected": false }, { "description": "Invalid - Malformed region name", "input": "arn:aws:elasticbeanstalk:us-west:492552618977:environment/MyApp/hello@there", "expected": false }, { "description": "Invalid - Malformed account ID", "input": "arn:aws:elasticbeanstalk:us-west-2:1234:environment/MyApp/hello@there", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/aws-elasticbeanstalk#/definitions/environmentAka", "modUri": "tmod:@turbot/aws-elasticbeanstalk" }}
environmentArn
Schema
{ "type": "string", "pattern": "^arn:aws:elasticbeanstalk:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-[0-9]{1}:[0-9]{12}:environment/[^/]{1,100}/[^/]{1,100}$", "tests": [ { "input": "arn:aws:elasticbeanstalk:us-west-2:492552618977:environment/MyApp/hello@there" }, { "description": "invalid - name cannot contain forward slash", "input": "arn:aws:elasticbeanstalk:us-west-2:492552618977:environment/MyApp/test/01", "expected": false }, { "description": "invalid - arn should start with arn:aws:elasticbeanstalk", "input": "arn:aws:beans:us-west-2:492552618977:environment/MyApp/MyEnvironment", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/aws-elasticbeanstalk#/definitions/environmentArn", "modUri": "tmod:@turbot/aws-elasticbeanstalk" }}
environmentName
Schema
{ "type": "string", "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]$", "tests": [ { "input": "test-Me-please-012345" }, { "description": "invalid- should not contain special characters", "input": "Thi$@is#awesome*yeah!", "expected": false }, { "description": "invalid - atleast 4 characters", "input": "Ab", "expected": false }, { "description": "invalid - name cannot contain forward slash", "input": "test/01", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/aws-elasticbeanstalk#/definitions/environmentName", "modUri": "tmod:@turbot/aws-elasticbeanstalk" }}
environmentStatus
Schema
{ "type": "string", "enum": [ "Launching", "Updating", "Ready", "Terminating", "Terminated" ], "tests": [ { "input": "Updating" }, { "input": "Ready" }, { "description": "invalid - not listed in options", "input": "Reactive", "expected": false }, { "description": "invalid - null value", "input": null, "expected": false } ], ".turbot": { "uri": "tmod:@turbot/aws-elasticbeanstalk#/definitions/environmentStatus", "modUri": "tmod:@turbot/aws-elasticbeanstalk" }}
regionName
Schema
{ "type": "string", "enum": [ "ap-northeast-1", "ap-northeast-2", "ap-northeast-3", "ap-south-1", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "cn-northwest-1", "eu-central-1", "eu-west-1", "eu-west-2", "eu-west-3", "sa-east-1", "us-east-1", "us-east-2", "us-west-1", "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-elasticbeanstalk#/definitions/regionName", "modUri": "tmod:@turbot/aws-elasticbeanstalk" }}