aws-sdk-supplychain 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 65b51a5fcea748b580f4be602bdeb6463bf4c1f6de228dc3e6adaf42afa39f20
4
- data.tar.gz: 5bbbe88890322041f99641ced1da52efabb8048a2556ab301fabb079c386293d
3
+ metadata.gz: 74a6ae3a857bec4b975ab078c18a8bf9534d105f14cd555fac12192323f02007
4
+ data.tar.gz: 77eff2cd41663a14bab157e5308ba25385be9a770b06e13e49557a920cef56c2
5
5
  SHA512:
6
- metadata.gz: 475a4a2bb23f766b0087e3db2940362cd7e0ba2829b3556f93ca054ec538b3565465977c030336e47148c0396009fc64e862d207edde6ac8436af6d828e48369
7
- data.tar.gz: a1be6a2639012ee1c211532c7adeff2b5e218d0ec5df2aceaf58bd0a5dc27cceb1fb0b6ad778070e342b3f6ceb2b677ac63d185e1da85416a0417f68917d16f8
6
+ metadata.gz: d2e1c3de4e6d25d48a7727982099afaf948d8d823385f0c5d8c1f1e12590085f270b19f040a18b6b75ca32ba0ac18f080adc6e2873ec08e953564f36f1e2565b
7
+ data.tar.gz: 5feffcafed1f62893e3f9ebbcc4ce486c5d15c2086cfad5f58503e975ca9ce3844cb496d8a854a2dc8fd7dec17935334bf5cd75eb9e5b1f41ffa80c642f4fe1a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.2.0 (2024-04-10)
5
+ ------------------
6
+
7
+ * Feature - This release includes API SendDataIntegrationEvent for AWS Supply Chain
8
+
4
9
  1.1.0 (2024-01-26)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.2.0
@@ -413,6 +413,20 @@ module Aws::SupplyChain
413
413
  #
414
414
  # * {Types::CreateBillOfMaterialsImportJobResponse#job_id #job_id} => String
415
415
  #
416
+ #
417
+ # @example Example: Invoke CreateBillOfMaterialsImportJob
418
+ #
419
+ # resp = client.create_bill_of_materials_import_job({
420
+ # client_token: "550e8400-e29b-41d4-a716-446655440000",
421
+ # instance_id: "60f82bbd-71f7-4fcd-a941-472f574c5243",
422
+ # s3uri: "s3://mybucketname/pathelemene/file.csv",
423
+ # })
424
+ #
425
+ # resp.to_h outputs the following:
426
+ # {
427
+ # job_id: "f79b359b-1515-4436-a3bf-bae7b33e47b4",
428
+ # }
429
+ #
416
430
  # @example Request syntax with placeholder values
417
431
  #
418
432
  # resp = client.create_bill_of_materials_import_job({
@@ -446,6 +460,42 @@ module Aws::SupplyChain
446
460
  #
447
461
  # * {Types::GetBillOfMaterialsImportJobResponse#job #job} => Types::BillOfMaterialsImportJob
448
462
  #
463
+ #
464
+ # @example Example: Invoke GetBillOfMaterialsImportJob for a successful job
465
+ #
466
+ # resp = client.get_bill_of_materials_import_job({
467
+ # instance_id: "60f82bbd-71f7-4fcd-a941-472f574c5243",
468
+ # job_id: "f79b359b-1515-4436-a3bf-bae7b33e47b4",
469
+ # })
470
+ #
471
+ # resp.to_h outputs the following:
472
+ # {
473
+ # job: {
474
+ # instance_id: "60f82bbd-71f7-4fcd-a941-472f574c5243",
475
+ # job_id: "f79b359b-1515-4436-a3bf-bae7b33e47b4",
476
+ # message: "Import job completed successfully.",
477
+ # s3uri: "s3://mybucketname/pathelemene/file.csv",
478
+ # status: "SUCCESS",
479
+ # },
480
+ # }
481
+ #
482
+ # @example Example: Invoke GetBillOfMaterialsImportJob for an in-progress job
483
+ #
484
+ # resp = client.get_bill_of_materials_import_job({
485
+ # instance_id: "60f82bbd-71f7-4fcd-a941-472f574c5243",
486
+ # job_id: "f79b359b-1515-4436-a3bf-bae7b33e47b4",
487
+ # })
488
+ #
489
+ # resp.to_h outputs the following:
490
+ # {
491
+ # job: {
492
+ # instance_id: "60f82bbd-71f7-4fcd-a941-472f574c5243",
493
+ # job_id: "f79b359b-1515-4436-a3bf-bae7b33e47b4",
494
+ # s3uri: "s3://mybucketname/pathelemene/file.csv",
495
+ # status: "IN_PROGRESS",
496
+ # },
497
+ # }
498
+ #
449
499
  # @example Request syntax with placeholder values
