Skip to content

create_integration_connection async

create_integration_connection(
    integration_arn: IntegrationArn,
    environment_arn: EnvironmentArn,
    *,
    config_overrides: Optional[AsyncAmplifyGen3ClientConfig] = None,
) -> CreateIntegrationConnectionResponse

Creates a connection between an integration configuration and an environment.

Parameters:

  • integration_arn (IntegrationArn) –

    The Amazon Resource Name (ARN) of the integration configuration to connect.

  • environment_arn (EnvironmentArn) –

    The Amazon Resource Name (ARN) of the environment to connect the integration to.

Raises:

Source code in docs_src/capo_amplifygen3/_services/async_amplify_gen3.py
async def create_integration_connection(
    self,
    integration_arn: "capo_amplifygen3.types.integration_arn.IntegrationArn",
    environment_arn: "capo_amplifygen3.types.environment_arn.EnvironmentArn",
    *,
    config_overrides: Optional[AsyncAmplifyGen3ClientConfig] = None,
) -> "capo_amplifygen3.types.create_integration_connection_response.CreateIntegrationConnectionResponse":
    """<p>Creates a connection between an integration configuration and an environment.</p>

    Args:
        integration_arn: <p>The Amazon Resource Name (ARN) of the integration configuration to connect.</p>
        environment_arn: <p>The Amazon Resource Name (ARN) of the environment to connect the integration to.</p>

    Raises:
        capo_amplifygen3.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient permissions to perform this action.</p>
        capo_amplifygen3.errors.conflict_exception.ConflictException: <p>The request conflicts with the current state of the resource.</p>
        capo_amplifygen3.errors.internal_server_exception.InternalServerException: <p>An internal error occurred. Retry the request.</p>
        capo_amplifygen3.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request would exceed a service quota for your account.</p>
        capo_amplifygen3.errors.throttling_exception.ThrottlingException: <p>The request was denied because the request rate exceeds the allowed limit.</p>
        capo_amplifygen3.errors.validation_exception.ValidationException: <p>The request contains invalid parameters or is otherwise malformed.</p>
        capo_amplifygen3.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_amplifygen3.types.create_integration_connection_request.CreateIntegrationConnectionRequest]",
    ) -> AsyncOperationResponse[
        "capo_amplifygen3.types.create_integration_connection_response.CreateIntegrationConnectionResponse"
    ]:
        import capo_amplifygen3._operations.omega.create_integration_connection

        (
            output,
            http_response,
        ) = await capo_amplifygen3._operations.omega.create_integration_connection.async_create_integration_connection(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("CreateIntegrationConnection")
    )
    input_: capo_amplifygen3.types.create_integration_connection_request.CreateIntegrationConnectionRequest = {
        "integration_arn": integration_arn,
        "environment_arn": environment_arn,
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output