aws-sdk-supplychain 1.97.0

AWS SDK for AWS Supply Chain
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`SendDataIntegrationEvent`](crate::operation::send_data_integration_event::builders::SendDataIntegrationEventFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`instance_id(impl Into<String>)`](crate::operation::send_data_integration_event::builders::SendDataIntegrationEventFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::send_data_integration_event::builders::SendDataIntegrationEventFluentBuilder::set_instance_id):<br>required: **true**<br><p>The AWS Supply Chain instance identifier.</p><br>
    ///   - [`event_type(DataIntegrationEventType)`](crate::operation::send_data_integration_event::builders::SendDataIntegrationEventFluentBuilder::event_type) / [`set_event_type(Option<DataIntegrationEventType>)`](crate::operation::send_data_integration_event::builders::SendDataIntegrationEventFluentBuilder::set_event_type):<br>required: **true**<br><p>The data event type.</p> <ul>  <li>   <p><b>scn.data.dataset</b> - Send data directly to any specified dataset.</p></li>  <li>   <p><b>scn.data.supplyplan</b> - Send data to <a href="https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/supply-plan-entity.html">supply_plan</a> dataset.</p></li>  <li>   <p><b>scn.data.shipmentstoporder</b> - Send data to <a href="https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/replenishment-shipment-stop-order-entity.html">shipment_stop_order</a> dataset.</p></li>  <li>   <p><b>scn.data.shipmentstop</b> - Send data to <a href="https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/replenishment-shipment-stop-entity.html">shipment_stop</a> dataset.</p></li>  <li>   <p><b>scn.data.shipment</b> - Send data to <a href="https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/replenishment-shipment-entity.html">shipment</a> dataset.</p></li>  <li>   <p><b>scn.data.reservation</b> - Send data to <a href="https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/planning-reservation-entity.html">reservation</a> dataset.</p></li>  <li>   <p><b>scn.data.processproduct</b> - Send data to <a href="https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/operation-process-product-entity.html">process_product</a> dataset.</p></li>  <li>   <p><b>scn.data.processoperation</b> - Send data to <a href="https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/operation-process-operation-entity.html">process_operation</a> dataset.</p></li>  <li>   <p><b>scn.data.processheader</b> - Send data to <a href="https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/operation-process-header-entity.html">process_header</a> dataset.</p></li>  <li>   <p><b>scn.data.forecast</b> - Send data to <a href="https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/forecast-forecast-entity.html">forecast</a> dataset.</p></li>  <li>   <p><b>scn.data.inventorylevel</b> - Send data to <a href="https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/inventory_mgmnt-inv-level-entity.html">inv_level</a> dataset.</p></li>  <li>   <p><b>scn.data.inboundorder</b> - Send data to <a href="https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/replenishment-inbound-order-entity.html">inbound_order</a> dataset.</p></li>  <li>   <p><b>scn.data.inboundorderline</b> - Send data to <a href="https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/replenishment-inbound-order-line-entity.html">inbound_order_line</a> dataset.</p></li>  <li>   <p><b>scn.data.inboundorderlineschedule</b> - Send data to <a href="https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/replenishment-inbound-order-line-schedule-entity.html">inbound_order_line_schedule</a> dataset.</p></li>  <li>   <p><b>scn.data.outboundorderline</b> - Send data to <a href="https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/outbound-fulfillment-order-line-entity.html">outbound_order_line</a> dataset.</p></li>  <li>   <p><b>scn.data.outboundshipment</b> - Send data to <a href="https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/outbound-fulfillment-shipment-entity.html">outbound_shipment</a> dataset.</p></li> </ul><br>
    ///   - [`data(impl Into<String>)`](crate::operation::send_data_integration_event::builders::SendDataIntegrationEventFluentBuilder::data) / [`set_data(Option<String>)`](crate::operation::send_data_integration_event::builders::SendDataIntegrationEventFluentBuilder::set_data):<br>required: **true**<br><p>The data payload of the event, should follow the data schema of the target dataset, or see <a href="https://docs.aws.amazon.com/aws-supply-chain/latest/userguide/data-model-asc.html">Data entities supported in AWS Supply Chain</a>. To send single data record, use JsonObject format; to send multiple data records, use JsonArray format.</p> <p>Note that for AWS Supply Chain dataset under <b>asc</b> namespace, it has a connection_id internal field that is not allowed to be provided by client directly, they will be auto populated.</p><br>
    ///   - [`event_group_id(impl Into<String>)`](crate::operation::send_data_integration_event::builders::SendDataIntegrationEventFluentBuilder::event_group_id) / [`set_event_group_id(Option<String>)`](crate::operation::send_data_integration_event::builders::SendDataIntegrationEventFluentBuilder::set_event_group_id):<br>required: **true**<br><p>Event identifier (for example, orderId for InboundOrder) used for data sharding or partitioning. Noted under one eventGroupId of same eventType and instanceId, events are processed sequentially in the order they are received by the server.</p><br>
    ///   - [`event_timestamp(DateTime)`](crate::operation::send_data_integration_event::builders::SendDataIntegrationEventFluentBuilder::event_timestamp) / [`set_event_timestamp(Option<DateTime>)`](crate::operation::send_data_integration_event::builders::SendDataIntegrationEventFluentBuilder::set_event_timestamp):<br>required: **false**<br><p>The timestamp (in epoch seconds) associated with the event. If not provided, it will be assigned with current timestamp.</p><br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::send_data_integration_event::builders::SendDataIntegrationEventFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::send_data_integration_event::builders::SendDataIntegrationEventFluentBuilder::set_client_token):<br>required: **false**<br><p>The idempotent client token. The token is active for 8 hours, and within its lifetime, it ensures the request completes only once upon retry with same client token. If omitted, the AWS SDK generates a unique value so that AWS SDK can safely retry the request upon network errors.</p><br>
    ///   - [`dataset_target(DataIntegrationEventDatasetTargetConfiguration)`](crate::operation::send_data_integration_event::builders::SendDataIntegrationEventFluentBuilder::dataset_target) / [`set_dataset_target(Option<DataIntegrationEventDatasetTargetConfiguration>)`](crate::operation::send_data_integration_event::builders::SendDataIntegrationEventFluentBuilder::set_dataset_target):<br>required: **false**<br><p>The target dataset configuration for <b>scn.data.dataset</b> event type.</p><br>
    /// - On success, responds with [`SendDataIntegrationEventOutput`](crate::operation::send_data_integration_event::SendDataIntegrationEventOutput) with field(s):
    ///   - [`event_id(String)`](crate::operation::send_data_integration_event::SendDataIntegrationEventOutput::event_id): <p>The unique event identifier.</p>
    /// - On failure, responds with [`SdkError<SendDataIntegrationEventError>`](crate::operation::send_data_integration_event::SendDataIntegrationEventError)
    pub fn send_data_integration_event(&self) -> crate::operation::send_data_integration_event::builders::SendDataIntegrationEventFluentBuilder {
        crate::operation::send_data_integration_event::builders::SendDataIntegrationEventFluentBuilder::new(self.handle.clone())
    }
}