Definitions for @turbot/aws-savingsplans
savingsPlans
Schema
{ "allOf": [ { "$ref": "turbot#/definitions/service" }, { "type": "object", "properties": { "name": { "const": "Savings Plans" }, "turbot": { "type": "object", "properties": { "akas": { "type": "array", "items": { "$ref": "#/definitions/savingsPlansAka" } }, "title": { "const": "Savings Plans" }, "custom": { "type": "object", "properties": { "aws": { "$ref": "aws#/definitions/awsMetadata" } } } } } }, "additionalProperties": true, "tests": [ { "description": "Valid - All properties", "input": { "name": "Savings Plans", "turbot": { "akas": [ "arn:aws:savingsplans::123456789012" ], "title": "Savings Plans", "custom": { "aws": { "accountId": 123456789012, "partition": "aws" } } } } } ] } ], ".turbot": { "uri": "tmod:@turbot/aws-savingsplans#/definitions/savingsPlans", "modUri": "tmod:@turbot/aws-savingsplans" }}
savingsPlansAka
Schema
{ "type": "string", "pattern": "^arn:aws(-us-gov|-cn)?:savingsplans::[0-9]{12}$", "tests": [ { "description": "Base", "input": "arn:aws:savingsplans::123456789012" }, { "description": "Valid - gov partition", "input": "arn:aws-us-gov:savingsplans::123456786354" }, { "description": "Valid - china partition", "input": "arn:aws-cn:savingsplans::123456786354" }, { "description": "Invalid us gov partition", "input": "arn:aws-cn-gov:savingsplans::123456786354", "expected": false }, { "description": "Invalid china partition", "input": "arn:aws-us-cn:savingsplans::123456786354", "expected": false }, { "description": "Invalid service name", "input": "arn:aws:amplifye::123456789012", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/aws-savingsplans#/definitions/savingsPlansAka", "modUri": "tmod:@turbot/aws-savingsplans" }}