{ "testCases": [ { "documentation": "For region aws-cn-global with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "properties": { "authSchemes": [ { "signingRegion": "cn-northwest-1", "name": "sigv4", "signingName": "ce" } ] }, "url": "https://ce.cn-northwest-1.amazonaws.com.cn" } }, "params": { "UseFIPS": false, "UseDualStack": false, "Region": "aws-cn-global" } }, { "documentation": "For region aws-global with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "properties": { "authSchemes": [ { "signingRegion": "us-east-1", "name": "sigv4", "signingName": "ce" } ] }, "url": "https://ce.us-east-1.amazonaws.com" } }, "params": { "UseFIPS": false, "UseDualStack": false, "Region": "aws-global" } }, { "documentation": "For custom endpoint with fips disabled and dualstack disabled", "expect": { "endpoint": { "url": "https://example.com" } }, "params": { "UseFIPS": false, "UseDualStack": false, "Region": "us-east-1", "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": { "UseFIPS": true, "UseDualStack": false, "Region": "us-east-1", "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": { "UseFIPS": false, "UseDualStack": true, "Region": "us-east-1", "Endpoint": "https://example.com" } } ], "version": "1.0" }