Definitions for @turbot/aws-cloudhsm
cloudHsm
Schema
{ "allOf": [ { "$ref": "turbot#/definitions/service" }, { "type": "object", "properties": { "name": { "const": "CloudHSM" }, "turbot": { "type": "object", "properties": { "akas": { "type": "array", "items": { "$ref": "#/definitions/cloudHsmAka" } }, "title": { "const": "CloudHSM" }, "custom": { "type": "object", "properties": { "aws": { "$ref": "aws#/definitions/awsMetadata" } } } } } }, "additionalProperties": true, "tests": [ { "description": "All valid properties", "input": { "name": "CloudHSM", "turbot": { "akas": [ "arn:aws:cloudhsm:us-east-1:123123123123" ], "title": "CloudHSM", "custom": { "aws": { "accountId": 123456789012, "regionName": "us-east-1" } } } } }, { "description": "Invalid - Name", "input": { "name": "CLOUDHSM", "turbot": { "akas": [ "arn:aws:cloudhsm:us-east-1:123123123123" ], "title": "CloudHSM", "custom": { "aws": { "accountId": 123456789012, "regionName": "us-east-1" } } } }, "expected": false } ] } ], ".turbot": { "uri": "tmod:@turbot/aws-cloudhsm#/definitions/cloudHsm", "modUri": "tmod:@turbot/aws-cloudhsm" }}
cloudHsmAka
Schema
{ "type": "string", "pattern": "^arn:aws(-us-gov|-cn)?:cloudhsm:[a-z]{2}(-gov)?-[a-z]+-[0-9]{1}:[0-9]{12}$", "tests": [ { "description": "base", "input": "arn:aws:cloudhsm:us-east-1:123123123123" }, { "description": "Invalid aka", "input": "arn:awscloudhsm:us-east-1:123123123123", "expected": false }, { "description": "Invalid provider", "input": "arn:gcp:cloudhsm:us-east-1:123123123123", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/aws-cloudhsm#/definitions/cloudHsmAka", "modUri": "tmod:@turbot/aws-cloudhsm" }}