1{ 2 "testCases": [ 3 { 4 "documentation": "For region aws-global with FIPS disabled and DualStack enabled", 5 "expect": { 6 "endpoint": { 7 "properties": { 8 "authSchemes": [ 9 { 10 "name": "sigv4", 11 "signingName": "freetier", 12 "signingRegion": "us-east-1" 13 } 14 ] 15 }, 16 "url": "https://freetier.us-east-1.api.aws" 17 } 18 }, 19 "params": { 20 "Region": "aws-global", 21 "UseFIPS": false 22 } 23 }, 24 { 25 "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", 26 "expect": { 27 "endpoint": { 28 "url": "https://freetier-fips.us-east-1.api.aws" 29 } 30 }, 31 "params": { 32 "Region": "us-east-1", 33 "UseFIPS": true 34 } 35 }, 36 { 37 "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", 38 "expect": { 39 "endpoint": { 40 "properties": { 41 "authSchemes": [ 42 { 43 "name": "sigv4", 44 "signingName": "freetier", 45 "signingRegion": "us-east-1" 46 } 47 ] 48 }, 49 "url": "https://freetier.us-east-1.api.aws" 50 } 51 }, 52 "params": { 53 "Region": "us-east-1", 54 "UseFIPS": false 55 } 56 }, 57 { 58 "documentation": "For region aws-cn-global with FIPS disabled and DualStack enabled", 59 "expect": { 60 "endpoint": { 61 "properties": { 62 "authSchemes": [ 63 { 64 "name": "sigv4", 65 "signingName": "freetier", 66 "signingRegion": "cn-northwest-1" 67 } 68 ] 69 }, 70 "url": "https://freetier.cn-northwest-1.api.amazonwebservices.com.cn" 71 } 72 }, 73 "params": { 74 "Region": "aws-cn-global", 75 "UseFIPS": false 76 } 77 }, 78 { 79 "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", 80 "expect": { 81 "endpoint": { 82 "url": "https://freetier-fips.cn-north-1.api.amazonwebservices.com.cn" 83 } 84 }, 85 "params": { 86 "Region": "cn-north-1", 87 "UseFIPS": true 88 } 89 }, 90 { 91 "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", 92 "expect": { 93 "endpoint": { 94 "url": "https://freetier.cn-north-1.api.amazonwebservices.com.cn" 95 } 96 }, 97 "params": { 98 "Region": "cn-north-1", 99 "UseFIPS": false 100 } 101 }, 102 { 103 "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", 104 "expect": { 105 "endpoint": { 106 "url": "https://freetier-fips.us-gov-east-1.api.aws" 107 } 108 }, 109 "params": { 110 "Region": "us-gov-east-1", 111 "UseFIPS": true 112 } 113 }, 114 { 115 "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", 116 "expect": { 117 "endpoint": { 118 "url": "https://freetier.us-gov-east-1.api.aws" 119 } 120 }, 121 "params": { 122 "Region": "us-gov-east-1", 123 "UseFIPS": false 124 } 125 }, 126 { 127 "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", 128 "expect": { 129 "endpoint": { 130 "url": "https://example.com" 131 } 132 }, 133 "params": { 134 "Region": "us-east-1", 135 "UseFIPS": false, 136 "Endpoint": "https://example.com" 137 } 138 }, 139 { 140 "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", 141 "expect": { 142 "endpoint": { 143 "url": "https://example.com" 144 } 145 }, 146 "params": { 147 "UseFIPS": false, 148 "Endpoint": "https://example.com" 149 } 150 }, 151 { 152 "documentation": "For custom endpoint with fips enabled and dualstack disabled", 153 "expect": { 154 "error": "Invalid Configuration: FIPS and custom endpoint are not supported" 155 }, 156 "params": { 157 "Region": "us-east-1", 158 "UseFIPS": true, 159 "Endpoint": "https://example.com" 160 } 161 }, 162 { 163 "documentation": "Missing region", 164 "expect": { 165 "error": "Invalid Configuration: Missing Region" 166 } 167 } 168 ], 169 "version": "1.0" 170}