{
    "version": "1.1",
    "parameters": {
        "Region": {
            "builtIn": "AWS::Region",
            "required": false,
            "documentation": "The AWS region used to dispatch the request.",
            "type": "string"
        },
        "UseDualStack": {
            "builtIn": "AWS::UseDualStack",
            "required": true,
            "default": false,
            "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",
            "type": "boolean"
        },
        "UseFIPS": {
            "builtIn": "AWS::UseFIPS",
            "required": true,
            "default": false,
            "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",
            "type": "boolean"
        },
        "Endpoint": {
            "builtIn": "SDK::Endpoint",
            "required": false,
            "documentation": "Override the endpoint used to send this request",
            "type": "string"
        },
        "AccountId": {
            "builtIn": "AWS::Auth::AccountId",
            "required": false,
            "documentation": "The AWS AccountId used for the request.",
            "type": "string"
        },
        "AccountIdEndpointMode": {
            "builtIn": "AWS::Auth::AccountIdEndpointMode",
            "required": false,
            "documentation": "The AccountId Endpoint Mode.",
            "type": "string"
        },
        "ResourceArn": {
            "required": false,
            "documentation": "ResourceArn containing arn of resource",
            "type": "string"
        },
        "ResourceArnList": {
            "required": false,
            "documentation": "ResourceArnList containing list of resource arns",
            "type": "stringArray"
        },
        "IsSearchOperation": {
            "required": false,
            "documentation": "Set to true for SearchVectors to route to the Search FQDN",
            "type": "boolean"
        }
    },
    "conditions": [
        {
            "fn": "isSet",
            "argv": [
                {
                    "ref": "Region"
                }
            ]
        },
        {
            "fn": "isSet",
            "argv": [
                {
                    "ref": "Endpoint"
                }
            ]
        },
        {
            "fn": "booleanEquals",
            "argv": [
                {
                    "ref": "UseFIPS"
                },
                true
            ]
        },
        {
            "fn": "booleanEquals",
            "argv": [
                {
                    "ref": "UseDualStack"
                },
                true
            ]
        },
        {
            "fn": "aws.partition",
            "argv": [
                {
                    "ref": "Region"
                }
            ],
            "assign": "PartitionResult"
        },
        {
            "fn": "stringEquals",
            "argv": [
                {
                    "ref": "Region"
                },
                "local"
            ]
        },
        {
            "fn": "booleanEquals",
            "argv": [
                {
                    "fn": "getAttr",
                    "argv": [
                        {
                            "ref": "PartitionResult"
                        },
                        "supportsFIPS"
                    ]
                },
                true
            ]
        },
        {
            "fn": "parseURL",
            "argv": [
                {
                    "ref": "Endpoint"
                }
            ],
            "assign": "parsedEndpoint"
        },
        {
            "fn": "stringEquals",
            "argv": [
                "dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}",
                {
                    "fn": "getAttr",
                    "argv": [
                        {
                            "ref": "parsedEndpoint"
                        },
                        "authority"
                    ]
                }
            ]
        },
        {
            "fn": "booleanEquals",
            "argv": [
                {
                    "fn": "getAttr",
                    "argv": [
                        {
                            "ref": "PartitionResult"
                        },
                        "supportsDualStack"
                    ]
                },
                true
            ]
        },
        {
            "fn": "stringEquals",
            "argv": [
                "search-dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}",
                {
                    "fn": "getAttr",
                    "argv": [
                        {
                            "ref": "parsedEndpoint"
                        },
                        "authority"
                    ]
                }
            ]
        },
        {
            "fn": "isSet",
            "argv": [
                {
                    "ref": "AccountIdEndpointMode"
                }
            ]
        },
        {
            "fn": "stringEquals",
            "argv": [
                {
                    "ref": "Region"
                },
                "us-gov-east-1"
            ]
        },
        {
            "fn": "stringEquals",
            "argv": [
                {
                    "ref": "Region"
                },
                "cn-north-1"
            ]
        },
        {
            "fn": "stringEquals",
            "argv": [
                {
                    "ref": "Region"
                },
                "cn-northwest-1"
            ]
        },
        {
            "fn": "stringEquals",
            "argv": [
                {
                    "ref": "Region"
                },
                "us-gov-west-1"
            ]
        },
        {
            "fn": "stringEquals",
            "argv": [
                {
                    "fn": "getAttr",
                    "argv": [
                        {
                            "ref": "PartitionResult"
                        },
                        "name"
                    ]
                },
                "aws"
            ]
        },
        {
            "fn": "stringEquals",
            "argv": [
                {
                    "ref": "AccountIdEndpointMode"
                },
                "disabled"
            ]
        },
        {
            "fn": "isSet",
            "argv": [
                {
                    "ref": "ResourceArn"
                }
            ]
        },
        {
            "fn": "aws.parseArn",
            "argv": [
                {
                    "ref": "ResourceArn"
                }
            ],
            "assign": "ParsedArn_ssa_2"
        },
        {
            "fn": "stringEquals",
            "argv": [
                {
                    "fn": "getAttr",
                    "argv": [
                        {
                            "ref": "ParsedArn_ssa_2"
                        },
                        "service"
                    ]
                },
                "dynamodb"
            ]
        },
        {
            "fn": "stringEquals",
            "argv": [
                {
                    "fn": "getAttr",
                    "argv": [
                        {
                            "ref": "ParsedArn_ssa_2"
                        },
                        "region"
                    ]
                },
                {
                    "ref": "Region"
                }
            ]
        },
        {
            "fn": "isValidHostLabel",
            "argv": [
                {
                    "fn": "getAttr",
                    "argv": [
                        {
                            "ref": "ParsedArn_ssa_2"
                        },
                        "accountId"
                    ]
                },
                false
            ]
        },
        {
            "fn": "isValidHostLabel",
            "argv": [
                {
                    "fn": "getAttr",
                    "argv": [
                        {
                            "ref": "ParsedArn_ssa_2"
                        },
                        "region"
                    ]
                },
                false
            ]
        },
        {
            "fn": "isSet",
            "argv": [
                {
                    "ref": "ResourceArnList"
                }
            ]
        },
        {
            "fn": "getAttr",
            "argv": [
                {
                    "ref": "ResourceArnList"
                },
                "[0]"
            ],
            "assign": "FirstArn"
        },
        {
            "fn": "aws.parseArn",
            "argv": [
                {
                    "ref": "FirstArn"
                }
            ],
            "assign": "ParsedArn_ssa_1"
        },
        {
            "fn": "stringEquals",
            "argv": [
                {
                    "fn": "getAttr",
                    "argv": [
                        {
                            "ref": "ParsedArn_ssa_1"
                        },
                        "region"
                    ]
                },
                {
                    "ref": "Region"
                }
            ]
        },
        {
            "fn": "stringEquals",
            "argv": [
                {
                    "fn": "getAttr",
                    "argv": [
                        {
                            "ref": "ParsedArn_ssa_1"
                        },
                        "service"
                    ]
                },
                "dynamodb"
            ]
        },
        {
            "fn": "isValidHostLabel",
            "argv": [
                {
                    "fn": "getAttr",
                    "argv": [
                        {
                            "ref": "ParsedArn_ssa_1"
                        },
                        "accountId"
                    ]
                },
                false
            ]
        },
        {
            "fn": "isValidHostLabel",
            "argv": [
                {
                    "fn": "getAttr",
                    "argv": [
                        {
                            "ref": "ParsedArn_ssa_1"
                        },
                        "region"
                    ]
                },
                false
            ]
        },
        {
            "fn": "isSet",
            "argv": [
                {
                    "ref": "AccountId"
                }
            ]
        },
        {
            "fn": "stringEquals",
            "argv": [
                {
                    "ref": "AccountIdEndpointMode"
                },
                "required"
            ]
        },
        {
            "fn": "isValidHostLabel",
            "argv": [
                {
                    "ref": "AccountId"
                },
                false
            ]
        },
        {
            "fn": "stringEquals",
            "argv": [
                {
                    "fn": "getAttr",
                    "argv": [
                        {
                            "ref": "PartitionResult"
                        },
                        "name"
                    ]
                },
                "aws-us-gov"
            ]
        },
        {
            "fn": "booleanEquals",
            "argv": [
                {
                    "fn": "coalesce",
                    "argv": [
                        {
                            "ref": "IsSearchOperation"
                        },
                        false
                    ]
                },
                true
            ]
        }
    ],
    "results": [
        {
            "conditions": [],
            "error": "Invalid Configuration: FIPS and custom endpoint are not supported",
            "type": "error"
        },
        {
            "conditions": [],
            "error": "Invalid Configuration: Dualstack and custom endpoint are not supported",
            "type": "error"
        },
        {
            "conditions": [],
            "error": "Endpoint override is not supported for dual-stack endpoints. Please enable dual-stack functionality by enabling the configuration. For more details, see: https://docs.aws.amazon.com/sdkref/latest/guide/feature-endpoints.html",
            "type": "error"
        },
        {
            "conditions": [],
            "endpoint": {
                "url": "{Endpoint}",
                "properties": {},
                "headers": {}
            },
            "type": "endpoint"
        },
        {
            "conditions": [],
            "error": "Invalid Configuration: FIPS and local endpoint are not supported",
            "type": "error"
        },
        {
            "conditions": [],
            "error": "Invalid Configuration: Dualstack and local endpoint are not supported",
            "type": "error"
        },
        {
            "conditions": [],
            "endpoint": {
                "url": "http://localhost:8000",
                "properties": {
                    "authSchemes": [
                        {
                            "name": "sigv4",
                            "signingName": "dynamodb",
                            "signingRegion": "us-east-1"
                        }
                    ]
                },
                "headers": {}
            },
            "type": "endpoint"
        },
        {
            "conditions": [],
            "error": "Invalid Configuration: AccountIdEndpointMode is required and FIPS is enabled, but FIPS account endpoints are not supported",
            "type": "error"
        },
        {
            "conditions": [],
            "endpoint": {
                "url": "https://search-dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
                "properties": {},
                "headers": {}
            },
            "type": "endpoint"
        },
        {
            "conditions": [],
            "endpoint": {
                "url": "https://dynamodb-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
                "properties": {},
                "headers": {}
            },
            "type": "endpoint"
        },
        {
            "conditions": [],
            "error": "FIPS and DualStack are enabled, but this partition does not support one or both",
            "type": "error"
        },
        {
            "conditions": [],
            "endpoint": {
                "url": "https://search-dynamodb.{Region}.{PartitionResult#dnsSuffix}",
                "properties": {},
                "headers": {}
            },
            "type": "endpoint"
        },
        {
            "conditions": [],
            "endpoint": {
                "url": "https://dynamodb.{Region}.{PartitionResult#dnsSuffix}",
                "properties": {},
                "headers": {}
            },
            "type": "endpoint"
        },
        {
            "conditions": [],
            "endpoint": {
                "url": "https://search-dynamodb-fips.{Region}.{PartitionResult#dnsSuffix}",
                "properties": {},
                "headers": {}
            },
            "type": "endpoint"
        },
        {
            "conditions": [],
            "endpoint": {
                "url": "https://dynamodb-fips.{Region}.{PartitionResult#dnsSuffix}",
                "properties": {},
                "headers": {}
            },
            "type": "endpoint"
        },
        {
            "conditions": [],
            "error": "FIPS is enabled but this partition does not support FIPS",
            "type": "error"
        },
        {
            "conditions": [],
            "error": "Invalid Configuration: AccountIdEndpointMode is required but account endpoints are not supported in this region",
            "type": "error"
        },
        {
            "conditions": [],
            "endpoint": {
                "url": "https://search-dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}",
                "properties": {},
                "headers": {}
            },
            "type": "endpoint"
        },
        {
            "conditions": [],
            "endpoint": {
                "url": "https://dynamodb.{Region}.{PartitionResult#dualStackDnsSuffix}",
                "properties": {},
                "headers": {}
            },
            "type": "endpoint"
        },
        {
            "conditions": [],
            "endpoint": {
                "url": "https://{ParsedArn_ssa_2#accountId}.search-ddb.{Region}.{PartitionResult#dualStackDnsSuffix}",
                "properties": {
                    "metricValues": [
                        "O"
                    ]
                },
                "headers": {}
            },
            "type": "endpoint"
        },
        {
            "conditions": [],
            "endpoint": {
                "url": "https://{ParsedArn_ssa_2#accountId}.ddb.{Region}.{PartitionResult#dualStackDnsSuffix}",
                "properties": {
                    "metricValues": [
                        "O"
                    ]
                },
                "headers": {}
            },
            "type": "endpoint"
        },
        {
            "conditions": [],
            "endpoint": {
                "url": "https://{ParsedArn_ssa_1#accountId}.search-ddb.{Region}.{PartitionResult#dualStackDnsSuffix}",
                "properties": {
                    "metricValues": [
                        "O"
                    ]
                },
                "headers": {}
            },
            "type": "endpoint"
        },
        {
            "conditions": [],
            "endpoint": {
                "url": "https://{ParsedArn_ssa_1#accountId}.ddb.{Region}.{PartitionResult#dualStackDnsSuffix}",
                "properties": {
                    "metricValues": [
                        "O"
                    ]
                },
                "headers": {}
            },
            "type": "endpoint"
        },
        {
            "conditions": [],
            "endpoint": {
                "url": "https://{AccountId}.search-ddb.{Region}.{PartitionResult#dualStackDnsSuffix}",
                "properties": {
                    "metricValues": [
                        "O"
                    ]
                },
                "headers": {}
            },
            "type": "endpoint"
        },
        {
            "conditions": [],
            "endpoint": {
                "url": "https://{AccountId}.ddb.{Region}.{PartitionResult#dualStackDnsSuffix}",
                "properties": {
                    "metricValues": [
                        "O"
                    ]
                },
                "headers": {}
            },
            "type": "endpoint"
        },
        {
            "conditions": [],
            "error": "Credentials-sourced account ID parameter is invalid",
            "type": "error"
        },
        {
            "conditions": [],
            "error": "AccountIdEndpointMode is required but no AccountID was provided or able to be loaded",
            "type": "error"
        },
        {
            "conditions": [],
            "error": "DualStack is enabled but this partition does not support DualStack",
            "type": "error"
        },
        {
            "conditions": [],
            "endpoint": {
                "url": "https://{ParsedArn_ssa_2#accountId}.search-ddb.{Region}.{PartitionResult#dnsSuffix}",
                "properties": {
                    "metricValues": [
                        "O"
                    ]
                },
                "headers": {}
            },
            "type": "endpoint"
        },
        {
            "conditions": [],
            "endpoint": {
                "url": "https://{ParsedArn_ssa_2#accountId}.ddb.{Region}.{PartitionResult#dnsSuffix}",
                "properties": {
                    "metricValues": [
                        "O"
                    ]
                },
                "headers": {}
            },
            "type": "endpoint"
        },
        {
            "conditions": [],
            "endpoint": {
                "url": "https://{ParsedArn_ssa_1#accountId}.search-ddb.{Region}.{PartitionResult#dnsSuffix}",
                "properties": {
                    "metricValues": [
                        "O"
                    ]
                },
                "headers": {}
            },
            "type": "endpoint"
        },
        {
            "conditions": [],
            "endpoint": {
                "url": "https://{ParsedArn_ssa_1#accountId}.ddb.{Region}.{PartitionResult#dnsSuffix}",
                "properties": {
                    "metricValues": [
                        "O"
                    ]
                },
                "headers": {}
            },
            "type": "endpoint"
        },
        {
            "conditions": [],
            "endpoint": {
                "url": "https://{AccountId}.search-ddb.{Region}.{PartitionResult#dnsSuffix}",
                "properties": {
                    "metricValues": [
                        "O"
                    ]
                },
                "headers": {}
            },
            "type": "endpoint"
        },
        {
            "conditions": [],
            "endpoint": {
                "url": "https://{AccountId}.ddb.{Region}.{PartitionResult#dnsSuffix}",
                "properties": {
                    "metricValues": [
                        "O"
                    ]
                },
                "headers": {}
            },
            "type": "endpoint"
        },
        {
            "conditions": [],
            "error": "Invalid Configuration: Missing Region",
            "type": "error"
        }
    ],
    "root": 2,
    "nodeCount": 90,
    "nodes": "/////wAAAAH/////AAAAAAAAAAYAAAADAAAAAQAAAAQF9eEjAAAAAgX14QEAAAAFAAAAAwX14QIF9eEEAAAAAQAAAFUAAAAHAAAAAgAAAEUAAAAIAAAAAwAAACYAAAAJAAAABAAAAAoF9eEjAAAABQX14QcAAAALAAAACwAAAAwAAABNAAAADAAAABIAAAANAAAADQAAABIAAAAOAAAADgAAABIAAAAPAAAADwAAABIAAAAQAAAAEAAAABIAAAARAAAAIAX14REAAABNAAAAEQAAACUAAAATAAAAEgAAABQAAAAZAAAAEwAAABUAAAAZAAAAFAAA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