Skip to content

create_ingestion_destination async

create_ingestion_destination(
    app_bundle_identifier: Identifier,
    ingestion_identifier: Identifier,
    processing_configuration: ProcessingConfiguration,
    destination_configuration: DestinationConfiguration,
    *,
    config_overrides: Optional[AsyncAppFabricClientConfig] = None,
    client_token: Optional[UUID] = None,
    tags: Optional[TagList] = None,
) -> CreateIngestionDestinationResponse

Creates an ingestion destination, which specifies how an application's ingested data is processed by Amazon Web Services AppFabric and where it's delivered.

Parameters:

  • app_bundle_identifier (Identifier) –

    The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle to use for the request.

  • ingestion_identifier (Identifier) –

    The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the ingestion to use for the request.

  • processing_configuration (ProcessingConfiguration) –

    Contains information about how ingested data is processed.

  • destination_configuration (DestinationConfiguration) –

    Contains information about the destination of ingested data.

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

    Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value.

    If you don't provide this value, then Amazon Web Services generates a random one for you.

    If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an IdempotentParameterMismatch error.

  • tags (Optional[TagList], default: None ) –

    A map of the key-value pairs of the tag or tags to assign to the resource.

Raises:

Source code in docs_src/capo_appfabric/_services/async_app_fabric.py
async def create_ingestion_destination(
    self,
    app_bundle_identifier: "capo_appfabric.types.identifier.Identifier",
    ingestion_identifier: "capo_appfabric.types.identifier.Identifier",
    processing_configuration: "capo_appfabric.types.processing_configuration.ProcessingConfiguration",
    destination_configuration: "capo_appfabric.types.destination_configuration.DestinationConfiguration",
    *,
    config_overrides: Optional[AsyncAppFabricClientConfig] = None,
    client_token: Optional["capo_appfabric.types.uuid.UUID"] = None,
    tags: Optional["capo_appfabric.types.tag_list.TagList"] = None,
) -> "capo_appfabric.types.create_ingestion_destination_response.CreateIngestionDestinationResponse":
    """<p>Creates an ingestion destination, which specifies how an application's ingested data is processed by Amazon Web Services AppFabric and where it's delivered.</p>

    Args:
        app_bundle_identifier: <p>The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle to use for the request.</p>
        ingestion_identifier: <p>The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the ingestion to use for the request.</p>
        processing_configuration: <p>Contains information about how ingested data is processed.</p>
        destination_configuration: <p>Contains information about the destination of ingested data.</p>
        client_token: <p>Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a <a href="https://wikipedia.org/wiki/Universally_unique_identifier">UUID type of value</a>.</p> <p>If you don't provide this value, then Amazon Web Services generates a random one for you.</p> <p>If you retry the operation with the same <code>ClientToken</code>, but with different parameters, the retry fails with an <code>IdempotentParameterMismatch</code> error.</p>
        tags: <p>A map of the key-value pairs of the tag or tags to assign to the resource.</p>

    Raises:
        capo_appfabric.errors.access_denied_exception.AccessDeniedException: <p>You are not authorized to perform this operation.</p>
        capo_appfabric.errors.conflict_exception.ConflictException: <p>The request has created a conflict. Check the request parameters and try again.</p>
        capo_appfabric.errors.internal_server_exception.InternalServerException: <p>The request processing has failed because of an unknown error, exception, or failure with an internal server.</p>
        capo_appfabric.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>The request exceeds a service quota.</p>
        capo_appfabric.errors.throttling_exception.ThrottlingException: <p>The request rate exceeds the limit.</p>
        capo_appfabric.errors.validation_exception.ValidationException: <p>The request has invalid or missing parameters.</p>
        capo_appfabric.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_appfabric.types.create_ingestion_destination_request.CreateIngestionDestinationRequest]",
    ) -> AsyncOperationResponse[
        "capo_appfabric.types.create_ingestion_destination_response.CreateIngestionDestinationResponse"
    ]:
        import capo_appfabric._operations.fabric_front_end_service.create_ingestion_destination

        (
            output,
            http_response,
        ) = await capo_appfabric._operations.fabric_front_end_service.create_ingestion_destination.async_create_ingestion_destination(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("CreateIngestionDestination")
    )
    input_: capo_appfabric.types.create_ingestion_destination_request.CreateIngestionDestinationRequest = {
        "app_bundle_identifier": app_bundle_identifier,
        "ingestion_identifier": ingestion_identifier,
        "processing_configuration": processing_configuration,
        "destination_configuration": destination_configuration,
    }
    if client_token is None:
        client_token = str(uuid.uuid4())
    input_["client_token"] = client_token
    if tags is not None:
        input_["tags"] = tags

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