Returns the current account customization settings, including account color, visible services, and visible Regions. Settings that you have not configured return their default values: visible Regions and visible services return `null`, and account color returns `none`.
The visibleServices and visibleRegions settings control only the appearance of services and Regions in the Amazon Web Services Management Console. They do not restrict access through the CLI, SDKs, or other APIs.
Raises:
Examples:
Get account customizations
Retrieves all account customization settings
>>> client.get_account_customizations()
Source code in docs_src/capo_uxc/_services/uxc.py
| def get_account_customizations(
self, *, config_overrides: Optional[uxcClientConfig] = None
) -> "capo_uxc.types.get_account_customizations_output.GetAccountCustomizationsOutput":
"""<p>Returns the current account customization settings, including account color, visible services, and visible Regions. Settings that you have not configured return their default values: visible Regions and visible services return `null`, and account color returns `none`.</p> <note> <p>The <code>visibleServices</code> and <code>visibleRegions</code> settings control only the appearance of services and Regions in the Amazon Web Services Management Console. They do not restrict access through the CLI, SDKs, or other APIs.</p> </note>
Raises:
capo_uxc.errors.access_denied_exception.AccessDeniedException: <p>You don't have sufficient access to perform this operation. Verify that your IAM policy includes the required <code>uxc:</code> permissions for the operation that you are calling. For more information on IAM permissions, see <a href="https://docs.aws.amazon.com/awsconsolehelpdocs/latest/gsg/security-iam-awsmanpol.html">Amazon Web Services managed policies for Amazon Web Services Management Console</a>.</p>
capo_uxc.errors.internal_server_exception.InternalServerException: <p>The service encountered an internal error. Try your request again later.</p>
capo_uxc.errors.throttling_exception.ThrottlingException: <p>The request was denied because of request throttling. Reduce the frequency of your requests.</p>
capo_uxc.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
capo_uxc.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
Get account customizations
Retrieves all account customization settings
>>> client.get_account_customizations()
"""
def _handler(
req: "OperationRequest[capo_uxc.types.get_account_customizations_input.GetAccountCustomizationsInput]",
) -> OperationResponse[
"capo_uxc.types.get_account_customizations_output.GetAccountCustomizationsOutput"
]:
import capo_uxc._operations.aws_account_ux_setting.get_account_customizations
output, http_response = (
capo_uxc._operations.aws_account_ux_setting.get_account_customizations.get_account_customizations(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetAccountCustomizations")
)
input_: capo_uxc.types.get_account_customizations_input.GetAccountCustomizationsInput = {}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|