450
500
  #
451
501
  # resp = client.get_bill_of_materials_import_job({
@@ -470,6 +520,285 @@ module Aws::SupplyChain
470
520
  req.send_request(options)
471
521
  end
472
522
 
523
+ # Send transactional data events with real-time data for analysis or
524
+ # monitoring.
525
+ #
526
+ # @option params [required, String] :instance_id
527
+ # The AWS Supply Chain instance identifier.
528
+ #
529
+ # @option params [required, String] :event_type
530
+ # The data event type.
531
+ #
532
+ # @option params [required, String] :data
533
+ # The data payload of the event.
534
+ #
535
+ # @option params [required, String] :event_group_id
536
+ # Event identifier (for example, orderId for InboundOrder) used for data
537
+ # sharing or partitioning.
538
+ #
539
+ # @option params [Time,DateTime,Date,Integer,String] :event_timestamp
540
+ # The event timestamp (in epoch seconds).
541
+ #
542
+ # @option params [String] :client_token
543
+ # The idempotent client token.
544
+ #
545
+ # **A suitable default value is auto-generated.** You should normally
546
+ # not need to pass this option.**
547
+ #
548
+ # @return [Types::SendDataIntegrationEventResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
549
+ #
550
+ # * {Types::SendDataIntegrationEventResponse#event_id #event_id} => String
551
+ #
552
+ #
553
+ # @example Example: Successful SendDataIntegrationEvent for inboundorder event type
554
+ #
555
+ # resp = client.send_data_integration_event({
556
+ # data: "{\"id\": \"inbound-order-id-test-123\", \"tpartner_id\": \"partner-id-test-123\" }",
557
+ # event_group_id: "inboundOrderId",
558
+ # event_timestamp: Time.parse(1515531081.123),
559
+ # event_type: "scn.data.inboundorder",
560
+ # instance_id: "8928ae12-15e5-4441-825d-ec2184f0a43a",
561
+ # })
562
+ #
563
+ # resp.to_h outputs the following:
564
+ # {
565
+ # event_id: "c4132c1d-8f60-44a2-9932-f723c4f7b8a7",
566
+ # }
567
+ #
568
+ # @example Example: Successful SendDataIntegrationEvent for inboundorderline event type
569
+ #
570
+ # resp = client.send_data_integration_event({
571
+ # data: "{\"id\": \"inbound-order-line-id-test-123\", \"order_id\": \"order-id-test-123\", \"tpartner_id\": \"partner-id-test-123\", \"product_id\": \"product-id-test-123\", \"quantity_submitted\": \"100.0\" }",
572
+ # event_group_id: "inboundOrderLineId",
573
+ # event_timestamp: Time.parse(1515531081.123),
574
+ # event_type: "scn.data.inboundorderline",
575
+ # instance_id: "8928ae12-15e5-4441-825d-ec2184f0a43a",
576
+ # })
577
+ #
578
+ # resp.to_h outputs the following:
579
+ # {
580
+ # event_id: "45d95db2-d106-40e0-aa98-f1204230a691",
581
+ # }
582
+ #
583
+ # @example Example: Successful SendDataIntegrationEvent for inboundorderlineschedule event type
584
+ #
585
+ # resp = client.send_data_integration_event({
586
+ # data: "{\"id\": \"inbound-order-line-schedule-id-test-123\", \"order_id\": \"order-id-test-123\", \"order_line_id\": \"order-line-id-test-123\", \"product_id\": \"product-id-test-123\"}",
587
+ # event_group_id: "inboundOrderLineScheduleId",
588
+ # event_timestamp: Time.parse(1515531081.123),
589
+ # event_type: "scn.data.inboundorderlineschedule",
590
+ # instance_id: "8928ae12-15e5-4441-825d-ec2184f0a43a",
591
+ # })
592
+ #
593
+ # resp.to_h outputs the following:
594
+ # {
595
+ # event_id: "5abba995-7735-4d1e-95c4-7cc93e48cf9f",
596
+ # }
597
+ #
598
+ # @example Example: Successful SendDataIntegrationEvent for forecast event type
599
+ #
600
+ # resp = client.send_data_integration_event({
601
+ # data: "{\"snapshot_date\": \"1672470400000\", \"product_id\": \"product-id-test-123\", \"site_id\": \"site-id-test-123\", \"region_id\": \"region-id-test-123\", \"product_group_id\": \"product-group-id-test-123\", \"forecast_start_dttm\": \"1672470400000\", \"forecast_end_dttm\": \"1672470400000\" }",
602
+ # event_group_id: "forecastId",
603
+ # event_timestamp: Time.parse(1515531081.123),
604
+ # event_type: "scn.data.forecast",
605
+ # instance_id: "8928ae12-15e5-4441-825d-ec2184f0a43a",
606
+ # })
607
+ #
608
+ # resp.to_h outputs the following:
609
+ # {
610
+ # event_id: "29312d5b-f499-4dcd-b017-3dab3cd34d61",
611
+ # }
612
+ #
613
+ # @example Example: Successful SendDataIntegrationEvent for inventorylevel event type
614
+ #
615
+ # resp = client.send_data_integration_event({
616
+ # data: "{\"snapshot_date\": \"1672470400000\", \"site_id\": \"site-id-test-123\", \"product_id\": \"product-id-test-123\", \"on_hand_inventory\": \"100.0\", \"inv_condition\": \"good\", \"lot_number\": \"lot-number-test-123\"}",
617
+ # event_group_id: "inventoryLevelId",
618
+ # event_timestamp: Time.parse(1515531081.123),
619
+ # event_type: "scn.data.inventorylevel",
620
+ # instance_id: "8928ae12-15e5-4441-825d-ec2184f0a43a",
621
+ # })
622
+ #
623
+ # resp.to_h outputs the following:
624
+ # {
625
+ # event_id: "3aa78324-acd8-4fdd-a19e-231ea003c2b3",
626
+ # }
627
+ #
628
+ # @example Example: Successful SendDataIntegrationEvent for outboundorderline event type
629
+ #
630
+ # resp = client.send_data_integration_event({
631
+ # data: "{\"id\": \"outbound-orderline-id-test-123\", \"cust_order_id\": \"cust-order-id-test-123\", \"product_id\": \"product-id-test-123\" }",
632
+ # event_group_id: "outboundOrderLineId",
633
+ # event_timestamp: Time.parse(1515531081.123),
634
+ # event_type: "scn.data.outboundorderline",
635
+ # instance_id: "8928ae12-15e5-4441-825d-ec2184f0a43a",
636
+ # })
637
+ #
638
+ # resp.to_h outputs the following:
639
+ # {
640
+ # event_id: "959b7ef9-5e2d-4795-b1ca-5b16a3eb6b89",
641
+ # }
642
+ #
643
+ # @example Example: Successful SendDataIntegrationEvent for outboundshipment event type
644
+ #
645
+ # resp = client.send_data_integration_event({
646
+ # data: "{\"id\": \"outbound-shipment-id-test-123\", \"cust_order_id\": \"cust-order-id-test-123\", \"cust_order_line_id\": \"cust-order-line-id-test-123\", \"product_id\": \"product-id-test-123\" }",
647
+ # event_group_id: "outboundShipmentId",
648
+ # event_timestamp: Time.parse(1515531081.123),
649
+ # event_type: "scn.data.outboundshipment",
650
+ # instance_id: "8928ae12-15e5-4441-825d-ec2184f0a43a",
651
+ # })
652
+ #
653
+ # resp.to_h outputs the following:
654
+ # {
655
+ # event_id: "59feded3-5e46-4126-81bf-0137ca176ee0",
656
+ # }
657
+ #
658
+ # @example Example: Successful SendDataIntegrationEvent for processheader event type
659
+ #
660
+ # resp = client.send_data_integration_event({
661
+ # data: "{\"process_id\": \"process-id-test-123\" }",
662
+ # event_group_id: "processHeaderId",
663
+ # event_timestamp: Time.parse(1515531081.123),
664
+ # event_type: "scn.data.processheader",
665
+ # instance_id: "8928ae12-15e5-4441-825d-ec2184f0a43a",
666
+ # })
667
+ #
668
+ # resp.to_h outputs the following:
669
+ # {
670
+ # event_id: "564130eb-2d8a-4550-a768-ddf0daf7b4a9",
671
+ # }
672
+ #
673
+ # @example Example: Successful SendDataIntegrationEvent for processoperation event type
674
+ #
675
+ # resp = client.send_data_integration_event({
676
+ # data: "{\"process_operation_id\": \"process-operation-id-test-123\", \"process_id\": \"process-id-test-123\" }",
677
+ # event_group_id: "processOperationId",
678
+ # event_timestamp: Time.parse(1515531081.123),
679
+ # event_type: "scn.data.processoperation",
680
+ # instance_id: "8928ae12-15e5-4441-825d-ec2184f0a43a",
681
+ # })
682
+ #
683
+ # resp.to_h outputs the following:
684
+ # {
685
+ # event_id: "db5df408-89c7-4b9f-a326-016f6c2b3396",
686
+ # }
687
+ #
688
+ # @example Example: Successful SendDataIntegrationEvent for processproduct event type
689
+ #
690
+ # resp = client.send_data_integration_event({
691
+ # data: "{\"process_product_id\": \"process-product-id-test-123\", \"process_id\": \"process-id-test-123\" }",
692
+ # event_group_id: "processProductId",
693
+ # event_timestamp: Time.parse(1515531081.123),
694
+ # event_type: "scn.data.processproduct",
695
+ # instance_id: "8928ae12-15e5-4441-825d-ec2184f0a43a",
696
+ # })
697
+ #
698
+ # resp.to_h outputs the following:
699
+ # {
700
+ # event_id: "6929b275-485e-4035-a798-99077ca6d669",
701
+ # }
702
+ #
703
+ # @example Example: Successful SendDataIntegrationEvent for reservation event type
704
+ #
705
+ # resp = client.send_data_integration_event({
706
+ # data: "{\"reservation_id\": \"reservation-id-test-123\", \"reservation_detail_id\": \"reservation-detail-id-test-123\" }",
707
+ # event_group_id: "reservationId",
708
+ # event_timestamp: Time.parse(1515531081.123),
709
+ # event_type: "scn.data.reservation",
710
+ # instance_id: "8928ae12-15e5-4441-825d-ec2184f0a43a",
711
+ # })
712
+ #
713
+ # resp.to_h outputs the following:
714
+ # {
715
+ # event_id: "f6c55a8b-fde2-44f6-848a-9b4336c77209",
716
+ # }
717
+ #
718
+ # @example Example: Successful SendDataIntegrationEvent for shipment event type
719
+ #
720
+ # resp = client.send_data_integration_event({
721
+ # data: "{\"id\": \"shipment-id-test-123\", \"supplier_tpartner_id\": \"supplier-tpartner-id-test-123\", \"product_id\": \"product-id-test-123\", \"order_id\": \"order-id-test-123\", \"order_line_id\": \"order-line-id-test-123\", \"package_id\": \"package-id-test-123\" }",
722
+ # event_group_id: "shipmentId",
723
+ # event_timestamp: Time.parse(1515531081.123),
724
+ # event_type: "scn.data.shipment",
725
+ # instance_id: "8928ae12-15e5-4441-825d-ec2184f0a43a",
726
+ # })
727
+ #
728
+ # resp.to_h outputs the following:
729
+ # {
730
+ # event_id: "61d079d8-3f56-49bb-b35a-c0271a4e4f0a",
731
+ # }
732
+ #
733
+ # @example Example: Successful SendDataIntegrationEvent for shipmentstop event type
734
+ #
735
+ # resp = client.send_data_integration_event({
736
+ # data: "{\"shipment_stop_id\": \"shipment-stop-id-test-123\", \"shipment_id\": \"shipment-id-test-123\" }",
737
+ # event_group_id: "shipmentStopId",
738
+ # event_timestamp: Time.parse(1515531081.123),
739
+ # event_type: "scn.data.shipmentstop",
740
+ # instance_id: "8928ae12-15e5-4441-825d-ec2184f0a43a",
741
+ # })
742
+ #
743
+ # resp.to_h outputs the following:
744
+ # {
745
+ # event_id: "3610992a-fc2f-4da4-9beb-724994622ba1",
746
+ # }
747
+ #
748
+ # @example Example: Successful SendDataIntegrationEvent for shipmentstoporder event type
749
+ #
750
+ # resp = client.send_data_integration_event({
751
+ # data: "{\"shipment_stop_order_id\": \"shipment-stop-order-id-test-123\", \"shipment_stop_id\": \"shipment-stop-id-test-123\", \"shipment_id\": \"shipment-id-test-123\" }",
752
+ # event_group_id: "shipmentStopOrderId",
753
+ # event_timestamp: Time.parse(1515531081.123),
754
+ # event_type: "scn.data.shipmentstoporder",
755
+ # instance_id: "8928ae12-15e5-4441-825d-ec2184f0a43a",
756
+ # })
757
+ #
758
+ # resp.to_h outputs the following:
759
+ # {
760
+ # event_id: "1d550a60-9321-4d25-a132-9dd4b2d9e934",
761
+ # }
762
+ #
763
+ # @example Example: Successful SendDataIntegrationEvent for supplyplan event type
764
+ #
765
+ # resp = client.send_data_integration_event({
766
+ # data: "{\"supply_plan_id\": \"supply-plan-id-test-123\" }",
767
+ # event_group_id: "supplyPlanId",
768
+ # event_timestamp: Time.parse(1515531081.123),
769
+ # event_type: "scn.data.supplyplan",
770
+ # instance_id: "8928ae12-15e5-4441-825d-ec2184f0a43a",
771
+ # })
772
+ #
773
+ # resp.to_h outputs the following:
774
+ # {
775
+ # event_id: "9abaee56-5dc4-4c31-8250-3206a651d8a1",
776
+ # }
777
+ #
778
+ # @example Request syntax with placeholder values
779
+ #
780
+ # resp = client.send_data_integration_event({
781
+ # instance_id: "UUID", # required
782
+ # event_type: "scn.data.forecast", # required, accepts scn.data.forecast, scn.data.inventorylevel, scn.data.inboundorder, scn.data.inboundorderline, scn.data.inboundorderlineschedule, scn.data.outboundorderline, scn.data.outboundshipment, scn.data.processheader, scn.data.processoperation, scn.data.processproduct, scn.data.reservation, scn.data.shipment, scn.data.shipmentstop, scn.data.shipmentstoporder, scn.data.supplyplan
783
+ # data: "DataIntegrationEventData", # required
784
+ # event_group_id: "DataIntegrationEventGroupId", # required
785
+ # event_timestamp: Time.now,
786
+ # client_token: "ClientToken",
787
+ # })
788
+ #
789
+ # @example Response structure
790
+ #
791
+ # resp.event_id #=> String
792
+ #
793
+ # @see http://docs.aws.amazon.com/goto/WebAPI/supplychain-2024-01-01/SendDataIntegrationEvent AWS API Documentation
794
+ #
795
+ # @overload send_data_integration_event(params = {})
796
+ # @param [Hash] params ({})
797
+ def send_data_integration_event(params = {}, options = {})
798
+ req = build_request(:send_data_integration_event, params)
799
+ req.send_request(options)
800
+ end
801
+
473
802
  # @!endgroup
