Definitions for @turbot/aws-ram

featureSet

{
"type": "string",
"enum": [
"CREATED_FROM_POLICY",
"PROMOTING_TO_STANDARD",
"STANDARD"
],
".turbot": {
"uri": "tmod:@turbot/aws-ram#/definitions/featureSet",
"modUri": "tmod:@turbot/aws-ram"
}
}

ram

{
"allOf": [
{
"$ref": "turbot#/definitions/service"
},
{
"type": "object",
"properties": {
"name": {
"const": "Resource Access Manager"
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/ramAka"
}
},
"title": {
"const": "Resource Access Manager"
},
"metadata": {
"type": "object",
"properties": {
"aws": {
"$ref": "aws#/definitions/awsMetadata"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "Valid - All properties",
"input": {
"name": "Resource Access Manager",
"turbot": {
"akas": [
"arn:aws:ram:us-west-1:560741234067"
],
"title": "Resource Access Manager",
"metadata": {
"aws": {
"accountId": 560741234067,
"regionName": "us-west-1",
"partition": "aws"
}
}
}
}
},
{
"description": "Invalid - Service Name is not correct",
"input": {
"name": "AWS RAM",
"turbot": {
"akas": [
"arn:aws:ram:us-west-1:560741234067"
],
"title": "Resource Access Manager",
"metadata": {
"aws": {
"accountId": 560741234067,
"regionName": "us-west-1",
"partition": "aws"
}
}
}
},
"expected": false
}
]
}
],
".turbot": {
"uri": "tmod:@turbot/aws-ram#/definitions/ram",
"modUri": "tmod:@turbot/aws-ram"
}
}

ramAka

{
"type": "string",
"pattern": "^arn:aws(-us-gov|-cn)?:ram:[a-z]{2}(-gov)?-[a-z]+-[0-9]{1}:[0-9]{12}$",
"tests": [
{
"description": "Valid AWS Partition Non-Gov",
"input": "arn:aws:ram:us-west-1:560741234067"
},
{
"description": "Valid AWS Partition US Gov",
"input": "arn:aws-us-gov:ram:us-gov-west-1:560741234067"
},
{
"description": "Valid AWS Partition CHINA Gov",
"input": "arn:aws-cn:ram:cn-north-1:560741234067"
},
{
"description": "Invalid Service Name in the AKA",
"input": "arn:aws:ds11:us-east-1:560741234067",
"expected": false
},
{
"description": "Invalid Region Name in the AKA",
"input": "arn:aws:ram:us-easted-441:560741234067",
"expected": false
},
{
"description": "Invalid Account Id in the AKA",
"input": "arn:aws:ram:us-east-1:12345678905512",
"expected": false
},
{
"description": "Invalid AKA pattern",
"input": "ramV2|us-east-1:560741234067",
"expected": false
},
{
"description": "Invalid AWS partition name",
"input": "arn:aws-eu:ram:us-east-1:560741234067",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-ram#/definitions/ramAka",
"modUri": "tmod:@turbot/aws-ram"
}
}

resourceShare

{
"type": "object",
"properties": {
"name": {
"$ref": "#/definitions/resourceShareName"
},
"resourceShareArn": {
"$ref": "#/definitions/resourceShareAka"
},
"resourceShareArns": {
"$ref": "#/definitions/resourceShareArns"
},
"resourceOwner": {
"$ref": "#/definitions/resourceShareOwner"
},
"owningAccountId": {
"type": "string"
},
"allowExternalPrincipals": {
"type": "boolean"
},
"statusMessage": {
"type": "string"
},
"creationTime": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"lastUpdatedTime": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"featureSet": {
"$ref": "#/definitions/featureSet"
},
"status": {
"$ref": "#/definitions/resourceShareStatus"
},
"tags": {
"$ref": "aws#/definitions/tagList"
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/resourceShareAka"
}
},
"tags": {
"$ref": "aws#/definitions/tagsMap"
},
"title": {
"$ref": "#/definitions/resourceShareName"
},
"metadata": {
"type": "object",
"properties": {
"aws": {
"$ref": "aws#/definitions/awsMetadata"
},
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "Valid - All properties",
"input": {
"name": "ram2",
"resourceShareArn": "arn:aws:ram:us-west-2:560741234067:resource-share/bab7516d-64cc-49a5-201f-d3971289c7f1",
"resourceOwner": "SELF",
"turbot": {
"akas": [
"arn:aws:ram:us-west-2:560741234067:resource-share/bab7516d-64cc-49a5-201f-d3971289c7f1"
],
"title": "ram2",
"metadata": {
"aws": {
"accountId": 560741234067,
"regionName": "us-west-2",
"partition": "aws"
}
}
}
}
},
{
"description": "Invalid - Missing resourceShare name",
"input": {
"resourceShareArn": "arn:aws:ram:us-west-2:560741234067:resource-share/bab7516d-64cc-49a5-201f-d3971289c7f1",
"resourceOwner": "SELF",
"turbot": {
"akas": [
"arn:aws:ram:us-west-2:560741234067:resource-share/bab7516d-64cc-49a5-201f-d3971289c7f1"
],
"title": "ram2",
"metadata": {
"aws": {
"accountId": 560741234067,
"regionName": "us-west-2",
"partition": "aws"
}
}
}
},
"expected": false
},
{
"description": "Invalid - Missing turbot data",
"input": {
"name": "ram2",
"resourceShareArn": "arn:aws:ram:us-west-2:560741234067:resource-share/bab7516d-64cc-49a5-201f-d3971289c7f1",
"resourceOwner": "SELF"
},
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-ram#/definitions/resourceShare",
"modUri": "tmod:@turbot/aws-ram"
}
}

resourceShareAka

{
"type": "string",
"pattern": "^arn:aws(-us-gov|-cn)?:ram:[a-z]{2}(-gov)?-[a-z]+-[0-9]{1}:[0-9]{12}:resource-share/[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$",
"tests": [
{
"description": "Valid - Base case",
"input": "arn:aws:ram:us-west-2:560741234067:resource-share/bab7516d-64cc-49a5-201f-d3971289c7f1"
},
{
"description": "Invalid - Malformed region name",
"input": "arn:aws:ram:use-west-123:560741234067:resourceShare/ram2",
"expected": false
},
{
"description": "Invalid - Malformed account ID",
"input": "arn:aws:ram:us-west-1:12345:resourceShare/ram2",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-ram#/definitions/resourceShareAka",
"modUri": "tmod:@turbot/aws-ram"
}
}

resourceShareArns

{
"type": "array",
"items": {
"$ref": "#/definitions/resourceShareAka"
},
".turbot": {
"uri": "tmod:@turbot/aws-ram#/definitions/resourceShareArns",
"modUri": "tmod:@turbot/aws-ram"
}
}

resourceShareName

{
"type": "string",
"pattern": "^[a-zA-Z0-9 .-]+$",
"tests": [
{
"input": "ram2"
},
{
"description": "Invalid - Resource share name can contain only alphabetic characters, numbers, spaces, periods, and dashes.",
"input": "test$#*&^%",
"expected": false
},
{
"description": "Invalid - empty string passed - Name field is required",
"input": "",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-ram#/definitions/resourceShareName",
"modUri": "tmod:@turbot/aws-ram"
}
}

resourceShareOwner

{
"type": "string",
"enum": [
"SELF",
"OTHER-ACCOUNTS"
],
"tests": [
{
"description": "Valid - Base case",
"input": "SELF"
},
{
"description": "Invalid - Owner Type",
"input": "OTHER",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-ram#/definitions/resourceShareOwner",
"modUri": "tmod:@turbot/aws-ram"
}
}

resourceShareStatus

{
"type": "string",
"enum": [
"ACTIVE",
"FAILED",
"PENDING",
"DELETING",
"DELETED"
],
"tests": [
{
"description": "Valid - Base case",
"input": "ACTIVE"
},
{
"description": "Invalid - Status Type",
"input": "OTHER",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-ram#/definitions/resourceShareStatus",
"modUri": "tmod:@turbot/aws-ram"
}
}