Skip to content

get_data_integration_flow async

get_data_integration_flow(
    instance_id: UUID,
    name: DataIntegrationFlowName,
    *,
    config_overrides: Optional[AsyncSupplyChainClientConfig] = None,
) -> GetDataIntegrationFlowResponse

Enables you to programmatically view a specific data pipeline for the provided Amazon Web Services Supply Chain instance and DataIntegrationFlow name.

Parameters:

  • instance_id (UUID) –

    The Amazon Web Services Supply Chain instance identifier.

  • name (DataIntegrationFlowName) –

    The name of the DataIntegrationFlow created.

Raises:

Examples:

Successful GetDataIntegrationFlow

>>> await client.get_data_integration_flow(instance_id='8850c54e-e187-4fa7-89d4-6370f165174d', name='testStagingFlow')
Source code in docs_src/capo_supplychain/_services/async_supply_chain.py
async def get_data_integration_flow(
    self,
    instance_id: "capo_supplychain.types.uuid.UUID",
    name: "capo_supplychain.types.data_integration_flow_name.DataIntegrationFlowName",
    *,
    config_overrides: Optional[AsyncSupplyChainClientConfig] = None,
) -> "capo_supplychain.types.get_data_integration_flow_response.GetDataIntegrationFlowResponse":
    """<p>Enables you to programmatically view a specific data pipeline for the provided Amazon Web Services Supply Chain instance and DataIntegrationFlow name.</p>

    Args:
        instance_id: <p>The Amazon Web Services Supply Chain instance identifier.</p>
        name: <p>The name of the DataIntegrationFlow created.</p>

    Raises:
        capo_supplychain.errors.access_denied_exception.AccessDeniedException: <p>You do not have the required privileges to perform this action.</p>
        capo_supplychain.errors.conflict_exception.ConflictException: <p>Updating or deleting a resource can cause an inconsistent state.</p>
        capo_supplychain.errors.internal_server_exception.InternalServerException: <p>Unexpected error during processing of request.</p>
        capo_supplychain.errors.resource_not_found_exception.ResourceNotFoundException: <p>Request references a resource which does not exist.</p>
        capo_supplychain.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>Request would cause a service quota to be exceeded.</p>
        capo_supplychain.errors.throttling_exception.ThrottlingException: <p>Request was denied due to request throttling.</p>
        capo_supplychain.errors.validation_exception.ValidationException: <p>The input does not satisfy the constraints specified by an AWS service.</p>
        capo_supplychain.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        Successful GetDataIntegrationFlow

        >>> await client.get_data_integration_flow(instance_id='8850c54e-e187-4fa7-89d4-6370f165174d', name='testStagingFlow')
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_supplychain.types.get_data_integration_flow_request.GetDataIntegrationFlowRequest]",
    ) -> AsyncOperationResponse[
        "capo_supplychain.types.get_data_integration_flow_response.GetDataIntegrationFlowResponse"
    ]:
        import capo_supplychain._operations.galaxy_public_api_gateway.get_data_integration_flow

        (
            output,
            http_response,
        ) = await capo_supplychain._operations.galaxy_public_api_gateway.get_data_integration_flow.async_get_data_integration_flow(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    def _redact_output(
        output: "capo_supplychain.types.get_data_integration_flow_response.GetDataIntegrationFlowResponse",
    ) -> dict[str, Any]:
        import capo_supplychain.types.get_data_integration_flow_response

        return capo_supplychain.types.get_data_integration_flow_response.redact_sensitive(
            output
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("GetDataIntegrationFlow", redact_output=_redact_output),
    )
    input_: capo_supplychain.types.get_data_integration_flow_request.GetDataIntegrationFlowRequest = {
        "instance_id": instance_id,
        "name": name,
    }

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