Definitions for @turbot/aws-workspaces
ComputeTypeName
Schema
{ "type": "string", "enum": [ "VALUE", "STANDARD", "PERFORMANCE", "POWER", "GRAPHICS", "POWERPRO", "GRAPHICSPRO" ], ".turbot": { "uri": "tmod:@turbot/aws-workspaces#/definitions/ComputeTypeName", "modUri": "tmod:@turbot/aws-workspaces" }}
Resource
Schema
{ "type": "string", "enum": [ "ROOT_VOLUME", "USER_VOLUME", "COMPUTE_TYPE" ], ".turbot": { "uri": "tmod:@turbot/aws-workspaces#/definitions/Resource", "modUri": "tmod:@turbot/aws-workspaces" }}
RunningMode
Schema
{ "type": "string", "enum": [ "AUTO_STOP", "ALWAYS_ON" ], ".turbot": { "uri": "tmod:@turbot/aws-workspaces#/definitions/RunningMode", "modUri": "tmod:@turbot/aws-workspaces" }}
State
Schema
{ "type": "string", "enum": [ "PENDING", "AVAILABLE", "IMPAIRED", "UNHEALTHY", "REBOOTING", "STARTING", "REBUILDING", "RESTORING", "MAINTENANCE", "ADMIN_MAINTENANCE", "TERMINATING", "TERMINATED", "SUSPENDED", "UPDATING", "STOPPING", "STOPPED", "ERROR" ], ".turbot": { "uri": "tmod:@turbot/aws-workspaces#/definitions/State", "modUri": "tmod:@turbot/aws-workspaces" }}
workspace
Schema
{ "type": "object", "properties": { "BundleId": { "type": "string" }, "ComputerName": { "type": "string" }, "DirectoryId": { "type": "string" }, "ErrorCode": { "type": "string" }, "ErrorMessage": { "type": "string" }, "IpAddress": { "type": "string" }, "ModificationStates": { "type": "array", "items": { "type": "object", "properties": { "Resource": { "$ref": "#/definitions/Resource" }, "State": { "$ref": "#/definitions/State" } } } }, "RootVolumeEncryptionEnabled": { "type": "boolean" }, "State": { "$ref": "#/definitions/State" }, "SubnetId": { "type": "string" }, "UserName": { "type": "string" }, "UserVolumeEncryptionEnabled": { "type": "boolean" }, "VolumeEncryptionKey": { "type": "string" }, "WorkspaceId": { "type": "string" }, "WorkspaceProperties": { "type": "object", "properties": { "ComputeTypeName": { "$ref": "#/definitions/ComputeTypeName" }, "RootVolumeSizeGib": { "type": "integer" }, "RunningMode": { "$ref": "#/definitions/RunningMode" }, "RunningModeAutoStopTimeoutInMinutes": { "type": "integer" }, "UserVolumeSizeGib": { "type": "integer" } } }, "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-workspaces#/definitions/workspace", "modUri": "tmod:@turbot/aws-workspaces" }}
workSpaces
Schema
{ "allOf": [ { "$ref": "turbot#/definitions/service" }, { "type": "object", "properties": { "name": { "const": "WorkSpaces" }, "turbot": { "type": "object", "properties": { "akas": { "type": "array", "items": { "$ref": "#/definitions/workSpacesAka" } }, "title": { "const": "WorkSpaces" }, "custom": { "type": "object", "properties": { "aws": { "$ref": "aws#/definitions/awsMetadata" } } } } } }, "additionalProperties": true, "tests": [ { "description": "Valid - All properties", "input": { "name": "WorkSpaces", "turbot": { "akas": [ "arn:aws:workspaces:us-east-1:123456789012" ], "title": "WorkSpaces", "custom": { "aws": { "accountId": 123456789012, "regionName": "us-east-1", "partition": "aws" } } } } } ] } ], ".turbot": { "uri": "tmod:@turbot/aws-workspaces#/definitions/workSpaces", "modUri": "tmod:@turbot/aws-workspaces" }}
workSpacesAka
Schema
{ "type": "string", "pattern": "^arn:aws(-us-gov|-cn)?:workspaces:[a-z]{2}(-gov)?-[a-z]+-[0-9]{1}:[0-9]{12}$", "tests": [ { "description": "Base", "input": "arn:aws:workspaces:us-east-1:123456789012" }, { "description": "Valid - gov partition", "input": "arn:aws-us-gov:workspaces:us-gov-east-1:123456786354" }, { "description": "Valid - china partition", "input": "arn:aws-cn:workspaces:cn-north-1:123456786354" }, { "description": "Invalid us gov partition", "input": "arn:aws-cn-gov:workspaces:us-gov-east-1:123456786354", "expected": false }, { "description": "Invalid china partition", "input": "arn:aws-us-cn:workspaces: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:workspaces:us-eastdk-74381:123456786354", "expected": false }, { "description": "Invalid us gov region", "input": "arn:aws-us-gov:workspaces:us-east-2-74381:123456786354", "expected": false }, { "description": "Invalid china region", "input": "arn:aws-cn:workspaces:us-east-2-74381:123456786354", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/aws-workspaces#/definitions/workSpacesAka", "modUri": "tmod:@turbot/aws-workspaces" }}