Definitions for @turbot/aws-health
health
Schema
{ "allOf": [ { "$ref": "turbot#/definitions/service" }, { "type": "object", "properties": { "name": { "const": "Health" }, "turbot": { "type": "object", "properties": { "akas": { "type": "array", "items": { "$ref": "#/definitions/healthServiceAka" } }, "title": { "const": "Health" }, "custom": { "type": "object", "properties": { "aws": { "$ref": "aws#/definitions/awsMetadata" } } } } } }, "additionalProperties": true, "tests": [ { "description": "Valid - all properties provided", "input": { "name": "Health", "turbot": { "akas": [ "arn:aws:health::123456789012" ], "title": "Health", "custom": { "aws": { "accountId": 123456789012, "partition": "aws" } } } } }, { "description": "invalid - service provider name prefixed", "input": { "name": "AWS Health", "turbot": { "akas": [ "arn:aws:health::123456789012" ], "title": "AWS Health", "custom": { "aws": { "accountId": 123456789012, "partition": "aws" } } } }, "expected": false } ] } ], ".turbot": { "uri": "tmod:@turbot/aws-health#/definitions/health", "modUri": "tmod:@turbot/aws-health" }}
healthServiceAka
Schema
{ "type": "string", "pattern": "^arn:aws(-us-gov|-cn)?:health::[0-9]{12}$", "tests": [ { "description": "base", "input": "arn:aws:health::123123123123" }, { "description": "Invalid - service name not valid", "input": "arn:aws:datasync111::123123123123", "expected": false }, { "description": "Invalid - account id is not valid", "input": "arn:aws:health::123382743123123123", "expected": false }, { "description": "Invalid - partition", "input": "arn:gcp:health::123382743123123123", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/aws-health#/definitions/healthServiceAka", "modUri": "tmod:@turbot/aws-health" }}