{
    "version": "1.0",
    "testCases": [
        {
            "documentation": "For region af-south-1 with FIPS disabled and DualStack disabled",
            "params": {
                "Region": "af-south-1",
                "UseFIPS": false,
                "UseDualStack": false,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm.af-south-1.amazonaws.com"
                }
            }
        },
        {
            "documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled",
            "params": {
                "Region": "ap-east-1",
                "UseFIPS": false,
                "UseDualStack": false,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm.ap-east-1.amazonaws.com"
                }
            }
        },
        {
            "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled",
            "params": {
                "Region": "ap-northeast-1",
                "UseFIPS": false,
                "UseDualStack": false,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm.ap-northeast-1.amazonaws.com"
                }
            }
        },
        {
            "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled",
            "params": {
                "Region": "ap-northeast-2",
                "UseFIPS": false,
                "UseDualStack": false,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm.ap-northeast-2.amazonaws.com"
                }
            }
        },
        {
            "documentation": "For region ap-northeast-3 with FIPS disabled and DualStack disabled",
            "params": {
                "Region": "ap-northeast-3",
                "UseFIPS": false,
                "UseDualStack": false,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm.ap-northeast-3.amazonaws.com"
                }
            }
        },
        {
            "documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled",
            "params": {
                "Region": "ap-south-1",
                "UseFIPS": false,
                "UseDualStack": false,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm.ap-south-1.amazonaws.com"
                }
            }
        },
        {
            "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled",
            "params": {
                "Region": "ap-southeast-1",
                "UseFIPS": false,
                "UseDualStack": false,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm.ap-southeast-1.amazonaws.com"
                }
            }
        },
        {
            "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled",
            "params": {
                "Region": "ap-southeast-2",
                "UseFIPS": false,
                "UseDualStack": false,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm.ap-southeast-2.amazonaws.com"
                }
            }
        },
        {
            "documentation": "For region ap-southeast-3 with FIPS disabled and DualStack disabled",
            "params": {
                "Region": "ap-southeast-3",
                "UseFIPS": false,
                "UseDualStack": false,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm.ap-southeast-3.amazonaws.com"
                }
            }
        },
        {
            "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled",
            "params": {
                "Region": "ca-central-1",
                "UseFIPS": false,
                "UseDualStack": false,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm.ca-central-1.amazonaws.com"
                }
            }
        },
        {
            "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled",
            "params": {
                "Region": "eu-central-1",
                "UseFIPS": false,
                "UseDualStack": false,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm.eu-central-1.amazonaws.com"
                }
            }
        },
        {
            "documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled",
            "params": {
                "Region": "eu-north-1",
                "UseFIPS": false,
                "UseDualStack": false,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm.eu-north-1.amazonaws.com"
                }
            }
        },
        {
            "documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled",
            "params": {
                "Region": "eu-south-1",
                "UseFIPS": false,
                "UseDualStack": false,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm.eu-south-1.amazonaws.com"
                }
            }
        },
        {
            "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled",
            "params": {
                "Region": "eu-west-1",
                "UseFIPS": false,
                "UseDualStack": false,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm.eu-west-1.amazonaws.com"
                }
            }
        },
        {
            "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled",
            "params": {
                "Region": "eu-west-2",
                "UseFIPS": false,
                "UseDualStack": false,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm.eu-west-2.amazonaws.com"
                }
            }
        },
        {
            "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled",
            "params": {
                "Region": "eu-west-3",
                "UseFIPS": false,
                "UseDualStack": false,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm.eu-west-3.amazonaws.com"
                }
            }
        },
        {
            "documentation": "For region me-south-1 with FIPS disabled and DualStack disabled",
            "params": {
                "Region": "me-south-1",
                "UseFIPS": false,
                "UseDualStack": false,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm.me-south-1.amazonaws.com"
                }
            }
        },
        {
            "documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled",
            "params": {
                "Region": "sa-east-1",
                "UseFIPS": false,
                "UseDualStack": false,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm.sa-east-1.amazonaws.com"
                }
            }
        },
        {
            "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled",
            "params": {
                "Region": "us-east-1",
                "UseFIPS": false,
                "UseDualStack": false,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm.us-east-1.amazonaws.com"
                }
            }
        },
        {
            "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled",
            "params": {
                "Region": "us-east-2",
                "UseFIPS": false,
                "UseDualStack": false,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm.us-east-2.amazonaws.com"
                }
            }
        },
        {
            "documentation": "For region us-west-1 with FIPS disabled and DualStack disabled",
            "params": {
                "Region": "us-west-1",
                "UseFIPS": false,
                "UseDualStack": false,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm.us-west-1.amazonaws.com"
                }
            }
        },
        {
            "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled",
            "params": {
                "Region": "us-west-2",
                "UseFIPS": false,
                "UseDualStack": false,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm.us-west-2.amazonaws.com"
                }
            }
        },
        {
            "documentation": "For region ca-central-1 with FIPS enabled and DualStack disabled",
            "params": {
                "Region": "ca-central-1",
                "UseFIPS": true,
                "UseDualStack": false,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm-fips.ca-central-1.amazonaws.com"
                }
            }
        },
        {
            "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled",
            "params": {
                "Region": "us-east-1",
                "UseFIPS": true,
                "UseDualStack": false,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm-fips.us-east-1.amazonaws.com"
                }
            }
        },
        {
            "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled",
            "params": {
                "Region": "us-east-2",
                "UseFIPS": true,
                "UseDualStack": false,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm-fips.us-east-2.amazonaws.com"
                }
            }
        },
        {
            "documentation": "For region us-west-1 with FIPS enabled and DualStack disabled",
            "params": {
                "Region": "us-west-1",
                "UseFIPS": true,
                "UseDualStack": false,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm-fips.us-west-1.amazonaws.com"
                }
            }
        },
        {
            "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled",
            "params": {
                "Region": "us-west-2",
                "UseFIPS": true,
                "UseDualStack": false,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm-fips.us-west-2.amazonaws.com"
                }
            }
        },
        {
            "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
            "params": {
                "Region": "us-east-1",
                "UseFIPS": true,
                "UseDualStack": true,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm-fips.us-east-1.api.aws"
                }
            }
        },
        {
            "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
            "params": {
                "Region": "us-east-1",
                "UseFIPS": false,
                "UseDualStack": true,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm.us-east-1.api.aws"
                }
            }
        },
        {
            "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled",
            "params": {
                "Region": "cn-north-1",
                "UseFIPS": false,
                "UseDualStack": false,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm.cn-north-1.amazonaws.com.cn"
                }
            }
        },
        {
            "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled",
            "params": {
                "Region": "cn-northwest-1",
                "UseFIPS": false,
                "UseDualStack": false,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm.cn-northwest-1.amazonaws.com.cn"
                }
            }
        },
        {
            "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled",
            "params": {
                "Region": "cn-north-1",
                "UseFIPS": true,
                "UseDualStack": true,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm-fips.cn-north-1.api.amazonwebservices.com.cn"
                }
            }
        },
        {
            "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled",
            "params": {
                "Region": "cn-north-1",
                "UseFIPS": true,
                "UseDualStack": false,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm-fips.cn-north-1.amazonaws.com.cn"
                }
            }
        },
        {
            "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled",
            "params": {
                "Region": "cn-north-1",
                "UseFIPS": false,
                "UseDualStack": true,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm.cn-north-1.api.amazonwebservices.com.cn"
                }
            }
        },
        {
            "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled",
            "params": {
                "Region": "us-gov-east-1",
                "UseFIPS": false,
                "UseDualStack": false,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm.us-gov-east-1.amazonaws.com"
                }
            }
        },
        {
            "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled",
            "params": {
                "Region": "us-gov-west-1",
                "UseFIPS": false,
                "UseDualStack": false,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm.us-gov-west-1.amazonaws.com"
                }
            }
        },
        {
            "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled",
            "params": {
                "Region": "us-gov-east-1",
                "UseFIPS": true,
                "UseDualStack": true,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm-fips.us-gov-east-1.api.aws"
                }
            }
        },
        {
            "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled",
            "params": {
                "Region": "us-gov-east-1",
                "UseFIPS": true,
                "UseDualStack": false,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm.us-gov-east-1.amazonaws.com"
                }
            }
        },
        {
            "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled",
            "params": {
                "Region": "us-gov-east-1",
                "UseFIPS": false,
                "UseDualStack": true,
                "ServiceType": "ACM"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm.us-gov-east-1.api.aws"
                }
            }
        },
        {
            "documentation": "For custom endpoint with region set and fips disabled and DualStack disabled",
            "params": {
                "Region": "us-east-1",
                "UseFIPS": false,
                "UseDualStack": false,
                "ServiceType": "ACM",
                "Endpoint": "https://example.com"
            },
            "expect": {
                "endpoint": {
                    "url": "https://example.com"
                }
            }
        },
        {
            "documentation": "For custom endpoint with FIPS enabled and DualStack disabled",
            "params": {
                "Region": "us-east-1",
                "UseFIPS": true,
                "UseDualStack": false,
                "ServiceType": "ACM",
                "Endpoint": "https://example.com"
            },
            "expect": {
                "endpoint": {
                    "url": "https://example.com"
                }
            }
        },
        {
            "documentation": "For custom endpoint with FIPS disabled and dualstack enabled",
            "params": {
                "Region": "us-east-1",
                "UseFIPS": false,
                "UseDualStack": true,
                "ServiceType": "ACM",
                "Endpoint": "https://example.com"
            },
            "expect": {
                "endpoint": {
                    "url": "https://example.com"
                }
            }
        },
        {
            "documentation": "ACM-ACME standard endpoint for us-east-1",
            "params": {
                "Region": "us-east-1",
                "UseFIPS": false,
                "UseDualStack": false,
                "ServiceType": "ACM-ACME"
            },
            "expect": {
                "endpoint": {
                    "url": "https://acm-acme.us-east-1.api.aws"
                }
            }
        },
        {
            "documentation": "ACM-ACME FIPS returns error",
            "params": {
                "Region": "us-west-2",
                "UseFIPS": true,
                "UseDualStack": false,
                "ServiceType": "ACM-ACME"
            },
            "expect": {
                "error": "FIPS endpoints are not available for ACME operations"
            }
        },
        {
            "documentation": "ACM-ACME custom endpoint",
            "params": {
                "Region": "us-east-1",
                "UseFIPS": false,
                "UseDualStack": false,
                "ServiceType": "ACM-ACME",
                "Endpoint": "https://custom.example.com"
            },
            "expect": {
                "endpoint": {
                    "url": "https://custom.example.com"
                }
            }
        },
        {
            "documentation": "ACM-ACME in us-gov-west-1 returns partition error",
            "params": {
                "Region": "us-gov-west-1",
                "UseFIPS": false,
                "UseDualStack": false,
                "ServiceType": "ACM-ACME"
            },
            "expect": {
                "error": "ACME operations are only available in commercial AWS partitions"
            }
        },
        {
            "documentation": "ACM-ACME in cn-north-1 returns partition error",
            "params": {
                "Region": "cn-north-1",
                "UseFIPS": false,
                "UseDualStack": false,
                "ServiceType": "ACM-ACME"
            },
            "expect": {
                "error": "ACME operations are only available in commercial AWS partitions"
            }
        }
    ]
}