{
    "version": "1.0",
    "testCases": [
        {
            "documentation": "For custom endpoint with region not set and fips disabled",
            "params": {
                "Endpoint": "https://example.com",
                "UseFIPS": false
            },
            "expect": {
                "endpoint": {
                    "url": "https://example.com"
                }
            }
        },
        {
            "documentation": "For custom endpoint with fips enabled",
            "params": {
                "Endpoint": "https://example.com",
                "UseFIPS": true
            },
            "expect": {
                "error": "Invalid Configuration: FIPS and custom endpoint are not supported"
            }
        },
        {
            "documentation": "For custom endpoint with fips disabled and dualstack enabled",
            "params": {
                "Endpoint": "https://example.com",
                "UseFIPS": false,
                "UseDualStack": true
            },
            "expect": {
                "error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
            }
        },
        {
            "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
            "params": {
                "Region": "us-east-1",
                "UseFIPS": true,
                "UseDualStack": true
            },
            "expect": {
                "endpoint": {
                    "url": "https://api.mediatailor-fips.us-east-1.api.aws"
                }
            }
        },
        {
            "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled",
            "params": {
                "Region": "us-east-1",
                "UseFIPS": true,
                "UseDualStack": false
            },
            "expect": {
                "endpoint": {
                    "url": "https://api.mediatailor-fips.us-east-1.amazonaws.com"
                }
            }
        },
        {
            "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
            "params": {
                "Region": "us-east-1",
                "UseFIPS": false,
                "UseDualStack": true
            },
            "expect": {
                "endpoint": {
                    "url": "https://mediatailor.us-east-1.api.aws"
                }
            }
        },
        {
            "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled",
            "params": {
                "Region": "us-east-1",
                "UseFIPS": false,
                "UseDualStack": false
            },
            "expect": {
                "endpoint": {
                    "url": "https://api.mediatailor.us-east-1.amazonaws.com"
                }
            }
        },
        {
            "documentation": "For region cn-northwest-1 with FIPS enabled and DualStack enabled",
            "params": {
                "Region": "cn-northwest-1",
                "UseFIPS": true,
                "UseDualStack": true
            },
            "expect": {
                "endpoint": {
                    "url": "https://api.mediatailor-fips.cn-northwest-1.api.amazonwebservices.com.cn"
                }
            }
        },
        {
            "documentation": "For region cn-northwest-1 with FIPS enabled and DualStack disabled",
            "params": {
                "Region": "cn-northwest-1",
                "UseFIPS": true,
                "UseDualStack": false
            },
            "expect": {
                "endpoint": {
                    "url": "https://api.mediatailor-fips.cn-northwest-1.amazonaws.com.cn"
                }
            }
        },
        {
            "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack enabled",
            "params": {
                "Region": "cn-northwest-1",
                "UseFIPS": false,
                "UseDualStack": true
            },
            "expect": {
                "endpoint": {
                    "url": "https://api.mediatailor.cn-northwest-1.api.amazonwebservices.com.cn"
                }
            }
        },
        {
            "documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled",
            "params": {
                "Region": "cn-northwest-1",
                "UseFIPS": false,
                "UseDualStack": false
            },
            "expect": {
                "endpoint": {
                    "url": "https://api.mediatailor.cn-northwest-1.amazonaws.com.cn"
                }
            }
        },
        {
            "documentation": "For region eusc-de-east-1 with FIPS enabled and DualStack disabled",
            "params": {
                "Region": "eusc-de-east-1",
                "UseFIPS": true,
                "UseDualStack": false
            },
            "expect": {
                "endpoint": {
                    "url": "https://api.mediatailor-fips.eusc-de-east-1.amazonaws.eu"
                }
            }
        },
        {
            "documentation": "For region eusc-de-east-1 with FIPS disabled and DualStack disabled",
            "params": {
                "Region": "eusc-de-east-1",
                "UseFIPS": false,
                "UseDualStack": false
            },
            "expect": {
                "endpoint": {
                    "url": "https://api.mediatailor.eusc-de-east-1.amazonaws.eu"
                }
            }
        },
        {
            "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled",
            "params": {
                "Region": "us-iso-east-1",
                "UseFIPS": true,
                "UseDualStack": false
            },
            "expect": {
                "endpoint": {
                    "url": "https://api.mediatailor-fips.us-iso-east-1.c2s.ic.gov"
                }
            }
        },
        {
            "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled",
            "params": {
                "Region": "us-iso-east-1",
                "UseFIPS": false,
                "UseDualStack": false
            },
            "expect": {
                "endpoint": {
                    "url": "https://api.mediatailor.us-iso-east-1.c2s.ic.gov"
                }
            }
        },
        {
            "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled",
            "params": {
                "Region": "us-isob-east-1",
                "UseFIPS": true,
                "UseDualStack": false
            },
            "expect": {
                "endpoint": {
                    "url": "https://api.mediatailor-fips.us-isob-east-1.sc2s.sgov.gov"
                }
            }
        },
        {
            "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled",
            "params": {
                "Region": "us-isob-east-1",
                "UseFIPS": false,
                "UseDualStack": false
            },
            "expect": {
                "endpoint": {
                    "url": "https://api.mediatailor.us-isob-east-1.sc2s.sgov.gov"
                }
            }
        },
        {
            "documentation": "For region eu-isoe-west-1 with FIPS enabled and DualStack disabled",
            "params": {
                "Region": "eu-isoe-west-1",
                "UseFIPS": true,
                "UseDualStack": false
            },
            "expect": {
                "endpoint": {
                    "url": "https://api.mediatailor-fips.eu-isoe-west-1.cloud.adc-e.uk"
                }
            }
        },
        {
            "documentation": "For region eu-isoe-west-1 with FIPS disabled and DualStack disabled",
            "params": {
                "Region": "eu-isoe-west-1",
                "UseFIPS": false,
                "UseDualStack": false
            },
            "expect": {
                "endpoint": {
                    "url": "https://api.mediatailor.eu-isoe-west-1.cloud.adc-e.uk"
                }
            }
        },
        {
            "documentation": "For region us-isof-south-1 with FIPS enabled and DualStack disabled",
            "params": {
                "Region": "us-isof-south-1",
                "UseFIPS": true,
                "UseDualStack": false
            },
            "expect": {
                "endpoint": {
                    "url": "https://api.mediatailor-fips.us-isof-south-1.csp.hci.ic.gov"
                }
            }
        },
        {
            "documentation": "For region us-isof-south-1 with FIPS disabled and DualStack disabled",
            "params": {
                "Region": "us-isof-south-1",
                "UseFIPS": false,
                "UseDualStack": false
            },
            "expect": {
                "endpoint": {
                    "url": "https://api.mediatailor.us-isof-south-1.csp.hci.ic.gov"
                }
            }
        },
        {
            "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack enabled",
            "params": {
                "Region": "us-gov-west-1",
                "UseFIPS": true,
                "UseDualStack": true
            },
            "expect": {
                "endpoint": {
                    "url": "https://api.mediatailor-fips.us-gov-west-1.api.aws"
                }
            }
        },
        {
            "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled",
            "params": {
                "Region": "us-gov-west-1",
                "UseFIPS": true,
                "UseDualStack": false
            },
            "expect": {
                "endpoint": {
                    "url": "https://api.mediatailor-fips.us-gov-west-1.amazonaws.com"
                }
            }
        },
        {
            "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack enabled",
            "params": {
                "Region": "us-gov-west-1",
                "UseFIPS": false,
                "UseDualStack": true
            },
            "expect": {
                "endpoint": {
                    "url": "https://api.mediatailor.us-gov-west-1.api.aws"
                }
            }
        },
        {
            "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled",
            "params": {
                "Region": "us-gov-west-1",
                "UseFIPS": false,
                "UseDualStack": false
            },
            "expect": {
                "endpoint": {
                    "url": "https://api.mediatailor.us-gov-west-1.amazonaws.com"
                }
            }
        },
        {
            "documentation": "Missing region",
            "expect": {
                "error": "Invalid Configuration: Missing Region"
            }
        }
    ]
}