Skip to content

Commit

Permalink
pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlm committed Oct 5, 2023
1 parent 5cd1734 commit 7ae7209
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions botocore/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,18 @@ class Config:
:type account_id_endpoint_mode: str
:param account_id_endpoint_mode: Enables or disables account ID based
endpoint routing for supported operations.
Defaults to None.
Valid options are:
* ``preferred`` - Attempt to resolve account ID during endpoint
resolution if supported by the service. If account ID cannot be
resolved, fallback to a different endpoint.
* ``required`` - Require account ID to be resolved during endpoint
resolution. If account ID cannot be resolved, raises
``AccountIDNotFound`` exception.
* ``disabled`` - Disable account ID based endpoint routing. The SDK
will not attempt to resolve account ID during endpoint resolution.
If not specified, the default behavior is ``preferred``.
"""

OPTION_DEFAULTS = OrderedDict(
Expand Down
2 changes: 1 addition & 1 deletion botocore/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,4 +817,4 @@ class UnknownEndpointResolutionBuiltInName(EndpointProviderError):


class AccountIDNotFound(EndpointResolutionError):
fmt = '`account_id_endpoint_mode is set to `required` but no account ID was found.'
fmt = '"account_id_endpoint_mode" is set to "required" but no account ID was found.'

0 comments on commit 7ae7209

Please sign in to comment.