Definitions for @turbot/aws-eks
amiType
Schema
{ "type": "string", "enum": [ "AL2_x86_64", "AL2_x86_64_GPU" ], ".turbot": { "uri": "tmod:@turbot/aws-eks#/definitions/amiType", "modUri": "tmod:@turbot/aws-eks" }}
cluster
Schema
{ "type": "object", "properties": { "name": { "$ref": "#/definitions/clusterName" }, "arn": { "$ref": "#/definitions/clusterArn" }, "status": { "$ref": "#/definitions/clusterStatus" }, "createdAt": { "type": "string" }, "version": { "type": "string" }, "endpoint": { "type": "string" }, "roleArn": { "type": "string" }, "resourcesVpcConfig": { "type": "object" }, "resourceArn": { "type": "string" }, "logging": { "type": "object" }, "identity": { "type": "object" }, "certificateAuthority": { "type": "object" }, "clientRequestToken": { "type": "string" }, "platformVersion": { "type": "string" }, "tags": { "type": "object" }, "turbot": { "type": "object", "properties": { "akas": { "type": "array", "items": { "$ref": "#/definitions/clusterArn" } }, "title": { "$ref": "#/definitions/clusterName" }, "custom": { "type": "object", "properties": { "aws": { "$ref": "aws#/definitions/awsMetadata" }, "createTimestamp": { "$ref": "turbot#/definitions/isoTimestamp" } } } } } }, "additionalProperties": true, "tests": [ { "descriprion": "Valid - All properties", "input": { "name": "test", "arn": "arn:aws:eks:us-east-1:012345678910:cluster/test", "turbot": { "akas": [ "arn:aws:eks:us-east-1:012345678910:cluster/test" ], "title": "test", "custom": { "aws": { "accountId": 123456789012, "regionName": "us-east-1" } } } } }, { "description": "Invalid - Missing turbot data", "input": { "name": "test", "arn": "arn:aws:eks:us-east-1:012345678910:cluster/test" } }, { "description": "Invalid - Missing name", "input": { "arn": "arn:aws:eks:us-east-1:012345678910:cluster/test", "turbot": { "akas": [ "arn:aws:eks:us-east-1:012345678910:cluster/test" ], "title": "test", "custom": { "aws": { "accountId": 123456789012, "regionName": "us-east-1" } } } } } ], ".turbot": { "uri": "tmod:@turbot/aws-eks#/definitions/cluster", "modUri": "tmod:@turbot/aws-eks" }}
clusterArn
Schema
{ "type": "string", "pattern": "^arn:aws(-us-gov|-cn)?:eks:[a-z]{2}(-gov)?-[a-z]+-[0-9]{1}:[0-9]{12}:cluster/[a-zA-Z0-9_-]{1,100}$", "tests": [ { "input": "arn:aws-us-gov:eks:us-east-1:012345678910:cluster/test02" }, { "description": "invalid - aws account id incorrect", "input": "arn:aws:eks:us-east-1:0123456789101:cluster/test02", "expected": false }, { "description": "invalid - service name is missing", "input": "arn:aws:us-east-1:012345678910:cluster/test02", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/aws-eks#/definitions/clusterArn", "modUri": "tmod:@turbot/aws-eks" }}
clusterName
Schema
{ "type": "string", "pattern": "^[a-zA-Z0-9_-]{1,100}$", "tests": [ { "input": "test01-_" }, { "description": "invalid - no white space in cluster name", "input": "123 cluster", "expected": false }, { "description": "invalid - cannot contain exclamation character", "input": "a!!aa52617", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/aws-eks#/definitions/clusterName", "modUri": "tmod:@turbot/aws-eks" }}
clusterStatus
Schema
{ "type": "string", "enum": [ "CREATING", "ACTIVE", "DELETING", "FAILED", "UPDATING" ], "tests": [ { "input": "CREATING" }, { "input": "PENDING", "expected": false }, { "description": "invalid - not listed in options", "input": "reactive", "expected": false }, { "description": "invalid - null value", "input": null, "expected": false }, { "description": "invalid - status in lower case", "input": "active", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/aws-eks#/definitions/clusterStatus", "modUri": "tmod:@turbot/aws-eks" }}
eks
Schema
{ "allOf": [ { "$ref": "turbot#/definitions/service" }, { "type": "object", "properties": { "name": { "const": "EKS" }, "turbot": { "type": "object", "properties": { "akas": { "type": "array", "items": { "$ref": "#/definitions/eksAka" } }, "title": { "const": "EKS" }, "custom": { "type": "object", "properties": { "aws": { "$ref": "aws#/definitions/awsMetadata" } } } } } }, "additionalProperties": true, "tests": [ { "description": "Valid - All properties", "input": { "name": "EKS", "turbot": { "akas": [ "arn:aws:eks:us-east-1:123456789012" ], "title": "EKS", "custom": { "aws": { "accountId": 123456789012, "regionName": "us-east-1", "partition": "aws" } } } } } ] } ], ".turbot": { "uri": "tmod:@turbot/aws-eks#/definitions/eks", "modUri": "tmod:@turbot/aws-eks" }}
eksAka
Schema
{ "type": "string", "pattern": "^arn:aws(-us-gov|-cn)?:eks:[a-z]{2}(-gov)?-[a-z]+-[0-9]{1}:[0-9]{12}$", "tests": [ { "description": "Base", "input": "arn:aws:eks:us-east-1:123456789012" }, { "description": "Valid - gov partition", "input": "arn:aws-us-gov:eks:us-gov-east-1:123456786354" }, { "description": "Valid - china partition", "input": "arn:aws-cn:eks:cn-north-1:123456786354" }, { "description": "Invalid us gov partition", "input": "arn:aws-cn-gov:eks:us-gov-east-1:123456786354", "expected": false }, { "description": "Invalid china partition", "input": "arn:aws-us-cn:eks:cn-north-1:123456786354", "expected": false }, { "description": "Invalid service name", "input": "arn:aws:amplifye:us-east-1:123456789012", "expected": false }, { "description": "Invalid region name", "input": "arn:aws:eks:us-eastdk-74381:123456786354", "expected": false }, { "description": "Invalid us gov region", "input": "arn:aws-us-gov:eks:us-east-2-74381:123456786354", "expected": false }, { "description": "Invalid china region", "input": "arn:aws-cn:eks:us-east-2-74381:123456786354", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/aws-eks#/definitions/eksAka", "modUri": "tmod:@turbot/aws-eks" }}
nodeGroup
Schema
{ "type": "object", "properties": { "amiType": { "$ref": "#/definitions/amiType" }, "clusterName": { "type": "string" }, "createdAt": { "$ref": "turbot#/definitions/isoTimestamp" }, "diskSize": { "type": "integer" }, "health": { "type": "object", "properties": { "issues": { "type": "object", "items": { "type": "object" }, "properties": { "code": { "type": "string" }, "message": { "type": "string" }, "resourceIds": { "type": "array", "items": { "type": "string" } } } } } }, "instanceTypes": { "type": "array", "items": { "type": "string" } }, "labels": { "type": "object" }, "modifiedAt": { "$ref": "turbot#/definitions/isoTimestamp" }, "nodegroupArn": { "type": "string" }, "nodegroupName": { "type": "string" }, "nodeRole": { "type": "string" }, "releaseVersion": { "type": "string" }, "remoteAccess": { "type": "object", "properties": { "ec2SshKey": { "type": "string" }, "sourceSecurityGroups": { "type": "array", "items": { "type": "string" } } } }, "resources": { "type": "object", "properties": { "autoScalingGroups": { "type": "object", "items": { "type": "object" }, "properties": { "name": { "type": "string" } } }, "remoteAccessSecurityGroup": { "type": "string" } } }, "scalingConfig": { "type": "object", "properties": { "desiredSize": { "type": "string" }, "maxSize": { "type": "string" }, "minSize": { "type": "string" } } }, "status": { "$ref": "#/definitions/status" }, "subnets": { "type": "array", "items": { "type": "string" } }, "tags": { "type": "object" }, "version": { "type": "string" }, "turbot": { "type": "object", "properties": { "metadata": { "type": "object", "properties": { "createTimestamp": { "$ref": "turbot#/definitions/isoTimestamp" }, "aws": { "$ref": "aws#/definitions/awsMetadata" } } }, "tags": { "$ref": "aws#/definitions/tagsMap" } } } }, "additionalProperties": true, ".turbot": { "uri": "tmod:@turbot/aws-eks#/definitions/nodeGroup", "modUri": "tmod:@turbot/aws-eks" }}
status
Schema
{ "type": "string", "enum": [ "CREATE_FAILED", "CREATING", "DELETE_FAILED", "DELETING", "ACTIVE", "UPDATING", "DEGRADED" ], ".turbot": { "uri": "tmod:@turbot/aws-eks#/definitions/status", "modUri": "tmod:@turbot/aws-eks" }}