Definitions for @turbot/aws-fsx

backup

{
"type": "object",
"properties": {
"BackupId": {
"$ref": "#/definitions/backupId"
},
"Type": {
"type": "string"
},
"CreationTime": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"FileSystem": {
"type": "object"
},
"ResourceARN": {
"$ref": "#/definitions/backupAka"
},
"Tags": {
"$ref": "aws#/definitions/tagList"
},
"Lifecycle": {
"$ref": "#/definitions/backupStatus"
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/backupAka"
}
},
"tags": {
"$ref": "aws#/definitions/tagsMap"
},
"title": {
"$ref": "#/definitions/backupId"
},
"custom": {
"type": "object",
"properties": {
"aws": {
"$ref": "aws#/definitions/awsMetadata"
},
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "all details provided",
"input": {
"BackupId": "backup-04bd2f53ee26880ca",
"Lifecycle": "AVAILABLE",
"Type": "USER_INITIATED",
"CreationTime": "2019-06-19T10:35:26.381Z",
"ResourceARN": "arn:aws:fsx:us-west-2:492552618977:backup/backup-0f85fbfd2e3c34710",
"FileSystem": {
"FileSystemId": "fs-0abdcdb65fa83e361",
"StorageCapacity": 300,
"WindowsConfiguration": {
"ActiveDirectoryId": "d-926710d0db",
"WeeklyMaintenanceStartTime": "4:11:00",
"DailyAutomaticBackupStartTime": "10:30",
"AutomaticBackupRetentionDays": 7,
"CopyTagsToBackups": false
}
},
"Tags": [
{
"Key": "key01",
"Value": "value01"
}
],
"turbot": {
"akas": [
"arn:aws:fsx:us-west-2:492552618977:backup/backup-04bd2f53ee26880ca"
],
"tags": {
"key01": "value01"
},
"title": "backup-0498eed5fe91001ec",
"custom": {
"aws": {
"accountId": 492552618977,
"regionName": "us-west-2"
}
}
}
}
}
],
".turbot": {
"uri": "tmod:@turbot/aws-fsx#/definitions/backup",
"modUri": "tmod:@turbot/aws-fsx"
}
}

backupAka

{
"type": "string",
"pattern": "^arn:aws(-us-gov|-cn)?:fsx:[a-z]{2}(-gov)?-[a-z]+-[0-9]:[0-9]{12}:backup/(backup-[0-9a-f]{8,121})$",
"tests": [
{
"input": "arn:aws:fsx:us-west-2:492552618977:backup/backup-04bd2f53ee26880ca"
},
{
"description": "invalid - aws account id incorrect",
"input": "arn:aws:fsx:us-west-2:0123456789112:backup/backup-04bd2f53ee26880ca",
"expected": false
},
{
"description": "invalid - service name is missing",
"input": "arn:aws::us-west-2:492552618977:backup/backup-04bd2f53ee26880ca",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-fsx#/definitions/backupAka",
"modUri": "tmod:@turbot/aws-fsx"
}
}

backupId

{
"type": "string",
"pattern": "^(backup-[0-9a-f]{8,121})$",
"tests": [
{
"input": "backup-0498eed5fe91001ec"
},
{
"description": "invalid - minimum character is 11",
"input": "backup-11",
"expected": false
},
{
"description": "invalid - too long",
"input": "backup-0498eed5fe91001ec0498eed5fe91001ec0498eed5fe91001ec0498eed5fe91001ec0498eed5fe91001ec0498eed5fe91001ec0498eed5fe91001ec041",
"expected": false
},
{
"description": "invalid - cannot contain at special character",
"input": "backup-0498eed5fe9@001ec",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-fsx#/definitions/backupId",
"modUri": "tmod:@turbot/aws-fsx"
}
}

backupStatus

{
"type": "string",
"enum": [
"AVAILABLE",
"CREATING",
"FAILED",
"DELETING"
],
"tests": [
{
"input": "DELETING"
},
{
"description": "invalid - empty string",
"input": "DELETNG",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-fsx#/definitions/backupStatus",
"modUri": "tmod:@turbot/aws-fsx"
}
}

fileSystem

{
"type": "object",
"properties": {
"FileSystemId": {
"$ref": "#/definitions/fileSystemId"
},
"ResourceARN": {
"$ref": "#/definitions/fileSystemAka"
},
"OwnerId": {
"type": "string"
},
"DNSName": {
"type": "string"
},
"FileSystemType": {
"type": "string"
},
"NetworkInterfaceIds": {
"type": "array"
},
"StorageCapacity": {
"type": "integer"
},
"FailureDetails": {
"type": "object"
},
"SubnetIds": {
"type": "array"
},
"KmsKeyId": {
"type": "string"
},
"WindowsConfiguration": {
"type": "object"
},
"CreationTime": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"Tags": {
"$ref": "aws#/definitions/tagList"
},
"Lifecycle": {
"$ref": "#/definitions/fileSystemLifecycle"
},
"LustreConfiguration": {
"type": "object"
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/fileSystemAka"
}
},
"tags": {
"$ref": "aws#/definitions/tagsMap"
},
"title": {
"$ref": "#/definitions/fileSystemId"
},
"custom": {
"type": "object",
"properties": {
"aws": {
"$ref": "aws#/definitions/awsMetadata"
},
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
}
}
}
}
}
},
"additionalProperty": true,
"tests": [
{
"description": "all details provided",
"input": {
"FileSystemId": "fs-0498eed5fe91001ec",
"CreationTime": "2019-06-18T10:42:09.689Z",
"FileSystemType": "LUSTRE",
"Lifecycle": "AVAILABLE",
"StorageCapacity": 3600,
"VpcId": "vpc-09372870246997ebc",
"SubnetIds": [
"subnet-02e091ede29a5f69d"
],
"NetworkInterfaceIds": [
"eni-06910427b032203ec",
"eni-03fbc314dfbb896fd"
],
"DNSName": "fs-0e6cc06b66965a025.fsx.us-west-2.amazonaws.com",
"LustreConfiguration": {
"WeeklyMaintenanceStartTime": "7:07:30"
},
"ResourceARN": "arn:aws:fsx:us-east-1:012345678912:file-system/fs-0498eed5fe91001ec",
"Tags": [
{
"Key": "key01",
"Value": "value01"
}
],
"turbot": {
"akas": [
"arn:aws:fsx:us-east-1:012345678912:file-system/fs-0498eed5fe91001ec"
],
"tags": {
"Env": "Test",
"App": "Facebook"
},
"title": "fs-0498eed5fe91001ec",
"custom": {
"aws": {
"accountId": 123456789012,
"regionName": "us-east-1"
}
}
}
}
}
],
".turbot": {
"uri": "tmod:@turbot/aws-fsx#/definitions/fileSystem",
"modUri": "tmod:@turbot/aws-fsx"
}
}

