Skip to content

create_identity_center_application async

create_identity_center_application(
    name: IdentityCenterApplicationName,
    instance_arn: InstanceArn,
    *,
    config_overrides: Optional[AsyncWorkMailClientConfig] = None,
    client_token: Optional[IdempotencyClientToken] = None,
) -> CreateIdentityCenterApplicationResponse

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/async_work_mail.py
async 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[AsyncWorkMailClientConfig] = 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.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_workmail.types.create_identity_center_application_request.CreateIdentityCenterApplicationRequest]",
    ) -> AsyncOperationResponse[
        "capo_workmail.types.create_identity_center_application_response.CreateIdentityCenterApplicationResponse"
    ]:
        import capo_workmail._operations.work_mail_service.create_identity_center_application

        (
            output,
            http_response,
        ) = await capo_workmail._operations.work_mail_service.create_identity_center_application.async_create_identity_center_application(
            req.options, req.input
        )
        return AsyncOperationResponse(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 = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output