Definitions for @turbot/aws-directoryservice
- directory
- directoryAka
- directoryId
- directoryName
- directoryService
- directoryServiceAka
- directorySize
- directoryStage
- directoryType
directory
Schema
{ "type": "object", "properties": { "DirectoryId": { "$ref": "#/definitions/directoryId" }, "Name": { "$ref": "#/definitions/directoryName" }, "Size": { "$ref": "#/definitions/directorySize" }, "Stage": { "$ref": "#/definitions/directoryStage" }, "Type": { "$ref": "#/definitions/directoryType" }, "Tags": { "$ref": "aws#/definitions/tagList" }, "turbot": { "type": "object", "properties": { "akas": { "type": "array", "items": { "$ref": "#/definitions/directoryAka" } }, "tags": { "$ref": "aws#/definitions/tagsMap" }, "title": { "$ref": "#/definitions/directoryId" }, "custom": { "type": "object", "properties": { "aws": { "$ref": "aws#/definitions/awsMetadata" }, "createTimestamp": { "$ref": "turbot#/definitions/isoTimestamp" } } } } } }, "additionalProperties": true, "tests": [ { "description": "All properties given", "input": { "DirectoryId": "d-9267144c36", "Name": "avanavi.xyz", "Size": "Small", "Stage": "Creating", "Type": "SimpleAD", "Tags": [ { "Key": "testKey", "Value": "testValue" } ], "turbot": { "akas": [ "arn:aws:ds:us-east-1:123456789012:directory/d-9267144c36" ], "tags": { "testKey": "testValue" }, "title": "d-9267144c36", "custom": { "aws": { "accountId": 123456789012, "regionName": "us-east-1" } } } } }, { "description": "Invalid - no directory id", "input": { "Name": "avanavi.xyz", "Size": "Small", "Stage": "Creating", "Type": "SimpleAD", "Tags": [ { "Key": "testKey", "Value": "testValue" } ], "turbot": { "akas": [ "arn:aws:directoryservice:us-east-1:123456789012:directory/d-9267144c36" ], "tags": { "testKey": "testValue" }, "title": "d-9267144c36", "custom": { "aws": { "accountId": 123456789012, "regionName": "us-east-1" } } } }, "expected": false } ], ".turbot": { "uri": "tmod:@turbot/aws-directoryservice#/definitions/directory", "modUri": "tmod:@turbot/aws-directoryservice" }}
directoryAka
Schema
{ "type": "string", "pattern": "^arn:aws(-us-gov|-cn)?:ds:[a-z]{2}(-gov)?-[a-z]+-[0-9]:[0-9]{12}:directory/d-[0-9a-z]{8,63}$", "tests": [ { "description": "Valid - Base case", "input": "arn:aws:ds:us-east-1:123456789012:directory/d-9267144c36" }, { "description": "Invalid - Malformed resource collection", "input": "arn:aws:directoryservice:us-east-1:123456789012:directoryservices/d-9267144c36", "expected": false }, { "description": "Invalid - Malformed region name", "input": "arn:aws:directoryservice:us-eas:123456789012:directory/d-9267144c36", "expected": false }, { "description": "Invalid - Malformed account ID", "input": "arn:aws:directoryservice:us-east-1:12345678901287576:directory/d-9267144c36", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/aws-directoryservice#/definitions/directoryAka", "modUri": "tmod:@turbot/aws-directoryservice" }}
directoryId
Schema
{ "type": "string", "pattern": "^d-[0-9a-z]{8,63}$", "tests": [ { "input": "d-abcdefghij" }, { "input": "d-a1b2c3d4e5" }, { "description": "Min length is 8", "input": "d-a1b2c", "expected": false }, { "description": "Max length is 63", "input": "d-a2b3c4d5e6f7g8h9i1j2k3l4m5njbdhjf6789123456789hjgdfhjdjkhfvjkhv666yu", "expected": false }, { "description": "Invalid - Not Starting with \"d-\"", "input": "foo$barvcc", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/aws-directoryservice#/definitions/directoryId", "modUri": "tmod:@turbot/aws-directoryservice" }}
directoryName
Schema
{ "type": "string", "pattern": "^[0-9a-zA-Z]+(?:\\.)+[0-9a-zA-Z]+$", "tests": [ { "input": "avanavi.xyz" }, { "input": "avanavi.com" }, { "description": "Must contain a domain", "input": "a1b2c3d4", "expected": false }, { "description": "Invalid - \".\" cannot be prefixed", "input": ".a1b2c3d4.com", "expected": false }, { "description": "Invalid - \".\" cannot be suffixed", "input": "a1b2c3d4.com.", "expected": false }, { "description": "Invalid - Must not contain special characters expect \".\"", "input": "a1@b2c3d4.com", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/aws-directoryservice#/definitions/directoryName", "modUri": "tmod:@turbot/aws-directoryservice" }}
directoryService
Schema
{ "allOf": [ { "$ref": "turbot#/definitions/service" }, { "type": "object", "properties": { "name": { "const": "Directory Service" }, "turbot": { "type": "object", "properties": { "akas": { "type": "array", "items": { "$ref": "#/definitions/directoryServiceAka" } }, "title": { "const": "Directory Service" }, "custom": { "type": "object", "properties": { "aws": { "$ref": "aws#/definitions/awsMetadata" } } } } } }, "additionalProperties": true, "tests": [ { "description": "Valid - All properties", "input": { "name": "Directory Service", "turbot": { "akas": [ "arn:aws:ds:us-east-1:123456789012" ], "title": "Directory Service", "custom": { "aws": { "accountId": 123456789012 } } } } }, { "description": "Invalid - service provider name is prefixed", "input": { "name": "DirectoryService", "turbot": { "akas": [ "arn:aws:ds:us-east-1:123456789012" ], "title": "DirectoryService", "custom": { "aws": { "accountId": 123456789012 } } } }, "expected": false } ] } ], ".turbot": { "uri": "tmod:@turbot/aws-directoryservice#/definitions/directoryService", "modUri": "tmod:@turbot/aws-directoryservice" }}
directoryServiceAka
Schema
{ "type": "string", "pattern": "^arn:aws(-us-gov|-cn)?:ds:[a-z]{2}(-gov)?-[a-z]+-[0-9]{1}:[0-9]{12}$", "tests": [ { "description": "Base", "input": "arn:aws:ds:us-east-1:123456789012" }, { "description": "Invalid Service Name in the AKA", "input": "arn:aws:ds11:us-east-1:123456789012", "expected": false }, { "description": "Invalid Region Name in the AKA", "input": "arn:aws:ds:us-easted-441:123456789012", "expected": false }, { "description": "Invalid Account Id in the AKA", "input": "arn:aws:ds:us-east-1:12345678905512", "expected": false }, { "description": "Invalid AKA format", "input": "ds:us-east-1:123456789012", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/aws-directoryservice#/definitions/directoryServiceAka", "modUri": "tmod:@turbot/aws-directoryservice" }}
directorySize
Schema
{ "type": "string", "enum": [ "Small", "Large" ], "tests": [ { "input": "Small" }, { "input": "Large" }, { "description": "Invalid - Size", "input": "Micro", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/aws-directoryservice#/definitions/directorySize", "modUri": "tmod:@turbot/aws-directoryservice" }}
directoryStage
Schema
{ "type": "string", "enum": [ "Requested", "Creating", "Created", "Active", "Inoperable", "Impaired", "Restoring", "RestoreFailed", "Deleting", "Deleted", "Failed" ], "tests": [ { "input": "Requested" }, { "input": "Creating" }, { "input": "Created" }, { "input": "Active" }, { "input": "Inoperable" }, { "input": "Impaired" }, { "input": "Restoring" }, { "input": "RestoreFailed" }, { "input": "Deleting" }, { "input": "Deleted" }, { "input": "Failed" }, { "description": "Invalid - Stage", "input": "Micro", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/aws-directoryservice#/definitions/directoryStage", "modUri": "tmod:@turbot/aws-directoryservice" }}
directoryType
Schema
{ "type": "string", "enum": [ "SimpleAD", "ADConnector", "MicrosoftAD", "SharedMicrosoftAD" ], "tests": [ { "input": "SimpleAD" }, { "input": "ADConnector" }, { "input": "MicrosoftAD" }, { "input": "SharedMicrosoftAD" }, { "description": "Invalid - Type", "input": "Micro", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/aws-directoryservice#/definitions/directoryType", "modUri": "tmod:@turbot/aws-directoryservice" }}