aws-sdk-supplychain 1.1.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-supplychain/client.rb +399 -46
- data/lib/aws-sdk-supplychain/client_api.rb +32 -0
- data/lib/aws-sdk-supplychain/endpoints.rb +14 -0
- data/lib/aws-sdk-supplychain/plugins/endpoints.rb +2 -0
- data/lib/aws-sdk-supplychain/types.rb +57 -0
- data/lib/aws-sdk-supplychain.rb +1 -1
- data/sig/client.rbs +15 -0
- data/sig/types.rbs +15 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eea07280e7817614ce6a69bb52b37b5cf71f98683d3f8109af83203fa56576c5
|
4
|
+
data.tar.gz: 0772e0e86fefc8ca185133d9c27810f1afd11fcde6136bcd7abc1c8b48980a06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe1bb8453dc6ac7377f3b737a84fb7b3e608a873e603ad84a06f2a89494e1969ba1164d6d4717e0f367922e2cbc5c01928b6ec2e2e61e5188d561e1b1adea002
|
7
|
+
data.tar.gz: 988df58dfd3403f6f2bdff143c0a7a691d29601541623afd903eeee13ffafc48225175423048cac09d8d980c79a4e674de6377c5e15312916563965ccfb5b8f8
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.3.0 (2024-04-25)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.2.0 (2024-04-10)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - This release includes API SendDataIntegrationEvent for AWS Supply Chain
|
13
|
+
|
4
14
|
1.1.0 (2024-01-26)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.3.0
|
@@ -22,6 +22,7 @@ require 'aws-sdk-core/plugins/endpoint_pattern.rb'
|
|
22
22
|
require 'aws-sdk-core/plugins/response_paging.rb'
|
23
23
|
require 'aws-sdk-core/plugins/stub_responses.rb'
|
24
24
|
require 'aws-sdk-core/plugins/idempotency_token.rb'
|
25
|
+
require 'aws-sdk-core/plugins/invocation_id.rb'
|
25
26
|
require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
26
27
|
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
27
28
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
@@ -72,6 +73,7 @@ module Aws::SupplyChain
|
|
72
73
|
add_plugin(Aws::Plugins::ResponsePaging)
|
73
74
|
add_plugin(Aws::Plugins::StubResponses)
|
74
75
|
add_plugin(Aws::Plugins::IdempotencyToken)
|
76
|
+
add_plugin(Aws::Plugins::InvocationId)
|
75
77
|
add_plugin(Aws::Plugins::JsonvalueConverter)
|
76
78
|
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
77
79
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
@@ -196,10 +198,17 @@ module Aws::SupplyChain
|
|
196
198
|
# When set to 'true' the request body will not be compressed
|
197
199
|
# for supported operations.
|
198
200
|
#
|
199
|
-
# @option options [String] :endpoint
|
200
|
-
#
|
201
|
-
#
|
202
|
-
#
|
201
|
+
# @option options [String, URI::HTTPS, URI::HTTP] :endpoint
|
202
|
+
# Normally you should not configure the `:endpoint` option
|
203
|
+
# directly. This is normally constructed from the `:region`
|
204
|
+
# option. Configuring `:endpoint` is normally reserved for
|
205
|
+
# connecting to test or custom endpoints. The endpoint should
|
206
|
+
# be a URI formatted like:
|
207
|
+
#
|
208
|
+
# 'http://example.com'
|
209
|
+
# 'https://example.com'
|
210
|
+
# 'http://example.com:123'
|
211
|
+
#
|
203
212
|
#
|
204
213
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
205
214
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -337,50 +346,65 @@ module Aws::SupplyChain
|
|
337
346
|
# @option options [Aws::SupplyChain::EndpointProvider] :endpoint_provider
|
338
347
|
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::SupplyChain::EndpointParameters`
|
339
348
|
#
|
340
|
-
# @option options [
|
341
|
-
#
|
342
|
-
#
|
343
|
-
#
|
344
|
-
#
|
345
|
-
#
|
346
|
-
#
|
347
|
-
#
|
348
|
-
#
|
349
|
-
#
|
350
|
-
#
|
351
|
-
# @option options [Float] :
|
352
|
-
#
|
353
|
-
#
|
354
|
-
#
|
355
|
-
#
|
356
|
-
#
|
357
|
-
#
|
358
|
-
#
|
359
|
-
#
|
360
|
-
#
|
361
|
-
#
|
362
|
-
#
|
363
|
-
#
|
364
|
-
#
|
365
|
-
#
|
366
|
-
#
|
367
|
-
#
|
349
|
+
# @option options [Float] :http_continue_timeout (1)
|
350
|
+
# The number of seconds to wait for a 100-continue response before sending the
|
351
|
+
# request body. This option has no effect unless the request has "Expect"
|
352
|
+
# header set to "100-continue". Defaults to `nil` which disables this
|
353
|
+
# behaviour. This value can safely be set per request on the session.
|
354
|
+
#
|
355
|
+
# @option options [Float] :http_idle_timeout (5)
|
356
|
+
# The number of seconds a connection is allowed to sit idle before it
|
357
|
+
# is considered stale. Stale connections are closed and removed from the
|
358
|
+
# pool before making a request.
|
359
|
+
#
|
360
|
+
# @option options [Float] :http_open_timeout (15)
|
361
|
+
# The default number of seconds to wait for response data.
|
362
|
+
# This value can safely be set per-request on the session.
|
363
|
+
#
|
364
|
+
# @option options [URI::HTTP,String] :http_proxy
|
365
|
+
# A proxy to send requests through. Formatted like 'http://proxy.com:123'.
|
366
|
+
#
|
367
|
+
# @option options [Float] :http_read_timeout (60)
|
368
|
+
# The default number of seconds to wait for response data.
|
369
|
+
# This value can safely be set per-request on the session.
|
370
|
+
#
|
371
|
+
# @option options [Boolean] :http_wire_trace (false)
|
372
|
+
# When `true`, HTTP debug output will be sent to the `:logger`.
|
373
|
+
#
|
374
|
+
# @option options [Proc] :on_chunk_received
|
375
|
+
# When a Proc object is provided, it will be used as callback when each chunk
|
376
|
+
# of the response body is received. It provides three arguments: the chunk,
|
377
|
+
# the number of bytes received, and the total number of
|
378
|
+
# bytes in the response (or nil if the server did not send a `content-length`).
|
379
|
+
#
|
380
|
+
# @option options [Proc] :on_chunk_sent
|
381
|
+
# When a Proc object is provided, it will be used as callback when each chunk
|
382
|
+
# of the request body is sent. It provides three arguments: the chunk,
|
383
|
+
# the number of bytes read from the body, and the total number of
|
384
|
+
# bytes in the body.
|
385
|
+
#
|
386
|
+
# @option options [Boolean] :raise_response_errors (true)
|
387
|
+
# When `true`, response errors are raised.
|
388
|
+
#
|
389
|
+
# @option options [String] :ssl_ca_bundle
|
390
|
+
# Full path to the SSL certificate authority bundle file that should be used when
|
391
|
+
# verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
|
392
|
+
# `:ssl_ca_directory` the the system default will be used if available.
|
393
|
+
#
|
394
|
+
# @option options [String] :ssl_ca_directory
|
395
|
+
# Full path of the directory that contains the unbundled SSL certificate
|
396
|
+
# authority files for verifying peer certificates. If you do
|
397
|
+
# not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the system
|
398
|
+
# default will be used if available.
|
368
399
|
#
|
369
|
-
# @option options [
|
370
|
-
#
|
371
|
-
# connection.
|
400
|
+
# @option options [String] :ssl_ca_store
|
401
|
+
# Sets the X509::Store to verify peer certificate.
|
372
402
|
#
|
373
|
-
# @option options [
|
374
|
-
#
|
375
|
-
# verifying peer certificates. If you do not pass
|
376
|
-
# `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
|
377
|
-
# will be used if available.
|
403
|
+
# @option options [Float] :ssl_timeout
|
404
|
+
# Sets the SSL timeout in seconds
|
378
405
|
#
|
379
|
-
# @option options [
|
380
|
-
#
|
381
|
-
# authority files for verifying peer certificates. If you do
|
382
|
-
# not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
|
383
|
-
# system default will be used if available.
|
406
|
+
# @option options [Boolean] :ssl_verify_peer (true)
|
407
|
+
# When `true`, SSL peer certificates are verified when establishing a connection.
|
384
408
|
#
|
385
409
|
def initialize(*args)
|
386
410
|
super
|
@@ -413,6 +437,20 @@ module Aws::SupplyChain
|
|
413
437
|
#
|
414
438
|
# * {Types::CreateBillOfMaterialsImportJobResponse#job_id #job_id} => String
|
415
439
|
#
|
440
|
+
#
|
441
|
+
# @example Example: Invoke CreateBillOfMaterialsImportJob
|
442
|
+
#
|
443
|
+
# resp = client.create_bill_of_materials_import_job({
|
444
|
+
# client_token: "550e8400-e29b-41d4-a716-446655440000",
|
445
|
+
# instance_id: "60f82bbd-71f7-4fcd-a941-472f574c5243",
|
446
|
+
# s3uri: "s3://mybucketname/pathelemene/file.csv",
|
447
|
+
# })
|
448
|
+
#
|
449
|
+
# resp.to_h outputs the following:
|
450
|
+
# {
|
451
|
+
# job_id: "f79b359b-1515-4436-a3bf-bae7b33e47b4",
|
452
|
+
# }
|
453
|
+
#
|
416
454
|
# @example Request syntax with placeholder values
|
417
455
|
#
|
418
456
|
# resp = client.create_bill_of_materials_import_job({
|
@@ -446,6 +484,42 @@ module Aws::SupplyChain
|
|
446
484
|
#
|
447
485
|
# * {Types::GetBillOfMaterialsImportJobResponse#job #job} => Types::BillOfMaterialsImportJob
|
448
486
|
#
|
487
|
+
#
|
488
|
+
# @example Example: Invoke GetBillOfMaterialsImportJob for a successful job
|
489
|
+
#
|
490
|
+
# resp = client.get_bill_of_materials_import_job({
|
491
|
+
# instance_id: "60f82bbd-71f7-4fcd-a941-472f574c5243",
|
492
|
+
# job_id: "f79b359b-1515-4436-a3bf-bae7b33e47b4",
|
493
|
+
# })
|
494
|
+
#
|
495
|
+
# resp.to_h outputs the following:
|
496
|
+
# {
|
497
|
+
# job: {
|
498
|
+
# instance_id: "60f82bbd-71f7-4fcd-a941-472f574c5243",
|
499
|
+
# job_id: "f79b359b-1515-4436-a3bf-bae7b33e47b4",
|
500
|
+
# message: "Import job completed successfully.",
|
501
|
+
# s3uri: "s3://mybucketname/pathelemene/file.csv",
|
502
|
+
# status: "SUCCESS",
|
503
|
+
# },
|
504
|
+
# }
|
505
|
+
#
|
506
|
+
# @example Example: Invoke GetBillOfMaterialsImportJob for an in-progress job
|
507
|
+
#
|
508
|
+
# resp = client.get_bill_of_materials_import_job({
|
509
|
+
# instance_id: "60f82bbd-71f7-4fcd-a941-472f574c5243",
|
510
|
+
# job_id: "f79b359b-1515-4436-a3bf-bae7b33e47b4",
|
511
|
+
# })
|
512
|
+
#
|
513
|
+
# resp.to_h outputs the following:
|
514
|
+
# {
|
515
|
+
# job: {
|
516
|
+
# instance_id: "60f82bbd-71f7-4fcd-a941-472f574c5243",
|
517
|
+
# job_id: "f79b359b-1515-4436-a3bf-bae7b33e47b4",
|
518
|
+
# s3uri: "s3://mybucketname/pathelemene/file.csv",
|
519
|
+
# status: "IN_PROGRESS",
|
520
|
+
# },
|
521
|
+
# }
|
522
|
+
#
|
449
523
|
# @example Request syntax with placeholder values
|
450
524
|
#
|
451
525
|
# resp = client.get_bill_of_materials_import_job({
|
@@ -470,6 +544,285 @@ module Aws::SupplyChain
|
|
470
544
|
req.send_request(options)
|
471
545
|
end
|
472
546
|
|
547
|
+
# Send transactional data events with real-time data for analysis or
|
548
|
+
# monitoring.
|
549
|
+
#
|
550
|
+
# @option params [required, String] :instance_id
|
551
|
+
# The AWS Supply Chain instance identifier.
|
552
|
+
#
|
553
|
+
# @option params [required, String] :event_type
|
554
|
+
# The data event type.
|
555
|
+
#
|
556
|
+
# @option params [required, String] :data
|
557
|
+
# The data payload of the event.
|
558
|
+
#
|
559
|
+
# @option params [required, String] :event_group_id
|
560
|
+
# Event identifier (for example, orderId for InboundOrder) used for data
|
561
|
+
# sharing or partitioning.
|
562
|
+
#
|
563
|
+
# @option params [Time,DateTime,Date,Integer,String] :event_timestamp
|
564
|
+
# The event timestamp (in epoch seconds).
|
565
|
+
#
|
566
|
+
# @option params [String] :client_token
|
567
|
+
# The idempotent client token.
|
568
|
+
#
|
569
|
+
# **A suitable default value is auto-generated.** You should normally
|
570
|
+
# not need to pass this option.**
|
571
|
+
#
|
572
|
+
# @return [Types::SendDataIntegrationEventResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
573
|
+
#
|
574
|
+
# * {Types::SendDataIntegrationEventResponse#event_id #event_id} => String
|
575
|
+
#
|
576
|
+
#
|
577
|
+
# @example Example: Successful SendDataIntegrationEvent for inboundorder event type
|
578
|
+
#
|
579
|
+
# resp = client.send_data_integration_event({
|
580
|
+
# data: "{\"id\": \"inbound-order-id-test-123\", \"tpartner_id\": \"partner-id-test-123\" }",
|
581
|
+
# event_group_id: "inboundOrderId",
|
582
|
+
# event_timestamp: Time.parse(1515531081.123),
|
583
|
+
# event_type: "scn.data.inboundorder",
|
584
|
+
# instance_id: "8928ae12-15e5-4441-825d-ec2184f0a43a",
|
585
|
+
# })
|
586
|
+
#
|
587
|
+
# resp.to_h outputs the following:
|
588
|
+
# {
|
589
|
+
# event_id: "c4132c1d-8f60-44a2-9932-f723c4f7b8a7",
|
590
|
+
# }
|
591
|
+
#
|
592
|
+
# @example Example: Successful SendDataIntegrationEvent for inboundorderline event type
|
593
|
+
#
|
594
|
+
# resp = client.send_data_integration_event({
|
595
|
+
# 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\" }",
|
596
|
+
# event_group_id: "inboundOrderLineId",
|
597
|
+
# event_timestamp: Time.parse(1515531081.123),
|
598
|
+
# event_type: "scn.data.inboundorderline",
|
599
|
+
# instance_id: "8928ae12-15e5-4441-825d-ec2184f0a43a",
|
600
|
+
# })
|
601
|
+
#
|
602
|
+
# resp.to_h outputs the following:
|
603
|
+
# {
|
604
|
+
# event_id: "45d95db2-d106-40e0-aa98-f1204230a691",
|
605
|
+
# }
|
606
|
+
#
|
607
|
+
# @example Example: Successful SendDataIntegrationEvent for inboundorderlineschedule event type
|
608
|
+
#
|
609
|
+
# resp = client.send_data_integration_event({
|
610
|
+
# 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\"}",
|
611
|
+
# event_group_id: "inboundOrderLineScheduleId",
|
612
|
+
# event_timestamp: Time.parse(1515531081.123),
|
613
|
+
# event_type: "scn.data.inboundorderlineschedule",
|
614
|
+
# instance_id: "8928ae12-15e5-4441-825d-ec2184f0a43a",
|
615
|
+
# })
|
616
|
+
#
|
617
|
+
# resp.to_h outputs the following:
|
618
|
+
# {
|
619
|
+
# event_id: "5abba995-7735-4d1e-95c4-7cc93e48cf9f",
|
620
|
+
# }
|
621
|
+
#
|
622
|
+
# @example Example: Successful SendDataIntegrationEvent for forecast event type
|
623
|
+
#
|
624
|
+
# resp = client.send_data_integration_event({
|
625
|
+
# 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\" }",
|
626
|
+
# event_group_id: "forecastId",
|
627
|
+
# event_timestamp: Time.parse(1515531081.123),
|
628
|
+
# event_type: "scn.data.forecast",
|
629
|
+
# instance_id: "8928ae12-15e5-4441-825d-ec2184f0a43a",
|
630
|
+
# })
|
631
|
+
#
|
632
|
+
# resp.to_h outputs the following:
|
633
|
+
# {
|
634
|
+
# event_id: "29312d5b-f499-4dcd-b017-3dab3cd34d61",
|
635
|
+
# }
|
636
|
+
#
|
637
|
+
# @example Example: Successful SendDataIntegrationEvent for inventorylevel event type
|
638
|
+
#
|
639
|
+
# resp = client.send_data_integration_event({
|
640
|
+
# 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\"}",
|
641
|
+
# event_group_id: "inventoryLevelId",
|
642
|
+
# event_timestamp: Time.parse(1515531081.123),
|
643
|
+
# event_type: "scn.data.inventorylevel",
|
644
|
+
# instance_id: "8928ae12-15e5-4441-825d-ec2184f0a43a",
|
645
|
+
# })
|
646
|
+
#
|
647
|
+
# resp.to_h outputs the following:
|
648
|
+
# {
|
649
|
+
# event_id: "3aa78324-acd8-4fdd-a19e-231ea003c2b3",
|
650
|
+
# }
|
651
|
+
#
|
652
|
+
# @example Example: Successful SendDataIntegrationEvent for outboundorderline event type
|
653
|
+
#
|
654
|
+
# resp = client.send_data_integration_event({
|
655
|
+
# data: "{\"id\": \"outbound-orderline-id-test-123\", \"cust_order_id\": \"cust-order-id-test-123\", \"product_id\": \"product-id-test-123\" }",
|
656
|
+
# event_group_id: "outboundOrderLineId",
|
657
|
+
# event_timestamp: Time.parse(1515531081.123),
|
658
|
+
# event_type: "scn.data.outboundorderline",
|
659
|
+
# instance_id: "8928ae12-15e5-4441-825d-ec2184f0a43a",
|
660
|
+
# })
|
661
|
+
#
|
662
|
+
# resp.to_h outputs the following:
|
663
|
+
# {
|
664
|
+
# event_id: "959b7ef9-5e2d-4795-b1ca-5b16a3eb6b89",
|
665
|
+
# }
|
666
|
+
#
|
667
|
+
# @example Example: Successful SendDataIntegrationEvent for outboundshipment event type
|
668
|
+
#
|
669
|
+
# resp = client.send_data_integration_event({
|
670
|
+
# 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\" }",
|
671
|
+
# event_group_id: "outboundShipmentId",
|
672
|
+
# event_timestamp: Time.parse(1515531081.123),
|
673
|
+
# event_type: "scn.data.outboundshipment",
|
674
|
+
# instance_id: "8928ae12-15e5-4441-825d-ec2184f0a43a",
|
675
|
+
# })
|
676
|
+
#
|
677
|
+
# resp.to_h outputs the following:
|
678
|
+
# {
|
679
|
+
# event_id: "59feded3-5e46-4126-81bf-0137ca176ee0",
|
680
|
+
# }
|
681
|
+
#
|
682
|
+
# @example Example: Successful SendDataIntegrationEvent for processheader event type
|
683
|
+
#
|
684
|
+
# resp = client.send_data_integration_event({
|
685
|
+
# data: "{\"process_id\": \"process-id-test-123\" }",
|
686
|
+
# event_group_id: "processHeaderId",
|
687
|
+
# event_timestamp: Time.parse(1515531081.123),
|
688
|
+
# event_type: "scn.data.processheader",
|
689
|
+
# instance_id: "8928ae12-15e5-4441-825d-ec2184f0a43a",
|
690
|
+
# })
|
691
|
+
#
|
692
|
+
# resp.to_h outputs the following:
|
693
|
+
# {
|
694
|
+
# event_id: "564130eb-2d8a-4550-a768-ddf0daf7b4a9",
|
695
|
+
# }
|
696
|
+
#
|
697
|
+
# @example Example: Successful SendDataIntegrationEvent for processoperation event type
|
698
|
+
#
|
699
|
+
# resp = client.send_data_integration_event({
|
700
|
+
# data: "{\"process_operation_id\": \"process-operation-id-test-123\", \"process_id\": \"process-id-test-123\" }",
|
701
|
+
# event_group_id: "processOperationId",
|
702
|
+
# event_timestamp: Time.parse(1515531081.123),
|
703
|
+
# event_type: "scn.data.processoperation",
|
704
|
+
# instance_id: "8928ae12-15e5-4441-825d-ec2184f0a43a",
|
705
|
+
# })
|
706
|
+
#
|
707
|
+
# resp.to_h outputs the following:
|
708
|
+
# {
|
709
|
+
# event_id: "db5df408-89c7-4b9f-a326-016f6c2b3396",
|
710
|
+
# }
|
711
|
+
#
|
712
|
+
# @example Example: Successful SendDataIntegrationEvent for processproduct event type
|
713
|
+
#
|
714
|
+
# resp = client.send_data_integration_event({
|
715
|
+
# data: "{\"process_product_id\": \"process-product-id-test-123\", \"process_id\": \"process-id-test-123\" }",
|
716
|
+
# event_group_id: "processProductId",
|
717
|
+
# event_timestamp: Time.parse(1515531081.123),
|
718
|
+
# event_type: "scn.data.processproduct",
|
719
|
+
# instance_id: "8928ae12-15e5-4441-825d-ec2184f0a43a",
|
720
|
+
# })
|
721
|
+
#
|
722
|
+
# resp.to_h outputs the following:
|
723
|
+
# {
|
724
|
+
# event_id: "6929b275-485e-4035-a798-99077ca6d669",
|
725
|
+
# }
|
726
|
+
#
|
727
|
+
# @example Example: Successful SendDataIntegrationEvent for reservation event type
|
728
|
+
#
|
729
|
+
# resp = client.send_data_integration_event({
|
730
|
+
# data: "{\"reservation_id\": \"reservation-id-test-123\", \"reservation_detail_id\": \"reservation-detail-id-test-123\" }",
|
731
|
+
# event_group_id: "reservationId",
|
732
|
+
# event_timestamp: Time.parse(1515531081.123),
|
733
|
+
# event_type: "scn.data.reservation",
|
734
|
+
# instance_id: "8928ae12-15e5-4441-825d-ec2184f0a43a",
|
735
|
+
# })
|
736
|
+
#
|
737
|
+
# resp.to_h outputs the following:
|
738
|
+
# {
|
739
|
+
# event_id: "f6c55a8b-fde2-44f6-848a-9b4336c77209",
|
740
|
+
# }
|
741
|
+
#
|
742
|
+
# @example Example: Successful SendDataIntegrationEvent for shipment event type
|
743
|
+
#
|
744
|
+
# resp = client.send_data_integration_event({
|
745
|
+
# 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\" }",
|
746
|
+
# event_group_id: "shipmentId",
|
747
|
+
# event_timestamp: Time.parse(1515531081.123),
|
748
|
+
# event_type: "scn.data.shipment",
|
749
|
+
# instance_id: "8928ae12-15e5-4441-825d-ec2184f0a43a",
|
750
|
+
# })
|
751
|
+
#
|
752
|
+
# resp.to_h outputs the following:
|
753
|
+
# {
|
754
|
+
# event_id: "61d079d8-3f56-49bb-b35a-c0271a4e4f0a",
|
755
|
+
# }
|
756
|
+
#
|
757
|
+
# @example Example: Successful SendDataIntegrationEvent for shipmentstop event type
|
758
|
+
#
|
759
|
+
# resp = client.send_data_integration_event({
|
760
|
+
# data: "{\"shipment_stop_id\": \"shipment-stop-id-test-123\", \"shipment_id\": \"shipment-id-test-123\" }",
|
761
|
+
# event_group_id: "shipmentStopId",
|
762
|
+
# event_timestamp: Time.parse(1515531081.123),
|
763
|
+
# event_type: "scn.data.shipmentstop",
|
764
|
+
# instance_id: "8928ae12-15e5-4441-825d-ec2184f0a43a",
|
765
|
+
# })
|
766
|
+
#
|
767
|
+
# resp.to_h outputs the following:
|
768
|
+
# {
|
769
|
+
# event_id: "3610992a-fc2f-4da4-9beb-724994622ba1",
|
770
|
+
# }
|
771
|
+
#
|
772
|
+
# @example Example: Successful SendDataIntegrationEvent for shipmentstoporder event type
|
773
|
+
#
|
774
|
+
# resp = client.send_data_integration_event({
|
775
|
+
# 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\" }",
|
776
|
+
# event_group_id: "shipmentStopOrderId",
|
777
|
+
# event_timestamp: Time.parse(1515531081.123),
|
778
|
+
# event_type: "scn.data.shipmentstoporder",
|
779
|
+
# instance_id: "8928ae12-15e5-4441-825d-ec2184f0a43a",
|
780
|
+
# })
|
781
|
+
#
|
782
|
+
# resp.to_h outputs the following:
|
783
|
+
# {
|
784
|
+
# event_id: "1d550a60-9321-4d25-a132-9dd4b2d9e934",
|
785
|
+
# }
|
786
|
+
#
|
787
|
+
# @example Example: Successful SendDataIntegrationEvent for supplyplan event type
|
788
|
+
#
|
789
|
+
# resp = client.send_data_integration_event({
|
790
|
+
# data: "{\"supply_plan_id\": \"supply-plan-id-test-123\" }",
|
791
|
+
# event_group_id: "supplyPlanId",
|
792
|
+
# event_timestamp: Time.parse(1515531081.123),
|
793
|
+
# event_type: "scn.data.supplyplan",
|
794
|
+
# instance_id: "8928ae12-15e5-4441-825d-ec2184f0a43a",
|
795
|
+
# })
|
796
|
+
#
|
797
|
+
# resp.to_h outputs the following:
|
798
|
+
# {
|
799
|
+
# event_id: "9abaee56-5dc4-4c31-8250-3206a651d8a1",
|
800
|
+
# }
|
801
|
+
#
|
802
|
+
# @example Request syntax with placeholder values
|
803
|
+
#
|
804
|
+
# resp = client.send_data_integration_event({
|
805
|
+
# instance_id: "UUID", # required
|
806
|
+
# 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
|
807
|
+
# data: "DataIntegrationEventData", # required
|
808
|
+
# event_group_id: "DataIntegrationEventGroupId", # required
|
809
|
+
# event_timestamp: Time.now,
|
810
|
+
# client_token: "ClientToken",
|
811
|
+
# })
|
812
|
+
#
|
813
|
+
# @example Response structure
|
814
|
+
#
|
815
|
+
# resp.event_id #=> String
|
816
|
+
#
|
817
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/supplychain-2024-01-01/SendDataIntegrationEvent AWS API Documentation
|
818
|
+
#
|
819
|
+
# @overload send_data_integration_event(params = {})
|
820
|
+
# @param [Hash] params ({})
|
821
|
+
def send_data_integration_event(params = {}, options = {})
|
822
|
+
req = build_request(:send_data_integration_event, params)
|
823
|
+
req.send_request(options)
|
824
|
+
end
|
825
|
+
|
473
826
|
# @!endgroup
|
474
827
|
|
475
828
|
# @param params ({})
|
@@ -483,7 +836,7 @@ module Aws::SupplyChain
|
|
483
836
|
params: params,
|
484
837
|
config: config)
|
485
838
|
context[:gem_name] = 'aws-sdk-supplychain'
|
486
|
-
context[:gem_version] = '1.
|
839
|
+
context[:gem_version] = '1.3.0'
|
487
840
|
Seahorse::Client::Request.new(handlers, context)
|
488
841
|
end
|
489
842
|
|
@@ -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
|
data/lib/aws-sdk-supplychain.rb
CHANGED
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.
|
4
|
+
version: 1.3.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-
|
11
|
+
date: 2024-04-25 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.
|
22
|
+
version: 3.193.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.
|
32
|
+
version: 3.193.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|