Skip to content

get_account_settings

get_account_settings(
    *, config_overrides: Optional[ArtifactClientConfig] = None
) -> GetAccountSettingsResponse

Get the account settings for Artifact.

Raises:

Examples:

Invoke GetAccountSettings operation Get the current account settings.

>>> client.get_account_settings()
Source code in docs_src/capo_artifact/_services/artifact.py
def get_account_settings(
    self, *, config_overrides: Optional[ArtifactClientConfig] = None
) -> "capo_artifact.types.get_account_settings_response.GetAccountSettingsResponse":
    """<p>Get the account settings for Artifact.</p>

    Raises:
        capo_artifact.errors.access_denied_exception.AccessDeniedException: <p>User does not have sufficient access to perform this action.</p>
        capo_artifact.errors.conflict_exception.ConflictException: <p>Request to create/modify content would result in a conflict.</p>
        capo_artifact.errors.internal_server_exception.InternalServerException: <p>An unknown server exception has occurred.</p>
        capo_artifact.errors.resource_not_found_exception.ResourceNotFoundException: <p>Request references a resource which does not exist.</p>
        capo_artifact.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>Request would cause a service quota to be exceeded.</p>
        capo_artifact.errors.throttling_exception.ThrottlingException: <p>Request was denied due to request throttling.</p>
        capo_artifact.errors.validation_exception.ValidationException: <p>Request fails to satisfy the constraints specified by an AWS service.</p>
        capo_artifact.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        Invoke GetAccountSettings operation
        Get the current account settings.

        >>> client.get_account_settings()
    """

    def _handler(
        req: "OperationRequest[capo_artifact.types.get_account_settings_request.GetAccountSettingsRequest]",
    ) -> OperationResponse[
        "capo_artifact.types.get_account_settings_response.GetAccountSettingsResponse"
    ]:
        import capo_artifact._operations.artifact.get_account_settings

        output, http_response = (
            capo_artifact._operations.artifact.get_account_settings.get_account_settings(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetAccountSettings")
    )
    input_: capo_artifact.types.get_account_settings_request.GetAccountSettingsRequest = {}

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output