474
803
 
475
804
  # @param params ({})
@@ -483,7 +812,7 @@ module Aws::SupplyChain
483
812
  params: params,
484
813
  config: config)
485
814
  context[:gem_name] = 'aws-sdk-supplychain'
486
- context[:gem_version] = '1.1.0'
815
+ context[:gem_version] = '1.2.0'
487
816
  Seahorse::Client::Request.new(handlers, context)
488
817
  end
489
818
 
@@ -21,12 +21,18 @@ module Aws::SupplyChain
21
21
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
22
22
  CreateBillOfMaterialsImportJobRequest = Shapes::StructureShape.new(name: 'CreateBillOfMaterialsImportJobRequest')
23
23
  CreateBillOfMaterialsImportJobResponse = Shapes::StructureShape.new(name: 'CreateBillOfMaterialsImportJobResponse')
24
+ DataIntegrationEventData = Shapes::StringShape.new(name: 'DataIntegrationEventData')
25
+ DataIntegrationEventGroupId = Shapes::StringShape.new(name: 'DataIntegrationEventGroupId')
26
+ DataIntegrationEventType = Shapes::StringShape.new(name: 'DataIntegrationEventType')
24
27
  GetBillOfMaterialsImportJobRequest = Shapes::StructureShape.new(name: 'GetBillOfMaterialsImportJobRequest')
