Skip to content

create_data_integration_association async

create_data_integration_association(
    data_integration_identifier: Identifier,
    *,
    config_overrides: Optional[AsyncAppIntegrationsClientConfig] = None,
    client_id: Optional[ClientId] = None,
    object_configuration: Optional[ObjectConfiguration] = None,
    destination_uri: Optional[DestinationURI] = None,
    client_association_metadata: Optional[ClientAssociationMetadata] = None,
    client_token: Optional[IdempotencyToken] = None,
    execution_configuration: Optional[ExecutionConfiguration] = None,
) -> CreateDataIntegrationAssociationResponse

Creates and persists a DataIntegrationAssociation resource.

Parameters:

  • data_integration_identifier (Identifier) –

    A unique identifier for the DataIntegration.

  • client_id (Optional[ClientId], default: None ) –

    The identifier for the client that is associated with the DataIntegration association.

  • destination_uri (Optional[DestinationURI], default: None ) –

    The URI of the data destination.

  • client_association_metadata (Optional[ClientAssociationMetadata], default: None ) –

    The mapping of metadata to be extracted from the data.

  • client_token (Optional[IdempotencyToken], default: None ) –

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.

  • execution_configuration (Optional[ExecutionConfiguration], default: None ) –

    The configuration for how the files should be pulled from the source.

Raises:

Source code in docs_src/capo_appintegrations/_services/async_app_integrations.py
async def create_data_integration_association(
    self,
    data_integration_identifier: "capo_appintegrations.types.identifier.Identifier",
    *,
    config_overrides: Optional[AsyncAppIntegrationsClientConfig] = None,
    client_id: Optional["capo_appintegrations.types.client_id.ClientId"] = None,
    object_configuration: Optional[
        "capo_appintegrations.types.object_configuration.ObjectConfiguration"
    ] = None,
    destination_uri: Optional[
        "capo_appintegrations.types.destination_uri.DestinationURI"
    ] = None,
    client_association_metadata: Optional[
        "capo_appintegrations.types.client_association_metadata.ClientAssociationMetadata"
    ] = None,
    client_token: Optional[
        "capo_appintegrations.types.idempotency_token.IdempotencyToken"
    ] = None,
    execution_configuration: Optional[
        "capo_appintegrations.types.execution_configuration.ExecutionConfiguration"
    ] = None,
) -> "capo_appintegrations.types.create_data_integration_association_response.CreateDataIntegrationAssociationResponse":
    """<p>Creates and persists a DataIntegrationAssociation resource.</p>

    Args:
        data_integration_identifier: <p>A unique identifier for the DataIntegration.</p>
        client_id: <p>The identifier for the client that is associated with the DataIntegration association.</p>
        destination_uri: <p>The URI of the data destination.</p>
        client_association_metadata: <p>The mapping of metadata to be extracted from the data.</p>
        client_token: <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see <a href="https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/">Making retries safe with idempotent APIs</a>.</p>
        execution_configuration: <p>The configuration for how the files should be pulled from the source.</p>

    Raises:
        capo_appintegrations.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_appintegrations.errors.internal_service_error.InternalServiceError: <p>Request processing failed due to an error or failure with the service.</p>
        capo_appintegrations.errors.invalid_request_exception.InvalidRequestException: <p>The request is not valid. </p>
        capo_appintegrations.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource was not found.</p>
        capo_appintegrations.errors.resource_quota_exceeded_exception.ResourceQuotaExceededException: <p>The allowed quota for the resource has been exceeded.</p>
        capo_appintegrations.errors.throttling_exception.ThrottlingException: <p>The throttling limit has been exceeded.</p>
        capo_appintegrations.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_appintegrations.types.create_data_integration_association_request.CreateDataIntegrationAssociationRequest]",
    ) -> AsyncOperationResponse[
        "capo_appintegrations.types.create_data_integration_association_response.CreateDataIntegrationAssociationResponse"
    ]:
        import capo_appintegrations._operations.amazon_app_integration_service.create_data_integration_association

        (
            output,
            http_response,
        ) = await capo_appintegrations._operations.amazon_app_integration_service.create_data_integration_association.async_create_data_integration_association(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("CreateDataIntegrationAssociation")
    )
    input_: capo_appintegrations.types.create_data_integration_association_request.CreateDataIntegrationAssociationRequest = {
        "data_integration_identifier": data_integration_identifier
    }
    if client_id is not None:
        input_["client_id"] = client_id
    if object_configuration is not None:
        input_["object_configuration"] = object_configuration
    if destination_uri is not None:
        input_["destination_uri"] = destination_uri
    if client_association_metadata is not None:
        input_["client_association_metadata"] = client_association_metadata
    if client_token is None:
        client_token = str(uuid.uuid4())
    input_["client_token"] = client_token
    if execution_configuration is not None:
        input_["execution_configuration"] = execution_configuration

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