Skip to content

get_account_customizations async

get_account_customizations(
    *, config_overrides: Optional[AsyncuxcClientConfig] = None
) -> GetAccountCustomizationsOutput

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

>>> await client.get_account_customizations()
Source code in docs_src/capo_uxc/_services/async_uxc.py
async def get_account_customizations(
    self, *, config_overrides: Optional[AsyncuxcClientConfig] = 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

        >>> await client.get_account_customizations()
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_uxc.types.get_account_customizations_input.GetAccountCustomizationsInput]",
    ) -> AsyncOperationResponse[
        "capo_uxc.types.get_account_customizations_output.GetAccountCustomizationsOutput"
    ]:
        import capo_uxc._operations.aws_account_ux_setting.get_account_customizations

        (
            output,
            http_response,
        ) = await capo_uxc._operations.aws_account_ux_setting.get_account_customizations.async_get_account_customizations(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetAccountCustomizations")
    )
    input_: capo_uxc.types.get_account_customizations_input.GetAccountCustomizationsInput = {}

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output