25
28
  GetBillOfMaterialsImportJobResponse = Shapes::StructureShape.new(name: 'GetBillOfMaterialsImportJobResponse')
26
29
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
27
30
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
31
+ SendDataIntegrationEventRequest = Shapes::StructureShape.new(name: 'SendDataIntegrationEventRequest')
32
+ SendDataIntegrationEventResponse = Shapes::StructureShape.new(name: 'SendDataIntegrationEventResponse')
28
33
  ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
29
34
  String = Shapes::StringShape.new(name: 'String')
35
+ SyntheticTimestamp_epoch_seconds = Shapes::TimestampShape.new(name: 'SyntheticTimestamp_epoch_seconds', timestampFormat: "unixTimestamp")
30
36
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
31
37
  UUID = Shapes::StringShape.new(name: 'UUID')
32
38
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
@@ -65,6 +71,17 @@ module Aws::SupplyChain
65
71
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
66
72
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
67
73
 
74
+ SendDataIntegrationEventRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: UUID, required: true, location: "uri", location_name: "instanceId"))
75
+ SendDataIntegrationEventRequest.add_member(:event_type, Shapes::ShapeRef.new(shape: DataIntegrationEventType, required: true, location_name: "eventType"))
76
+ SendDataIntegrationEventRequest.add_member(:data, Shapes::ShapeRef.new(shape: DataIntegrationEventData, required: true, location_name: "data"))
77
+ SendDataIntegrationEventRequest.add_member(:event_group_id, Shapes::ShapeRef.new(shape: DataIntegrationEventGroupId, required: true, location_name: "eventGroupId"))
78
+ SendDataIntegrationEventRequest.add_member(:event_timestamp, Shapes::ShapeRef.new(shape: SyntheticTimestamp_epoch_seconds, location_name: "eventTimestamp"))
79
+ SendDataIntegrationEventRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
80
+ SendDataIntegrationEventRequest.struct_class = Types::SendDataIntegrationEventRequest
81
+
82
+ SendDataIntegrationEventResponse.add_member(:event_id, Shapes::ShapeRef.new(shape: UUID, required: true, location_name: "eventId"))
83
+ SendDataIntegrationEventResponse.struct_class = Types::SendDataIntegrationEventResponse
84
+
68
85
  ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
