Deletes the IAM Identity Center application from WorkMail. This action does not affect the authentication settings for any WorkMail organizations.
Parameters:
-
application_arn
(ApplicationArn)
–
The Amazon Resource Name (ARN) of the application.
Raises:
Source code in docs_src/capo_workmail/_services/work_mail.py
| def delete_identity_center_application(
self,
application_arn: "capo_workmail.types.application_arn.ApplicationArn",
*,
config_overrides: Optional[WorkMailClientConfig] = None,
) -> "capo_workmail.types.delete_identity_center_application_response.DeleteIdentityCenterApplicationResponse":
"""<p> Deletes the IAM Identity Center application from WorkMail. This action does not affect the authentication settings for any WorkMail organizations. </p>
Args:
application_arn: <p> The Amazon Resource Name (ARN) of the application. </p>
Raises:
capo_workmail.errors.invalid_parameter_exception.InvalidParameterException: <p>One or more of the input parameters don't match the service's restrictions.</p>
capo_workmail.errors.organization_state_exception.OrganizationStateException: <p>The organization must have a valid state to perform certain operations on the organization or its members.</p>
capo_workmail.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_workmail.types.delete_identity_center_application_request.DeleteIdentityCenterApplicationRequest]",
) -> OperationResponse[
"capo_workmail.types.delete_identity_center_application_response.DeleteIdentityCenterApplicationResponse"
]:
import capo_workmail._operations.work_mail_service.delete_identity_center_application
output, http_response = (
capo_workmail._operations.work_mail_service.delete_identity_center_application.delete_identity_center_application(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteIdentityCenterApplication")
)
input_: capo_workmail.types.delete_identity_center_application_request.DeleteIdentityCenterApplicationRequest = {
"application_arn": application_arn
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|