-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "[two-way-validation skip] Deprecate Nimble part 2 (#3127)"
This reverts commit 98a00c9.
- Loading branch information
Showing
33 changed files
with
21,447 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,314 @@ | ||
{ | ||
"version": "1.0", | ||
"parameters": { | ||
"Region": { | ||
"builtIn": "AWS::Region", | ||
"required": false, | ||
"documentation": "The AWS region used to dispatch the request.", | ||
"type": "String" | ||
}, | ||
"UseDualStack": { | ||
"builtIn": "AWS::UseDualStack", | ||
"required": true, | ||
"default": false, | ||
"documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", | ||
"type": "Boolean" | ||
}, | ||
"UseFIPS": { | ||
"builtIn": "AWS::UseFIPS", | ||
"required": true, | ||
"default": false, | ||
"documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", | ||
"type": "Boolean" | ||
}, | ||
"Endpoint": { | ||
"builtIn": "SDK::Endpoint", | ||
"required": false, | ||
"documentation": "Override the endpoint used to send this request", | ||
"type": "String" | ||
} | ||
}, | ||
"rules": [ | ||
{ | ||
"conditions": [ | ||
{ | ||
"fn": "isSet", | ||
"argv": [ | ||
{ | ||
"ref": "Endpoint" | ||
} | ||
] | ||
} | ||
], | ||
"type": "tree", | ||
"rules": [ | ||
{ | ||
"conditions": [ | ||
{ | ||
"fn": "booleanEquals", | ||
"argv": [ | ||
{ | ||
"ref": "UseFIPS" | ||
}, | ||
true | ||
] | ||
} | ||
], | ||
"error": "Invalid Configuration: FIPS and custom endpoint are not supported", | ||
"type": "error" | ||
}, | ||
{ | ||
"conditions": [ | ||
{ | ||
"fn": "booleanEquals", | ||
"argv": [ | ||
{ | ||
"ref": "UseDualStack" | ||
}, | ||
true | ||
] | ||
} | ||
], | ||
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported", | ||
"type": "error" | ||
}, | ||
{ | ||
"conditions": [], | ||
"endpoint": { | ||
"url": { | ||
"ref": "Endpoint" | ||
}, | ||
"properties": {}, | ||
"headers": {} | ||
}, | ||
"type": "endpoint" | ||
} | ||
] | ||
}, | ||
{ | ||
"conditions": [ | ||
{ | ||
"fn": "isSet", | ||
"argv": [ | ||
{ | ||
"ref": "Region" | ||
} | ||
] | ||
} | ||
], | ||
"type": "tree", | ||
"rules": [ | ||
{ | ||
"conditions": [ | ||
{ | ||
"fn": "aws.partition", | ||
"argv": [ | ||
{ | ||
"ref": "Region" | ||
} | ||
], | ||
"assign": "PartitionResult" | ||
} | ||
], | ||
"type": "tree", | ||
"rules": [ | ||
{ | ||
"conditions": [ | ||
{ | ||
"fn": "booleanEquals", | ||
"argv": [ | ||
{ | ||
"ref": "UseFIPS" | ||
}, | ||
true | ||
] | ||
}, | ||
{ | ||
"fn": "booleanEquals", | ||
"argv": [ | ||
{ | ||
"ref": "UseDualStack" | ||
}, | ||
true | ||
] | ||
} | ||
], | ||
"type": "tree", | ||
"rules": [ | ||
{ | ||
"conditions": [ | ||
{ | ||
"fn": "booleanEquals", | ||
"argv": [ | ||
true, | ||
{ | ||
"fn": "getAttr", | ||
"argv": [ | ||
{ | ||
"ref": "PartitionResult" | ||
}, | ||
"supportsFIPS" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"fn": "booleanEquals", | ||
"argv": [ | ||
true, | ||
{ | ||
"fn": "getAttr", | ||
"argv": [ | ||
{ | ||
"ref": "PartitionResult" | ||
}, | ||
"supportsDualStack" | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"type": "tree", | ||
"rules": [ | ||
{ | ||
"conditions": [], | ||
"endpoint": { | ||
"url": "https://nimble-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", | ||
"properties": {}, | ||
"headers": {} | ||
}, | ||
"type": "endpoint" | ||
} | ||
] | ||
}, | ||
{ | ||
"conditions": [], | ||
"error": "FIPS and DualStack are enabled, but this partition does not support one or both", | ||
"type": "error" | ||
} | ||
] | ||
}, | ||
{ | ||
"conditions": [ | ||
{ | ||
"fn": "booleanEquals", | ||
"argv": [ | ||
{ | ||
"ref": "UseFIPS" | ||
}, | ||
true | ||
] | ||
} | ||
], | ||
"type": "tree", | ||
"rules": [ | ||
{ | ||
"conditions": [ | ||
{ | ||
"fn": "booleanEquals", | ||
"argv": [ | ||
true, | ||
{ | ||
"fn": "getAttr", | ||
"argv": [ | ||
{ | ||
"ref": "PartitionResult" | ||
}, | ||
"supportsFIPS" | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"type": "tree", | ||
"rules": [ | ||
{ | ||
"conditions": [], | ||
"endpoint": { | ||
"url": "https://nimble-fips.{Region}.{PartitionResult#dnsSuffix}", | ||
"properties": {}, | ||
"headers": {} | ||
}, | ||
"type": "endpoint" | ||
} | ||
] | ||
}, | ||
{ | ||
"conditions": [], | ||
"error": "FIPS is enabled but this partition does not support FIPS", | ||
"type": "error" | ||
} | ||
] | ||
}, | ||
{ | ||
"conditions": [ | ||
{ | ||
"fn": "booleanEquals", | ||
"argv": [ | ||
{ | ||
"ref": "UseDualStack" | ||
}, | ||
true | ||
] | ||
} | ||
], | ||
"type": "tree", | ||
"rules": [ | ||
{ | ||
"conditions": [ | ||
{ | ||
"fn": "booleanEquals", | ||
"argv": [ | ||
true, | ||
{ | ||
"fn": "getAttr", | ||
"argv": [ | ||
{ | ||
"ref": "PartitionResult" | ||
}, | ||
"supportsDualStack" | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"type": "tree", | ||
"rules": [ | ||
{ | ||
"conditions": [], | ||
"endpoint": { | ||
"url": "https://nimble.{Region}.{PartitionResult#dualStackDnsSuffix}", | ||
"properties": {}, | ||
"headers": {} | ||
}, | ||
"type": "endpoint" | ||
} | ||
] | ||
}, | ||
{ | ||
"conditions": [], | ||
"error": "DualStack is enabled but this partition does not support DualStack", | ||
"type": "error" | ||
} | ||
] | ||
}, | ||
{ | ||
"conditions": [], | ||
"endpoint": { | ||
"url": "https://nimble.{Region}.{PartitionResult#dnsSuffix}", | ||
"properties": {}, | ||
"headers": {} | ||
}, | ||
"type": "endpoint" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"conditions": [], | ||
"error": "Invalid Configuration: Missing Region", | ||
"type": "error" | ||
} | ||
] | ||
} |
Oops, something went wrong.