69
86
  ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
70
87
 
@@ -121,6 +138,21 @@ module Aws::SupplyChain
121
138
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
122
139
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
123
140
  end)
141
+
142
+ api.add_operation(:send_data_integration_event, Seahorse::Model::Operation.new.tap do |o|
143
+ o.name = "SendDataIntegrationEvent"
144
+ o.http_method = "POST"
145
+ o.http_request_uri = "/api-data/data-integration/instance/{instanceId}/data-integration-events"
146
+ o.input = Shapes::ShapeRef.new(shape: SendDataIntegrationEventRequest)
147
+ o.output = Shapes::ShapeRef.new(shape: SendDataIntegrationEventResponse)
148
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
149
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
150
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
151
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
152
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
153
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
154
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
155
+ end)
124
156
  end
125
157
 
126
158
  end
@@ -40,5 +40,19 @@ module Aws::SupplyChain
40
40
  end
41
41
  end
42
42
 
43
+ class SendDataIntegrationEvent
44
+ def self.build(context)
45
+ unless context.config.regional_endpoint
46
+ endpoint = context.config.endpoint.to_s
47
+ end
48
+ Aws::SupplyChain::EndpointParameters.new(
49
+ region: context.config.region,
50
+ use_dual_stack: context.config.use_dualstack_endpoint,
51
+ use_fips: context.config.use_fips_endpoint,
52
+ endpoint: endpoint,
53
+ )
54
+ end
55
+ end
56
+
43
57
  end
