Definitions for @turbot/aws-acm
acm
Schema
{ "allOf": [ { "$ref": "turbot#/definitions/service" }, { "type": "object", "properties": { "name": { "const": "ACM" }, "turbot": { "type": "object", "properties": { "akas": { "type": "array", "items": { "$ref": "#/definitions/acmAka" } }, "title": { "const": "ACM" }, "metadata": { "type": "object", "properties": { "aws": { "$ref": "aws#/definitions/awsMetadata" }, "createTimestamp": { "$ref": "turbot#/definitions/isoTimestamp" } } } } } }, "additionalProperties": true, "tests": [ { "description": "Valid - All properties", "input": { "name": "ACM", "turbot": { "akas": [ "arn:aws:acm:us-east-1:560741234067" ], "title": "ACM", "metadata": { "aws": { "accountId": 560741234067, "regionName": "us-east-1", "partition": "aws" } } } } }, { "description": "invalid - service name is prefixed", "input": { "name": "AWS ACM", "turbot": { "akas": [ "arn:aws:acm:us-east-1:560741234067" ], "title": "ACM", "metadata": { "aws": { "accountId": 560741234067, "regionName": "us-east-1", "partition": "aws" } } } } } ] } ], ".turbot": { "uri": "tmod:@turbot/aws-acm#/definitions/acm", "modUri": "tmod:@turbot/aws-acm" }}
acmAka
Schema
{ "type": "string", "pattern": "^arn:aws(-us-gov|-cn)?:acm:[a-z]{2}(-gov)?-[a-z]+-[0-9]{1}:[0-9]{12}$", "tests": [ { "description": "Valid AWS Partition Non-Gov", "input": "arn:aws:acm:us-east-1:560741234067" }, { "description": "Valid AWS Partition US Gov", "input": "arn:aws-us-gov:acm:us-gov-east-1:560741234067" }, { "description": "Valid AWS Partition CHINA Gov", "input": "arn:aws-cn:acm: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:acm:us-easted-441:560741234067", "expected": false }, { "description": "Invalid Account Id in the AKA", "input": "arn:aws:acm:us-east-1:12345678905512", "expected": false }, { "description": "Invalid AKA pattern", "input": "acmV2|us-east-1:560741234067", "expected": false }, { "description": "Invalid AWS partition name", "input": "arn:aws-eu:acm:us-east-1:560741234067", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/aws-acm#/definitions/acmAka", "modUri": "tmod:@turbot/aws-acm" }}
acmCertificate
Schema
{ "type": "string", "maxLength": 32768, "minLength": 1, "pattern": "^-{5}BEGIN CERTIFICATE-{5}\\r?\\n([A-Za-z0-9/+]{64}\\r?\\n)*[A-Za-z0-9/+]{1,64}={0,2}\\r?\\n-{5}END CERTIFICATE-{5}(\\r?\\n)?$", "tests": [ { "description": "base case", "input": "-----BEGIN CERTIFICATE-----\nMIICiTCCAfICCQD6m7oRw0uXOjANBgkqhkiG9w0BAQUFADCBiDELMAkGA1UEBhMC\nVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdTZWF0dGxlMQ8wDQYDVQQKEwZBbWF6\nb24xFDASBgNVBAsTC0lBTSBDb25zb2xlMRIwEAYDVQQDEwlUZXN0Q2lsYWMxHzAd\nBgkqhkiG9w0BCQEWEG5vb25lQGFtYXpvbi5jb20wHhcNMTEwNDI1MjA0NTIxWhcN\nMTIwNDI0MjA0NTIxWjCBiDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYD\nVQQHEwdTZWF0dGxlMQ8wDQYDVQQKEwZBbWF6b24xFDASBgNVBAsTC0lBTSBDb25z\nb2xlMRIwEAYDVQQDEwlUZXN0Q2lsYWMxHzAdBgkqhkiG9w0BCQEWEG5vb25lQGFt\nYXpvbi5jb20wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMaK0dn+a4GmWIWJ\n21uUSfwfEvySWtC2XADZ4nB+BLYgVIk60CpiwsZ3G93vUEIO3IyNoH/f0wYK8m9T\nrDHudUZg3qX4waLG5M43q7Wgc/MbQITxOUSQv7c7ugFFDzQGBzZswY6786m86gpE\nIbb3OhjZnzcvQAaRHhdlQWIMm2nrAgMBAAEwDQYJKoZIhvcNAQEFBQADgYEAtCu4\nnUhVVxYUntneD9+h8Mg9q6q+auNKyExzyLwaxlAoo7TJHidbtS4J5iNmZgXL0Fkb\nFFBjvSfpJIlJ00zbhNYS5f6GuoEDmFJl0ZxBHjJnyp378OD8uTs7fLvjx79LjSTb\nNYiytVbZPQUQ5Yaxu2jXnimvw3rrszlaEXAMPLE=\n-----END CERTIFICATE-----" }, { "description": "invalid - array type inserted instead of string", "input": [ 12345 ], "expected": false } ], ".turbot": { "uri": "tmod:@turbot/aws-acm#/definitions/acmCertificate", "modUri": "tmod:@turbot/aws-acm" }}
amcCertificateStatus
Schema
{ "type": "string", "enum": [ "PENDING_VALIDATION", "ISSUED", "INACTIVE", "EXPIRED", "VALIDATION_TIMED_OUT", "REVOKED", "FAILED" ], "tests": [ { "input": "ISSUED" }, { "input": "EXPIRED" }, { "description": "invalid - not listed in options", "input": "Reactive", "expected": false }, { "description": "invalid - null value", "input": null, "expected": false } ], ".turbot": { "uri": "tmod:@turbot/aws-acm#/definitions/amcCertificateStatus", "modUri": "tmod:@turbot/aws-acm" }}
certificate
Schema
{ "type": "object", "properties": { "Certificate": { "$ref": "#/definitions/acmCertificate" }, "CertificateArn": { "$ref": "#/definitions/certificateArn" }, "CertificateChain": { "$ref": "#/definitions/certificateChain" }, "Status": { "$ref": "#/definitions/amcCertificateStatus" }, "Tags": { "$ref": "aws#/definitions/tagList" }, "DomainName": { "type": "string" }, "SubjectAlternativeNames": { "type": "array" }, "DomainValidationOptions": { "type": "array" }, "Subject": { "type": "string" }, "Issuer": { "type": "string" }, "CreatedAt": { "type": "number" }, "KeyAlgorithm": { "type": "string" }, "SignatureAlgorithm": { "type": "string" }, "InUseBy": { "type": "array" }, "Type": { "type": "string" }, "KeyUsages": { "type": "array" }, "ExtendedKeyUsages": { "type": "array" }, "RenewalEligibility": { "type": "string" }, "RenewalSummary": { "type": "object" }, "RevocationReason": { "type": "string" }, "Options": { "type": "object" }, "turbot": { "type": "object", "properties": { "akas": { "type": "array", "items": { "$ref": "#/definitions/certificateArn" } }, "tags": { "$ref": "aws#/definitions/tagsMap" }, "title": { "$ref": "#/definitions/certificateArn" }, "metadata": { "type": "object", "properties": { "aws": { "$ref": "aws#/definitions/awsMetadata" }, "createTimestamp": { "$ref": "turbot#/definitions/isoTimestamp" } } } } } }, "additionalProperties": true, "tests": [ { "description": "base case", "input": { "CertificateArn": "arn:aws:acm:us-east-1:560741234067:certificate/12345678-1234-1234-1234-560741234067", "turbot": { "akas": [ "arn:aws:acm:us-east-1:560741234067:certificate/12345678-1234-1234-1234-560741234067" ], "tags": { "Env": "Test", "App": "Facebook" }, "title": "arn:aws:acm:us-east-1:560741234067:certificate/12345678-1234-1234-1234-560741234067", "metadata": { "aws": { "accountId": 560741234067, "regionName": "us-east-1", "partition": "aws" } }, "createTimestamp": "2018-10-05T03:56:00.000Z" } } }, { "description": "invalid - required aws id field omitted", "input": { "CertificateArn": "arn:aws:acm:us-east-1:560741234067:certificate/12345678-1234-1234-1234-560741234067", "turbot": { "akas": [ "arn:aws:acm:us-east-1:560741234067:certificate/12345678-1234-1234-1234-560741234067" ], "tags": { "Env": "Test", "App": "Facebook" }, "title": "arn:aws:acm:us-east-1:560741234067:certificate/12345678-1234-1234-1234-560741234067", "metadata": null } }, "expected": false } ], ".turbot": { "uri": "tmod:@turbot/aws-acm#/definitions/certificate", "modUri": "tmod:@turbot/aws-acm" }}
certificateArn
Schema
{ "type": "string", "minLength": 20, "maxLength": 2048, "pattern": "^arn:aws(-us-gov|-cn)?:acm:[a-z]{2}(-gov)?-[a-z]+-\\d{1}:\\d{12}:certificate/([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})*$", "tests": [ { "input": "arn:aws:acm:us-east-1:560741234067:certificate/12345678-1234-1234-1234-560741234067" }, { "input": "arn:aws:acm:us-east-1:533793682495:certificate/8c6370dd-d94d-4172-82a8-1ca6345926b9" }, { "description": "invalid - incorrect arn inserted", "input": 12345, "expected": false }, { "description": "invalid - empty string inserted", "input": "", "expected": false }, { "description": "invalid - incorrect arn value provided", "input": "arn:aws:acm:us-east-1:560741234067/12345678-1234-1234-1234-560741234067", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/aws-acm#/definitions/certificateArn", "modUri": "tmod:@turbot/aws-acm" }}
certificateChain
Schema
{ "type": "string", "maxLength": 2097152, "minLength": 1, "pattern": "^(-{5}BEGIN CERTIFICATE-{5}\\r?\\n([A-Za-z0-9/+]{64}\\r?\\n)*[A-Za-z0-9/+]{1,64}={0,2}\\r?\\n-{5}END CERTIFICATE-{5}\\r?\\n)*-{5}BEGIN CERTIFICATE-{5}\\r?\\n([A-Za-z0-9/+]{64}\\r?\\n)*[A-Za-z0-9/+]{1,64}={0,2}\\r?\\n-{5}END CERTIFICATE-{5}(\\r?\\n)?$", "tests": [ { "description": "base case", "input": "-----BEGIN CERTIFICATE-----\nMIICiTCCAfICCQD6m7oRw0uXOjANBgkqhkiG9w0BAQUFADCBiDELMAkGA1UEBhMC\nVVMxCzAJBgNVBAgTAldBMRAwDgYDVQQHEwdTZWF0dGxlMQ8wDQYDVQQKEwZBbWF6\nb24xFDASBgNVBAsTC0lBTSBDb25zb2xlMRIwEAYDVQQDEwlUZXN0Q2lsYWMxHzAd\nBgkqhkiG9w0BCQEWEG5vb25lQGFtYXpvbi5jb20wHhcNMTEwNDI1MjA0NTIxWhcN\nMTIwNDI0MjA0NTIxWjCBiDELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAldBMRAwDgYD\nVQQHEwdTZWF0dGxlMQ8wDQYDVQQKEwZBbWF6b24xFDASBgNVBAsTC0lBTSBDb25z\nb2xlMRIwEAYDVQQDEwlUZXN0Q2lsYWMxHzAdBgkqhkiG9w0BCQEWEG5vb25lQGFt\nYXpvbi5jb20wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMaK0dn+a4GmWIWJ\n21uUSfwfEvySWtC2XADZ4nB+BLYgVIk60CpiwsZ3G93vUEIO3IyNoH/f0wYK8m9T\nrDHudUZg3qX4waLG5M43q7Wgc/MbQITxOUSQv7c7ugFFDzQGBzZswY6786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5iNmZgXL0Fkb\nFFBjvSfpJIlJ00zbhNYS5f6GuoEDmFJl0ZxBHjJnyp378OD8uTs7fLvjx79LjSTb\nNYiytVbZPQUQ5Yaxu2jXnimvw3rrszlaEXAMPLE=\n-----END CERTIFICATE-----" }, { "description": "invalid - incorrect data type inserted", "input": [ 1234567890 ], "expected": false }, { "description": "invalid - empty string provided", "input": "", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/aws-acm#/definitions/certificateChain", "modUri": "tmod:@turbot/aws-acm" }}
privateRegions
Schema
{ "type": "string", "enum": [ "ap-northeast-1", "ap-southeast-1", "ap-southeast-2", "ca-central-1", "eu-central-1", "eu-west-1", "eu-west-2", "us-east-1", "us-east-2", "us-west-2" ], "tests": [ { "input": "us-east-1" }, { "description": "invalid - region not in the list", "input": "usea1", "expected": false } ], ".turbot": { "uri": "tmod:@turbot/aws-acm#/definitions/privateRegions", "modUri": "tmod:@turbot/aws-acm" }}