Deletes an alias for an Amazon Web Services account ID. The alias appears in the Amazon Web Services Support App page of the Amazon Web Services Support Center. The alias also appears in Slack messages from the Amazon Web Services Support App.
Raises:
-
AccessDeniedException
–
You don't have sufficient permission to perform this action.
-
InternalServerException
–
We can’t process your request right now because of a server issue. Try again later.
-
ResourceNotFoundException
–
The specified resource is missing or doesn't exist, such as an account alias, Slack channel configuration, or Slack workspace configuration.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_support_app/_services/support_app.py
| def delete_account_alias(
self, *, config_overrides: Optional[SupportAppClientConfig] = None
) -> "capo_support_app.types.delete_account_alias_result.DeleteAccountAliasResult":
"""<p>Deletes an alias for an Amazon Web Services account ID. The alias appears in the Amazon Web Services Support App page of the Amazon Web Services Support Center. The alias also appears in Slack messages from the Amazon Web Services Support App.</p>
Raises:
capo_support_app.errors.access_denied_exception.AccessDeniedException: <p>You don't have sufficient permission to perform this action.</p>
capo_support_app.errors.internal_server_exception.InternalServerException: <p>We can’t process your request right now because of a server issue. Try again later.</p>
capo_support_app.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource is missing or doesn't exist, such as an account alias, Slack channel configuration, or Slack workspace configuration.</p>
capo_support_app.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_support_app.types.delete_account_alias_request.DeleteAccountAliasRequest]",
) -> OperationResponse[
"capo_support_app.types.delete_account_alias_result.DeleteAccountAliasResult"
]:
import capo_support_app._operations.support_app.delete_account_alias
output, http_response = (
capo_support_app._operations.support_app.delete_account_alias.delete_account_alias(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteAccountAlias")
)
input_: capo_support_app.types.delete_account_alias_request.DeleteAccountAliasRequest = {}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|