44
58
  end
@@ -62,6 +62,8 @@ module Aws::SupplyChain
62
62
  Aws::SupplyChain::Endpoints::CreateBillOfMaterialsImportJob.build(context)
63
63
  when :get_bill_of_materials_import_job
64
64
  Aws::SupplyChain::Endpoints::GetBillOfMaterialsImportJob.build(context)
65
+ when :send_data_integration_event
66
+ Aws::SupplyChain::Endpoints::SendDataIntegrationEvent.build(context)
65
67
  end
66
68
  end
67
69
  end
@@ -172,6 +172,63 @@ module Aws::SupplyChain
172
172
  include Aws::Structure
173
173
  end
174
174
 
175
+ # The request parameters for SendDataIntegrationEvent.
176
+ #
177
+ # @!attribute [rw] instance_id
178
+ # The AWS Supply Chain instance identifier.
179
+ # @return [String]
180
+ #
181
+ # @!attribute [rw] event_type
182
+ # The data event type.
183
+ # @return [String]
184
+ #
185
+ # @!attribute [rw] data
186
+ # The data payload of the event.
187
+ # @return [String]
188
+ #
189
+ # @!attribute [rw] event_group_id
190
+ # Event identifier (for example, orderId for InboundOrder) used for
191
+ # data sharing or partitioning.
192
+ # @return [String]
193
+ #
194
+ # @!attribute [rw] event_timestamp
195
+ # The event timestamp (in epoch seconds).
196
+ # @return [Time]
197
+ #
198
+ # @!attribute [rw] client_token
199
+ # The idempotent client token.
200
+ #
201
+ # **A suitable default value is auto-generated.** You should normally
202
+ # not need to pass this option.
203
+ # @return [String]
204
+ #
205
+ # @see http://docs.aws.amazon.com/goto/WebAPI/supplychain-2024-01-01/SendDataIntegrationEventRequest AWS API Documentation
206
+ #
207
+ class SendDataIntegrationEventRequest < Struct.new(
208
+ :instance_id,
209
+ :event_type,
210
+ :data,
211
+ :event_group_id,
212
+ :event_timestamp,
213
+ :client_token)
214
+ SENSITIVE = [:data]
215
+ include Aws::Structure
216
+ end
217
+
218
+ # The response parameters for SendDataIntegrationEvent.
219
+ #
220
+ # @!attribute [rw] event_id
221
+ # The unique event identifier.
222
+ # @return [String]
223
+ #
224
+ # @see http://docs.aws.amazon.com/goto/WebAPI/supplychain-2024-01-01/SendDataIntegrationEventResponse AWS API Documentation
225
+ #
226
+ class SendDataIntegrationEventResponse < Struct.new(
227
+ :event_id)
228
+ SENSITIVE = []
229
+ include Aws::Structure
230
+ end
231
+
175
232
  # Request would cause a service quota to be exceeded.