fileSystemAka

{
"type": "string",
"pattern": "^arn:aws(-us-gov|-cn)?:fsx:[a-z]{2}(-gov)?-[a-z]+-[0-9]:[0-9]{12}:file-system/(fs-[0-9a-f]{8,18})$",
"tests": [
{
"input": "arn:aws:fsx:us-east-1:012345678912:file-system/fs-0498eed5fe91001ec"
},
{
"description": "invalid - aws account id incorrect",
"input": "arn:aws:fsx:us-east-1:0123456789112:file-system/fs-0498eed5fe91001ec",
"expected": false
},
{
"description": "invalid - service name is missing",
"input": "arn:aws::us-east-1:012345678912:file-system/fs-0498eed5fe91001ec",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-fsx#/definitions/fileSystemAka",
"modUri": "tmod:@turbot/aws-fsx"
}
}

fileSystemId

{
"type": "string",
"pattern": "^(fs-[0-9a-f]{8,18})$",
"tests": [
{
"input": "fs-0498eed5fe91001ec"
},
{
"description": "invalid - minimum character is 11",
"input": "fs-11",
"expected": false
},
{
"description": "invalid - too long",
"input": "fs-0498eed5fe91001ecr",
"expected": false
},
{
"description": "invalid - cannot contain at special character",
"input": "fs-0498eed5fe9@001ec",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-fsx#/definitions/fileSystemId",
"modUri": "tmod:@turbot/aws-fsx"
}
}

fileSystemLifecycle

{
"type": "string",
"enum": [
"AVAILABLE",
"CREATING",
"FAILED",
"DELETING"
],
"tests": [
{
"input": "FAILED"
},
{
"description": "invalid - wrong input",
"input": "Inoperable",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-fsx#/definitions/fileSystemLifecycle",
"modUri": "tmod:@turbot/aws-fsx"
}
}

fsx

{
"allOf": [
{
"$ref": "turbot#/definitions/service"
},
{
"type": "object",
"properties": {
"name": {
"const": "FSx"
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/fsxAka"
}
},
"title": {
"const": "FSx"
},
"custom": {
"type": "object",
"properties": {
"aws": {
"$ref": "aws#/definitions/awsMetadata"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "FSx",
"input": {
"name": "FSx",
"turbot": {
"akas": [
"arn:aws:fsx:us-east-1:123456789012"
],
"title": "FSx",
"custom": {
"aws": {
"accountId": 123456789012,
"regionName": "us-east-1"
}
}
}
}
}
]
}
],
".turbot": {
"uri": "tmod:@turbot/aws-fsx#/definitions/fsx",
"modUri": "tmod:@turbot/aws-fsx"
}
}

fsxAka

{
"type": "string",
"pattern": "^arn:aws(-us-gov|-cn)?:fsx:[a-z]{2}(-gov)?-[a-z]+-[0-9]{1}:[0-9]{12}$",
"tests": [
{
"description": "base",
"input": "arn:aws:fsx: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:fsx:us-east-1:123382743123123123",
"expected": false
},
{
"description": "invalid region name",
"input": "arn:aws:fsx:us-eastdk-74381:123123123123",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-fsx#/definitions/fsxAka",
"modUri": "tmod:@turbot/aws-fsx"
}
}