Creates the WorkMail application in IAM Identity Center that can be used later in the WorkMail - IdC integration. For more information, see PutIdentityProviderConfiguration. This action does not affect the authentication settings for any WorkMail organizations.
Parameters:
Raises:
Source code in docs_src/capo_workmail/_services/work_mail.py
| def create_identity_center_application(
self,
name: "capo_workmail.types.identity_center_application_name.IdentityCenterApplicationName",
instance_arn: "capo_workmail.types.instance_arn.InstanceArn",
*,
config_overrides: Optional[WorkMailClientConfig] = None,
client_token: Optional[
"capo_workmail.types.idempotency_client_token.IdempotencyClientToken"
] = None,
) -> "capo_workmail.types.create_identity_center_application_response.CreateIdentityCenterApplicationResponse":
"""<p> Creates the WorkMail application in IAM Identity Center that can be used later in the WorkMail - IdC integration. For more information, see PutIdentityProviderConfiguration. This action does not affect the authentication settings for any WorkMail organizations. </p>
Args:
name: <p> The name of the IAM Identity Center application. </p>
instance_arn: <p> The Amazon Resource Name (ARN) of the instance. </p>
client_token: <p> The idempotency token associated with the request. </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.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_workmail.types.create_identity_center_application_request.CreateIdentityCenterApplicationRequest]",
) -> OperationResponse[
"capo_workmail.types.create_identity_center_application_response.CreateIdentityCenterApplicationResponse"
]:
import capo_workmail._operations.work_mail_service.create_identity_center_application
output, http_response = (
capo_workmail._operations.work_mail_service.create_identity_center_application.create_identity_center_application(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("CreateIdentityCenterApplication")
)
input_: capo_workmail.types.create_identity_center_application_request.CreateIdentityCenterApplicationRequest = {
"name": name,
"instance_arn": instance_arn,
}
if client_token is None:
client_token = str(uuid.uuid4())
input_["client_token"] = client_token
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|