Definitions for @turbot/aws-resourcegroups

resourceGroups

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

resourceGroupsAka

{
"type": "string",
"pattern": "^arn:aws(-us-gov|-cn)?:resource-groups:[a-z]{2}(-gov)?-[a-z]+-[0-9]{1}:[0-9]{12}$",
"tests": [
{
"description": "Valid AWS Partition Non-Gov",
"input": "arn:aws:resource-groups:us-west-1:560741234067"
},
{
"description": "Valid AWS Partition US Gov",
"input": "arn:aws-us-gov:resource-groups:us-gov-west-1:560741234067"
},
{
"description": "Valid AWS Partition CHINA Gov",
"input": "arn:aws-cn:resource-groups: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:resource-groups:us-easted-441:560741234067",
"expected": false
},
{
"description": "Invalid Account Id in the AKA",
"input": "arn:aws:resource-groups:us-east-1:12345678905512",
"expected": false
},
{
"description": "Invalid AKA pattern",
"input": "resource-groupsV2|us-east-1:560741234067",
"expected": false
},
{
"description": "Invalid AWS partition name",
"input": "arn:aws-eu:resource-groups:us-east-1:560741234067",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/aws-resourcegroups#/definitions/resourceGroupsAka",
"modUri": "tmod:@turbot/aws-resourcegroups"
}
}