aws-sdk-supplychain 1.0.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: df7b0afd1fa1f9110a625c93a81821195c9abc542613785468b9dddeb41abccb
4
- data.tar.gz: dbee7b4e1a84237a373ed8d5fd7a8bd838e8b7fa78098ae3364232f30408b580
3
+ metadata.gz: 74a6ae3a857bec4b975ab078c18a8bf9534d105f14cd555fac12192323f02007
4
+ data.tar.gz: 77eff2cd41663a14bab157e5308ba25385be9a770b06e13e49557a920cef56c2
5
5
  SHA512:
6
- metadata.gz: 782472a52916b29d2aef03ea7bfb12eebafc8a3b37638dfba9f11999574be3a886c84d667e982652f74b4a117f24bb23492b0637d5f49dbc9e64ae41ce3e819d
7
- data.tar.gz: a145d32e7c01a6b420d78bb62159e460b7589d3f4eb145c27ed0fa57b434d561adfc10d1be17f54c2c0f43c16118d4964d93fa7f72a6494b142fea1316567cac
6
+ metadata.gz: d2e1c3de4e6d25d48a7727982099afaf948d8d823385f0c5d8c1f1e12590085f270b19f040a18b6b75ca32ba0ac18f080adc6e2873ec08e953564f36f1e2565b
7
+ data.tar.gz: 5feffcafed1f62893e3f9ebbcc4ce486c5d15c2086cfad5f58503e975ca9ce3844cb496d8a854a2dc8fd7dec17935334bf5cd75eb9e5b1f41ffa80c642f4fe1a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
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
+
9
+ 1.1.0 (2024-01-26)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.0.0 (2024-01-12)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.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.0.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
@@ -14,6 +14,7 @@ module Aws::SupplyChain
14
14
  option(
15
15
  :endpoint_provider,
16
16
  doc_type: 'Aws::SupplyChain::EndpointProvider',
17
+ rbs_type: 'untyped',
17
18
  docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
19
  'object that responds to `#resolve_endpoint(parameters)` '\
19
20
  'where `parameters` is a Struct similar to '\
@@ -61,6 +62,8 @@ module Aws::SupplyChain
61
62
  Aws::SupplyChain::Endpoints::CreateBillOfMaterialsImportJob.build(context)
62
63
  when :get_bill_of_materials_import_job
63
64
  Aws::SupplyChain::Endpoints::GetBillOfMaterialsImportJob.build(context)
65
+ when :send_data_integration_event
66
+ Aws::SupplyChain::Endpoints::SendDataIntegrationEvent.build(context)
64
67
  end
65
68
  end
66
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.0.0'
55
+ GEM_VERSION = '1.2.0'
56
56
 
57
57
  end
data/sig/client.rbs ADDED
@@ -0,0 +1,115 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module SupplyChain
10
+ class Client < ::Seahorse::Client::Base
11
+ include ::Aws::ClientStubs
12
+
13
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SupplyChain/Client.html#initialize-instance_method
14
+ def self.new: (
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?active_endpoint_cache: bool,
19
+ ?adaptive_retry_wait_to_fill: bool,
20
+ ?client_side_monitoring: bool,
21
+ ?client_side_monitoring_client_id: String,
22
+ ?client_side_monitoring_host: String,
23
+ ?client_side_monitoring_port: Integer,
24
+ ?client_side_monitoring_publisher: untyped,
25
+ ?convert_params: bool,
26
+ ?correct_clock_skew: bool,
27
+ ?defaults_mode: String,
28
+ ?disable_host_prefix_injection: bool,
29
+ ?disable_request_compression: bool,
30
+ ?endpoint: String,
31
+ ?endpoint_cache_max_entries: Integer,
32
+ ?endpoint_cache_max_threads: Integer,
33
+ ?endpoint_cache_poll_interval: Integer,
34
+ ?endpoint_discovery: bool,
35
+ ?ignore_configured_endpoint_urls: bool,
36
+ ?log_formatter: untyped,
37
+ ?log_level: Symbol,
38
+ ?logger: untyped,
39
+ ?max_attempts: Integer,
40
+ ?profile: String,
41
+ ?request_min_compression_size_bytes: Integer,
42
+ ?retry_backoff: Proc,
43
+ ?retry_base_delay: Float,
44
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
45
+ ?retry_limit: Integer,
46
+ ?retry_max_delay: Integer,
47
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
48
+ ?sdk_ua_app_id: String,
49
+ ?secret_access_key: String,
50
+ ?session_token: String,
51
+ ?stub_responses: untyped,
52
+ ?token_provider: untyped,
53
+ ?use_dualstack_endpoint: bool,
54
+ ?use_fips_endpoint: bool,
55
+ ?validate_params: bool,
56
+ ?endpoint_provider: untyped,
57
+ ?http_proxy: String,
58
+ ?http_open_timeout: (Float | Integer),
59
+ ?http_read_timeout: (Float | Integer),
60
+ ?http_idle_timeout: (Float | Integer),
61
+ ?http_continue_timeout: (Float | Integer),
62
+ ?ssl_timeout: (Float | Integer | nil),
63
+ ?http_wire_trace: bool,
64
+ ?ssl_verify_peer: bool,
65
+ ?ssl_ca_bundle: String,
66
+ ?ssl_ca_directory: String,
67
+ ?ssl_ca_store: String,
68
+ ?on_chunk_received: Proc,
69
+ ?on_chunk_sent: Proc,
70
+ ?raise_response_errors: bool
71
+ ) -> instance
72
+ | (?Hash[Symbol, untyped]) -> instance
73
+
74
+
75
+ interface _CreateBillOfMaterialsImportJobResponseSuccess
76
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateBillOfMaterialsImportJobResponse]
77
+ def job_id: () -> ::String
78
+ end
79
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SupplyChain/Client.html#create_bill_of_materials_import_job-instance_method
80
+ def create_bill_of_materials_import_job: (
81
+ instance_id: ::String,
82
+ s3uri: ::String,
83
+ ?client_token: ::String
84
+ ) -> _CreateBillOfMaterialsImportJobResponseSuccess
85
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateBillOfMaterialsImportJobResponseSuccess
86
+
87
+ interface _GetBillOfMaterialsImportJobResponseSuccess
88
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetBillOfMaterialsImportJobResponse]
89
+ def job: () -> Types::BillOfMaterialsImportJob
90
+ end
91
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SupplyChain/Client.html#get_bill_of_materials_import_job-instance_method
92
+ def get_bill_of_materials_import_job: (
93
+ instance_id: ::String,
94
+ job_id: ::String
95
+ ) -> _GetBillOfMaterialsImportJobResponseSuccess
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
112
+ end
113
+ end
114
+ end
115
+
data/sig/errors.rbs ADDED
@@ -0,0 +1,37 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module SupplyChain
10
+ module Errors
11
+ class ServiceError < ::Aws::Errors::ServiceError
12
+ end
13
+
14
+ class AccessDeniedException < ::Aws::Errors::ServiceError
15
+ def message: () -> ::String
16
+ end
17
+ class ConflictException < ::Aws::Errors::ServiceError
18
+ def message: () -> ::String
19
+ end
20
+ class InternalServerException < ::Aws::Errors::ServiceError
21
+ def message: () -> ::String
22
+ end
23
+ class ResourceNotFoundException < ::Aws::Errors::ServiceError
24
+ def message: () -> ::String
25
+ end
26
+ class ServiceQuotaExceededException < ::Aws::Errors::ServiceError
27
+ def message: () -> ::String
28
+ end
29
+ class ThrottlingException < ::Aws::Errors::ServiceError
30
+ def message: () -> ::String
31
+ end
32
+ class ValidationException < ::Aws::Errors::ServiceError
33
+ def message: () -> ::String
34
+ end
35
+ end
36
+ end
37
+ end
data/sig/resource.rbs ADDED
@@ -0,0 +1,79 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module SupplyChain
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SupplyChain/Resource.html
11
+ class Resource
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SupplyChain/Resource.html#initialize-instance_method
13
+ def initialize: (
14
+ ?client: Client,
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?active_endpoint_cache: bool,
19
+ ?adaptive_retry_wait_to_fill: bool,
20
+ ?client_side_monitoring: bool,
21
+ ?client_side_monitoring_client_id: String,
22
+ ?client_side_monitoring_host: String,
23
+ ?client_side_monitoring_port: Integer,
24
+ ?client_side_monitoring_publisher: untyped,
25
+ ?convert_params: bool,
26
+ ?correct_clock_skew: bool,
27
+ ?defaults_mode: String,
28
+ ?disable_host_prefix_injection: bool,
29
+ ?disable_request_compression: bool,
30
+ ?endpoint: String,
31
+ ?endpoint_cache_max_entries: Integer,
32
+ ?endpoint_cache_max_threads: Integer,
33
+ ?endpoint_cache_poll_interval: Integer,
34
+ ?endpoint_discovery: bool,
35
+ ?ignore_configured_endpoint_urls: bool,
36
+ ?log_formatter: untyped,
37
+ ?log_level: Symbol,
38
+ ?logger: untyped,
39
+ ?max_attempts: Integer,
40
+ ?profile: String,
41
+ ?request_min_compression_size_bytes: Integer,
42
+ ?retry_backoff: Proc,
43
+ ?retry_base_delay: Float,
44
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
45
+ ?retry_limit: Integer,
46
+ ?retry_max_delay: Integer,
47
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
48
+ ?sdk_ua_app_id: String,
49
+ ?secret_access_key: String,
50
+ ?session_token: String,
51
+ ?stub_responses: untyped,
52
+ ?token_provider: untyped,
53
+ ?use_dualstack_endpoint: bool,
54
+ ?use_fips_endpoint: bool,
55
+ ?validate_params: bool,
56
+ ?endpoint_provider: untyped,
57
+ ?http_proxy: String,
58
+ ?http_open_timeout: (Float | Integer),
59
+ ?http_read_timeout: (Float | Integer),
60
+ ?http_idle_timeout: (Float | Integer),
61
+ ?http_continue_timeout: (Float | Integer),
62
+ ?ssl_timeout: (Float | Integer | nil),
63
+ ?http_wire_trace: bool,
64
+ ?ssl_verify_peer: bool,
65
+ ?ssl_ca_bundle: String,
66
+ ?ssl_ca_directory: String,
67
+ ?ssl_ca_store: String,
68
+ ?on_chunk_received: Proc,
69
+ ?on_chunk_sent: Proc,
70
+ ?raise_response_errors: bool
71
+ ) -> void
72
+ | (?Hash[Symbol, untyped]) -> void
73
+
74
+ def client: () -> Client
75
+
76
+
77
+ end
78
+ end
79
+ end
data/sig/types.rbs ADDED
@@ -0,0 +1,93 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::SupplyChain
9
+ module Types
10
+
11
+ class AccessDeniedException
12
+ attr_accessor message: ::String
13
+ SENSITIVE: []
14
+ end
15
+
16
+ class BillOfMaterialsImportJob
17
+ attr_accessor instance_id: ::String
18
+ attr_accessor job_id: ::String
19
+ attr_accessor status: ("NEW" | "FAILED" | "IN_PROGRESS" | "QUEUED" | "SUCCESS")
20
+ attr_accessor s3uri: ::String
21
+ attr_accessor message: ::String
22
+ SENSITIVE: []
23
+ end
24
+
25
+ class ConflictException
26
+ attr_accessor message: ::String
27
+ SENSITIVE: []
28
+ end
29
+
30
+ class CreateBillOfMaterialsImportJobRequest
31
+ attr_accessor instance_id: ::String
32
+ attr_accessor s3uri: ::String
33
+ attr_accessor client_token: ::String
34
+ SENSITIVE: []
35
+ end
36
+
37
+ class CreateBillOfMaterialsImportJobResponse
38
+ attr_accessor job_id: ::String
39
+ SENSITIVE: []
40
+ end
41
+
42
+ class GetBillOfMaterialsImportJobRequest
43
+ attr_accessor instance_id: ::String
44
+ attr_accessor job_id: ::String
45
+ SENSITIVE: []
46
+ end
47
+
48
+ class GetBillOfMaterialsImportJobResponse
49
+ attr_accessor job: Types::BillOfMaterialsImportJob
50
+ SENSITIVE: []
51
+ end
52
+
53
+ class InternalServerException
54
+ attr_accessor message: ::String
55
+ SENSITIVE: []
56
+ end
57
+
58
+ class ResourceNotFoundException
59
+ attr_accessor message: ::String
60
+ SENSITIVE: []
61
+ end
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
+
78
+ class ServiceQuotaExceededException
79
+ attr_accessor message: ::String
80
+ SENSITIVE: []
81
+ end
82
+
83
+ class ThrottlingException
84
+ attr_accessor message: ::String
85
+ SENSITIVE: []
86
+ end
87
+
88
+ class ValidationException
89
+ attr_accessor message: ::String
90
+ SENSITIVE: []
91
+ end
92
+ end
93
+ end
data/sig/waiters.rbs ADDED
@@ -0,0 +1,13 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module SupplyChain
10
+ module Waiters
11
+ end
12
+ end
13
+ end
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.0.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-12 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
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.188.0
22
+ version: 3.191.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.188.0
32
+ version: 3.191.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -66,6 +66,11 @@ files:
66
66
  - lib/aws-sdk-supplychain/plugins/endpoints.rb
67
67
  - lib/aws-sdk-supplychain/resource.rb
68
68
  - lib/aws-sdk-supplychain/types.rb
69
+ - sig/client.rbs
70
+ - sig/errors.rbs
71
+ - sig/resource.rbs
72
+ - sig/types.rbs
73
+ - sig/waiters.rbs
69
74
  homepage: https://github.com/aws/aws-sdk-ruby
70
75
  licenses:
71
76
  - Apache-2.0