forked from boto/botocore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
davidlm
committed
Oct 3, 2023
1 parent
67372e5
commit 4cce36a
Showing
4 changed files
with
246 additions
and
2 deletions.
There are no files selected for viewing
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
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,83 @@ | ||
{ | ||
"parameters": { | ||
"Region": { | ||
"type": "string", | ||
"builtIn": "AWS::Region", | ||
"documentation": "The region to dispatch this request, eg. `us-east-1`." | ||
}, | ||
"AccountId": { | ||
"type": "string", | ||
"builtIn": "AWS::Auth::AccountId", | ||
"documentation": "The account ID to dispatch this request, eg. `us-east-1`." | ||
} | ||
}, | ||
"rules": [ | ||
{ | ||
"documentation": "Template the account ID into the URI when account ID is set", | ||
"conditions": [ | ||
{ | ||
"fn": "isSet", | ||
"argv": [ | ||
{ | ||
"ref": "AccountId" | ||
} | ||
] | ||
}, | ||
{ | ||
"fn": "isSet", | ||
"argv": [ | ||
{ | ||
"ref": "Region" | ||
} | ||
] | ||
} | ||
], | ||
"endpoint": { | ||
"url": "https://{AccountId}.amazonaws.com", | ||
"properties": { | ||
"authSchemes": [ | ||
{ | ||
"name": "sigv4", | ||
"signingName": "serviceName", | ||
"signingRegion": "{Region}" | ||
} | ||
] | ||
} | ||
}, | ||
"type": "endpoint" | ||
}, | ||
{ | ||
"documentation": "Fallback when account ID isn't set", | ||
"conditions": [ | ||
{ | ||
"fn": "isSet", | ||
"argv": [ | ||
{ | ||
"ref": "Region" | ||
} | ||
] | ||
} | ||
], | ||
"endpoint": { | ||
"url": "https://amazonaws.com", | ||
"properties": { | ||
"authSchemes": [ | ||
{ | ||
"name": "sigv4", | ||
"signingName": "serviceName", | ||
"signingRegion": "{Region}" | ||
} | ||
] | ||
} | ||
}, | ||
"type": "endpoint" | ||
}, | ||
{ | ||
"documentation": "fallback when region is unset", | ||
"conditions": [], | ||
"error": "Region must be set to resolve a valid endpoint", | ||
"type": "error" | ||
} | ||
], | ||
"version": "1.3" | ||
} |
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
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