Get the account settings for Artifact.
Raises:
Examples:
Invoke GetAccountSettings operation
Get the current account settings.
>>> await client.get_account_settings()
Source code in docs_src/capo_artifact/_services/async_artifact.py
| async def get_account_settings(
self, *, config_overrides: Optional[AsyncArtifactClientConfig] = 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.
>>> await client.get_account_settings()
"""
async def _handler(
req: "AsyncOperationRequest[capo_artifact.types.get_account_settings_request.GetAccountSettingsRequest]",
) -> AsyncOperationResponse[
"capo_artifact.types.get_account_settings_response.GetAccountSettingsResponse"
]:
import capo_artifact._operations.artifact.get_account_settings
(
output,
http_response,
) = await capo_artifact._operations.artifact.get_account_settings.async_get_account_settings(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetAccountSettings")
)
input_: capo_artifact.types.get_account_settings_request.GetAccountSettingsRequest = {}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|