{ "testCases": [ { "documentation": "For region ca-central-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://comprehendmedical-fips.ca-central-1.api.aws" } }, "params": { "Region": "ca-central-1", "UseFIPS": true, "UseDualStack": true } }, { "documentation": "For region ca-central-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://comprehendmedical-fips.ca-central-1.amazonaws.com" } }, "params": { "Region": "ca-central-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region ca-central-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://comprehendmedical.ca-central-1.api.aws" } }, "params": { "Region": "ca-central-1", "UseFIPS": false, "UseDualStack": true } }, { "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://comprehendmedical.ca-central-1.amazonaws.com" } }, "params": { "Region": "ca-central-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-west-2 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://comprehendmedical-fips.us-west-2.api.aws" } }, "params": { "Region": "us-west-2", "UseFIPS": true, "UseDualStack": true } }, { "documentation": "For region us-west-2 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://comprehendmedical-fips.us-west-2.amazonaws.com" } }, "params": { "Region": "us-west-2", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-west-2 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://comprehendmedical.us-west-2.api.aws" } }, "params": { "Region": "us-west-2", "UseFIPS": false, "UseDualStack": true } }, { "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://comprehendmedical.us-west-2.amazonaws.com" } }, "params": { "Region": "us-west-2", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region eu-west-2 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://comprehendmedical-fips.eu-west-2.api.aws" } }, "params": { "Region": "eu-west-2", "UseFIPS": true, "UseDualStack": true } }, { "documentation": "For region eu-west-2 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://comprehendmedical-fips.eu-west-2.amazonaws.com" } }, "params": { "Region": "eu-west-2", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region eu-west-2 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://comprehendmedical.eu-west-2.api.aws" } }, "params": { "Region": "eu-west-2", "UseFIPS": false, "UseDualStack": true } }, { "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://comprehendmedical.eu-west-2.amazonaws.com" } }, "params": { "Region": "eu-west-2", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region eu-west-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://comprehendmedical-fips.eu-west-1.api.aws" } }, "params": { "Region": "eu-west-1", "UseFIPS": true, "UseDualStack": true } }, { "documentation": "For region eu-west-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://comprehendmedical-fips.eu-west-1.amazonaws.com" } }, "params": { "Region": "eu-west-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region eu-west-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://comprehendmedical.eu-west-1.api.aws" } }, "params": { "Region": "eu-west-1", "UseFIPS": false, "UseDualStack": true } }, { "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://comprehendmedical.eu-west-1.amazonaws.com" } }, "params": { "Region": "eu-west-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://comprehendmedical-fips.us-gov-west-1.api.aws" } }, "params": { "Region": "us-gov-west-1", "UseFIPS": true, "UseDualStack": true } }, { "documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://comprehendmedical-fips.us-gov-west-1.amazonaws.com" } }, "params": { "Region": "us-gov-west-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://comprehendmedical.us-gov-west-1.api.aws" } }, "params": { "Region": "us-gov-west-1", "UseFIPS": false, "UseDualStack": true } }, { "documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://comprehendmedical.us-gov-west-1.amazonaws.com" } }, "params": { "Region": "us-gov-west-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ap-southeast-2 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://comprehendmedical-fips.ap-southeast-2.api.aws" } }, "params": { "Region": "ap-southeast-2", "UseFIPS": true, "UseDualStack": true } }, { "documentation": "For region ap-southeast-2 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://comprehendmedical-fips.ap-southeast-2.amazonaws.com" } }, "params": { "Region": "ap-southeast-2", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://comprehendmedical.ap-southeast-2.api.aws" } }, "params": { "Region": "ap-southeast-2", "UseFIPS": false, "UseDualStack": true } }, { "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://comprehendmedical.ap-southeast-2.amazonaws.com" } }, "params": { "Region": "ap-southeast-2", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://comprehendmedical-fips.us-east-1.api.aws" } }, "params": { "Region": "us-east-1", "UseFIPS": true, "UseDualStack": true } }, { "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://comprehendmedical-fips.us-east-1.amazonaws.com" } }, "params": { "Region": "us-east-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://comprehendmedical.us-east-1.api.aws" } }, "params": { "Region": "us-east-1", "UseFIPS": false, "UseDualStack": true } }, { "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://comprehendmedical.us-east-1.amazonaws.com" } }, "params": { "Region": "us-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-east-2 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://comprehendmedical-fips.us-east-2.api.aws" } }, "params": { "Region": "us-east-2", "UseFIPS": true, "UseDualStack": true } }, { "documentation": "For region us-east-2 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://comprehendmedical-fips.us-east-2.amazonaws.com" } }, "params": { "Region": "us-east-2", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-east-2 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://comprehendmedical.us-east-2.api.aws" } }, "params": { "Region": "us-east-2", "UseFIPS": false, "UseDualStack": true } }, { "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://comprehendmedical.us-east-2.amazonaws.com" } }, "params": { "Region": "us-east-2", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For custom endpoint with fips disabled and dualstack disabled", "expect": { "endpoint": { "url": "https://example.com" } }, "params": { "Region": "us-east-1", "UseFIPS": false, "UseDualStack": false, "Endpoint": "https://example.com" } }, { "documentation": "For custom endpoint with fips enabled and dualstack disabled", "expect": { "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { "Region": "us-east-1", "UseFIPS": true, "UseDualStack": false, "Endpoint": "https://example.com" } }, { "documentation": "For custom endpoint with fips disabled and dualstack enabled", "expect": { "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { "Region": "us-east-1", "UseFIPS": false, "UseDualStack": true, "Endpoint": "https://example.com" } } ], "version": "1.0" }