Returns the account preferences settings for the Amazon Web Services account associated with the user making the request, in the current Amazon Web Services Region.
Parameters:
-
next_token
(Optional[Token], default:
None
)
–
(Optional) You can use NextToken in a subsequent request to fetch the next page of Amazon Web Services account preferences if the response payload was paginated.
-
max_results
(Optional[MaxResults], default:
None
)
–
(Optional) When retrieving account preferences, you can optionally specify the MaxItems parameter to limit the number of objects returned in a response. The default value is 100.
Raises:
Source code in docs_src/capo_efs/_services/efs.py
| def describe_account_preferences(
self,
*,
config_overrides: Optional[EFSClientConfig] = None,
next_token: Optional["capo_efs.types.token.Token"] = None,
max_results: Optional["capo_efs.types.max_results.MaxResults"] = None,
) -> "capo_efs.types.describe_account_preferences_response.DescribeAccountPreferencesResponse":
"""<p>Returns the account preferences settings for the Amazon Web Services account associated with the user making the request, in the current Amazon Web Services Region.</p>
Args:
next_token: <p>(Optional) You can use <code>NextToken</code> in a subsequent request to fetch the next page of Amazon Web Services account preferences if the response payload was paginated.</p>
max_results: <p>(Optional) When retrieving account preferences, you can optionally specify the <code>MaxItems</code> parameter to limit the number of objects returned in a response. The default value is 100. </p>
Raises:
capo_efs.errors.internal_server_error.InternalServerError: <p>Returned if an error occurred on the server side.</p>
capo_efs.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_efs.types.describe_account_preferences_request.DescribeAccountPreferencesRequest]",
) -> OperationResponse[
"capo_efs.types.describe_account_preferences_response.DescribeAccountPreferencesResponse"
]:
import capo_efs._operations.magnolio_api_service_v20150201.describe_account_preferences
output, http_response = (
capo_efs._operations.magnolio_api_service_v20150201.describe_account_preferences.describe_account_preferences(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeAccountPreferences")
)
input_: capo_efs.types.describe_account_preferences_request.DescribeAccountPreferencesRequest = {}
if next_token is not None:
input_["next_token"] = next_token
if max_results is not None:
input_["max_results"] = max_results
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|