176
233
  #
177
234
  # @!attribute [rw] message
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-supplychain/customizations'
52
52
  # @!group service
53
53
  module Aws::SupplyChain
54
54
 
55
- GEM_VERSION = '1.1.0'
55
+ GEM_VERSION = '1.2.0'
56
56
 
57
57
  end
data/sig/client.rbs CHANGED
@@ -94,6 +94,21 @@ module Aws
94
94
  job_id: ::String
95
95
  ) -> _GetBillOfMaterialsImportJobResponseSuccess
96
96
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetBillOfMaterialsImportJobResponseSuccess
97
+
98
+ interface _SendDataIntegrationEventResponseSuccess
99
+ include ::Seahorse::Client::_ResponseSuccess[Types::SendDataIntegrationEventResponse]
100
+ def event_id: () -> ::String
101
+ end
102
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SupplyChain/Client.html#send_data_integration_event-instance_method
103
+ def send_data_integration_event: (
104
+ instance_id: ::String,
105
+ event_type: ("scn.data.forecast" | "scn.data.inventorylevel" | "scn.data.inboundorder" | "scn.data.inboundorderline" | "scn.data.inboundorderlineschedule" | "scn.data.outboundorderline" | "scn.data.outboundshipment" | "scn.data.processheader" | "scn.data.processoperation" | "scn.data.processproduct" | "scn.data.reservation" | "scn.data.shipment" | "scn.data.shipmentstop" | "scn.data.shipmentstoporder" | "scn.data.supplyplan"),
106
+ data: ::String,
107
+ event_group_id: ::String,
108
+ ?event_timestamp: ::Time,
109
+ ?client_token: ::String
110
+ ) -> _SendDataIntegrationEventResponseSuccess
111
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SendDataIntegrationEventResponseSuccess
97
112
  end
