{
    "version": "1.1",
    "parameters": {
        "Region": {
            "builtIn": "AWS::Region",
            "required": true,
            "documentation": "The AWS region to send requests to.",
            "type": "string"
        },
        "Endpoint": {
            "builtIn": "SDK::Endpoint",
            "required": false,
            "documentation": "Override the endpoint used to send requests.",
            "type": "string"
        },
        "UseFIPS": {
            "builtIn": "AWS::UseFIPS",
            "required": true,
            "default": false,
            "documentation": "Use FIPS endpoints.",
            "type": "boolean"
        },
        "UseDualStack": {
            "builtIn": "AWS::UseDualStack",
            "required": true,
            "default": false,
            "documentation": "Use dual-stack endpoints.",
            "type": "boolean"
        },
        "ServiceType": {
            "required": true,
            "documentation": "The service type: ACM or ACM-ACME. Injected via @staticContextParams.",
            "type": "string"
        }
    },
    "conditions": [
        {
            "fn": "isSet",
            "argv": [
                {
                    "ref": "Endpoint"
                }
            ]
        },
        {
            "fn": "aws.partition",
            "argv": [
                {
                    "ref": "Region"
                }
            ],
            "assign": "PartitionResult"
        },
        {
            "fn": "stringEquals",
            "argv": [
                {
                    "ref": "ServiceType"
                },
                "ACM-ACME"
            ]
        },
        {
            "fn": "booleanEquals",
            "argv": [
                {
                    "ref": "UseFIPS"
                },
                true
            ]
        },
        {
            "fn": "stringEquals",
            "argv": [
                {
                    "fn": "getAttr",
                    "argv": [
                        {
                            "ref": "PartitionResult"
                        },
                        "name"
                    ]
                },
                "aws"
            ]
        },
        {
            "fn": "booleanEquals",
            "argv": [
                {
                    "ref": "UseDualStack"
                },
                true
            ]
        },
        {
            "fn": "stringEquals",
            "argv": [
                {
                    "fn": "getAttr",
                    "argv": [
                        {
                            "ref": "PartitionResult"
                        },
                        "name"
                    ]
                },
                "aws-us-gov"
            ]
        }
    ],
    "results": [
        {
            "conditions": [],
            "endpoint": {
                "url": "{Endpoint}",
                "properties": {},
                "headers": {}
            },
            "type": "endpoint"
        },
        {
            "conditions": [],
            "error": "FIPS endpoints are not available for ACME operations",
            "type": "error"
        },
        {
            "documentation": "ACME standard",
            "conditions": [],
            "endpoint": {
                "url": "https://acm-acme.{Region}.{PartitionResult#dualStackDnsSuffix}",
                "properties": {},
                "headers": {}
            },
            "type": "endpoint"
        },
        {
            "documentation": "ACME operations are only available in the aws and aws-us-gov partitions",
            "conditions": [],
            "error": "ACME operations are only available in the aws and aws-us-gov partitions",
            "type": "error"
        },
        {
            "conditions": [],
            "endpoint": {
                "url": "https://acm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
                "properties": {},
                "headers": {}
            },
            "type": "endpoint"
        },
        {
            "conditions": [],
            "endpoint": {
                "url": "https://acm.{Region}.amazonaws.com",
                "properties": {},
                "headers": {}
            },
            "type": "endpoint"
        },
        {
            "documentation": "ACM FIPS standard",
            "conditions": [],
            "endpoint": {
                "url": "https://acm-fips.{Region}.{PartitionResult#dnsSuffix}",
                "properties": {},
                "headers": {}
            },
            "type": "endpoint"
        },
        {
            "conditions": [],
            "endpoint": {
                "url": "https://acm.{Region}.{PartitionResult#dualStackDnsSuffix}",
                "properties": {},
                "headers": {}
            },
            "type": "endpoint"
        },
        {
            "documentation": "ACM standard",
            "conditions": [],
            "endpoint": {
                "url": "https://acm.{Region}.{PartitionResult#dnsSuffix}",
                "properties": {},
                "headers": {}
            },
            "type": "endpoint"
        },
        {
            "documentation": "Fallback error if region is not set",
            "conditions": [],
            "error": "Region must be set to resolve an endpoint.",
            "type": "error"
        }
    ],
    "root": 2,
    "nodeCount": 13,
    "nodes": "/////wAAAAH/////AAAAAAX14QEAAAADAAAAAQAAAAQF9eEKAAAAAgAAAAkAAAAFAAAAAwAAAAcAAAAGAAAABQX14QgF9eEJAAAABQX14QUAAAAIAAAABgX14QYF9eEHAAAAAwAAAAwAAAAKAAAABAX14QMAAAALAAAABgX14QMF9eEEAAAABAX14QIAAAANAAAABgX14QIF9eEE"
}