98
113
  end
99
114
  end
data/sig/types.rbs CHANGED
@@ -60,6 +60,21 @@ module Aws::SupplyChain
60
60
  SENSITIVE: []
61
61
  end
62
62
 
63
+ class SendDataIntegrationEventRequest
64
+ attr_accessor instance_id: ::String
65
+ attr_accessor event_type: ("scn.data.forecast" | "scn.data.inventorylevel" | "scn.data.inboundorder" | "scn.data.inboundorderline" | "scn.data.inboundorderlineschedule" | "scn.data.outboundorderline" | "scn.data.outboundshipment" | "scn.data.processheader" | "scn.data.processoperation" | "scn.data.processproduct" | "scn.data.reservation" | "scn.data.shipment" | "scn.data.shipmentstop" | "scn.data.shipmentstoporder" | "scn.data.supplyplan")
66
+ attr_accessor data: ::String
67
+ attr_accessor event_group_id: ::String
68
+ attr_accessor event_timestamp: ::Time
69
+ attr_accessor client_token: ::String
70
+ SENSITIVE: [:data]
71
+ end
72
+
73
+ class SendDataIntegrationEventResponse
74
+ attr_accessor event_id: ::String
75
+ SENSITIVE: []
76
+ end
77
+
63
78
  class ServiceQuotaExceededException
64
79
  attr_accessor message: ::String
65
80
  SENSITIVE: []
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-supplychain
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-26 00:00:00.000000000 Z
11
+ date: 2024-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core