aws-sdk-supplychain 1.17.0 → 1.19.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: 43544d49fc0d35983edf5df8eaaccfb2c1fa7c472788ddf77ff0bbb5bf1b3289
4
- data.tar.gz: b16860fdbb4506d62149e106d6004663fbde0917ca1499a40583607a85188829
3
+ metadata.gz: 6de64e3122dd8aa459e01a0ab6fd727d40bf51caeca5aa0d4d273ef24eccbfac
4
+ data.tar.gz: 916e60ec8e31688fadbe4b759d6c9fbd37419bee3679df701e70bcf292f0f73e
5
5
  SHA512:
6
- metadata.gz: 38abab3723db95e2cba76cdd0bfaa75f9b81741fa578d8b2e2b470cb84a599409be0518b0f5d282a2804d82447e1fb01d2b635bae68df3646ca41631c555d103
7
- data.tar.gz: 0d8fd4d864ea1562012636eb5b922b363c99b02df22a74d0b018067fdd68e07ec672ca9ce39aa440bf6cd64823fe086389b501d0521a8cdbbef74a5bdf3fed37
6
+ metadata.gz: 22608c92f02fa4baeae0ad8583ab67f6868650c4d652de74a9b6d62e36d0f54b1ce6ceee8331f06bf5c7a4640f06c1ca2c64b9c509cf571ccdc34b3d8940bfb8
7
+ data.tar.gz: a27537297a59c5c6ff0133ddd379c6b970af59ace0732856770b0ebf0e69b612e29b9e01f3350f4d880b230603e210f355f3d721ad163ac66ec13cc1c79148cf
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.19.0 (2024-10-25)
5
+ ------------------
6
+
7
+ * Feature - API doc updates, and also support showing error message on a failed instance
8
+
9
+ 1.18.0 (2024-10-18)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.17.0 (2024-10-14)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.17.0
1
+ 1.19.0
@@ -515,8 +515,11 @@ module Aws::SupplyChain
515
515
  req.send_request(options)
516
516
  end
517
517
 
518
- # Create DataIntegrationFlow to map one or more different sources to one
519
- # target using the SQL transformation query.
518
+ # Enables you to programmatically create a data pipeline to ingest data
519
+ # from source systems such as Amazon S3 buckets, to a predefined Amazon
520
+ # Web Services Supply Chain dataset (product, inbound\_order) or a
521
+ # temporary dataset along with the data transformation query provided
522
+ # with the API.
520
523
  #
521
524
  # @option params [required, String] :instance_id
522
525
  # The Amazon Web Services Supply Chain instance identifier.
@@ -691,7 +694,10 @@ module Aws::SupplyChain
691
694
  req.send_request(options)
692
695
  end
693
696
 
694
- # Create a data lake dataset.
697
+ # Enables you to programmatically create an Amazon Web Services Supply
698
+ # Chain data lake dataset. Developers can create the datasets using
699
+ # their pre-defined or custom schema for a given instance ID, namespace,
700
+ # and dataset name.
695
701
  #
696
702
  # @option params [required, String] :instance_id
697
703
  # The Amazon Web Services Supply Chain instance identifier.
@@ -1036,12 +1042,18 @@ module Aws::SupplyChain
1036
1042
  req.send_request(options)
1037
1043
  end
1038
1044
 
1039
- # Create a new instance for AWS Supply Chain. This is an asynchronous
1040
- # operation. Upon receiving a CreateInstance request, AWS Supply Chain
1041
- # immediately returns the instance resource, with instance ID, and the
1042
- # initializing state while simultaneously creating all required Amazon
1043
- # Web Services resources for an instance creation. You can use
1044
- # GetInstance to check the status of the instance.
1045
+ # Enables you to programmatically create an Amazon Web Services Supply
1046
+ # Chain instance by applying KMS keys and relevant information
1047
+ # associated with the API without using the Amazon Web Services console.
1048
+ #
1049
+ # This is an asynchronous operation. Upon receiving a CreateInstance
1050
+ # request, Amazon Web Services Supply Chain immediately returns the
1051
+ # instance resource, instance ID, and the initializing state while
1052
+ # simultaneously creating all required Amazon Web Services resources for
1053
+ # an instance creation. You can use GetInstance to check the status of
1054
+ # the instance. If the instance results in an unhealthy state, you need
1055
+ # to check the error message, delete the current instance, and recreate
1056
+ # a new one based on the mitigation from the error message.
1045
1057
  #
1046
1058
  # @option params [String] :instance_name
1047
1059
  # The AWS Supply Chain instance name.
@@ -1131,6 +1143,7 @@ module Aws::SupplyChain
1131
1143
  # resp.instance.instance_id #=> String
1132
1144
  # resp.instance.aws_account_id #=> String
1133
1145
  # resp.instance.state #=> String, one of "Initializing", "Active", "CreateFailed", "DeleteFailed", "Deleting", "Deleted"
1146
+ # resp.instance.error_message #=> String
1134
1147
  # resp.instance.web_app_dns_domain #=> String
1135
1148
  # resp.instance.created_time #=> Time
1136
1149
  # resp.instance.last_modified_time #=> Time
@@ -1148,7 +1161,9 @@ module Aws::SupplyChain
1148
1161
  req.send_request(options)
1149
1162
  end
1150
1163
 
1151
- # Delete the DataIntegrationFlow.
1164
+ # Enable you to programmatically delete an existing data pipeline for
1165
+ # the provided Amazon Web Services Supply Chain instance and
1166
+ # DataIntegrationFlow name.
1152
1167
  #
1153
1168
  # @option params [required, String] :instance_id
1154
1169
  # The Amazon Web Services Supply Chain instance identifier.
@@ -1196,7 +1211,9 @@ module Aws::SupplyChain
1196
1211
  req.send_request(options)
1197
1212
  end
1198
1213
 
1199
- # Delete a data lake dataset.
1214
+ # Enables you to programmatically delete an Amazon Web Services Supply
1215
+ # Chain data lake dataset. Developers can delete the existing datasets
1216
+ # for a given instance ID, namespace, and instance name.
1200
1217
  #
1201
1218
  # @option params [required, String] :instance_id
1202
1219
  # The AWS Supply Chain instance identifier.
@@ -1280,8 +1297,12 @@ module Aws::SupplyChain
1280
1297
  req.send_request(options)
1281
1298
  end
1282
1299
 
1283
- # Delete the instance. This is an asynchronous operation. Upon receiving
1284
- # a DeleteInstance request, AWS Supply Chain immediately returns a
1300
+ # Enables you to programmatically delete an Amazon Web Services Supply
1301
+ # Chain instance by deleting the KMS keys and relevant information
1302
+ # associated with the API without using the Amazon Web Services console.
1303
+ #
1304
+ # This is an asynchronous operation. Upon receiving a DeleteInstance
1305
+ # request, Amazon Web Services Supply Chain immediately returns a
1285
1306
  # response with the instance resource, delete state while cleaning up
1286
1307
  # all Amazon Web Services resources created during the instance creation
1287
1308
  # process. You can use the GetInstance action to check the instance
@@ -1327,6 +1348,7 @@ module Aws::SupplyChain
1327
1348
  # resp.instance.instance_id #=> String
1328
1349
  # resp.instance.aws_account_id #=> String
1329
1350
  # resp.instance.state #=> String, one of "Initializing", "Active", "CreateFailed", "DeleteFailed", "Deleting", "Deleted"
1351
+ # resp.instance.error_message #=> String
1330
1352
  # resp.instance.web_app_dns_domain #=> String
1331
1353
  # resp.instance.created_time #=> Time
1332
1354
  # resp.instance.last_modified_time #=> Time
@@ -1416,7 +1438,9 @@ module Aws::SupplyChain
1416
1438
  req.send_request(options)
1417
1439
  end
1418
1440
 
1419
- # View the DataIntegrationFlow details.
1441
+ # Enables you to programmatically view a specific data pipeline for the
1442
+ # provided Amazon Web Services Supply Chain instance and
1443
+ # DataIntegrationFlow name.
1420
1444
  #
1421
1445
  # @option params [required, String] :instance_id
1422
1446
  # The Amazon Web Services Supply Chain instance identifier.
@@ -1509,7 +1533,10 @@ module Aws::SupplyChain
1509
1533
  req.send_request(options)
1510
1534
  end
1511
1535
 
1512
- # Get a data lake dataset.
1536
+ # Enables you to programmatically view an Amazon Web Services Supply
1537
+ # Chain data lake dataset. Developers can view the data lake dataset
1538
+ # information such as namespace, schema, and so on for a given instance
1539
+ # ID, namespace, and dataset name.
1513
1540
  #
1514
1541
  # @option params [required, String] :instance_id
1515
1542
  # The Amazon Web Services Supply Chain instance identifier.
@@ -1795,7 +1822,8 @@ module Aws::SupplyChain
1795
1822
  req.send_request(options)
1796
1823
  end
1797
1824
 
1798
- # Get the AWS Supply Chain instance details.
1825
+ # Enables you to programmatically retrieve the information related to an
1826
+ # Amazon Web Services Supply Chain instance ID.
1799
1827
  #
1800
1828
  # @option params [required, String] :instance_id
1801
1829
  # The AWS Supply Chain instance identifier
@@ -1826,6 +1854,28 @@ module Aws::SupplyChain
1826
1854
  # },
1827
1855
  # }
1828
1856
  #
1857
+ # @example Example: Successful GetInstance request with error message
1858
+ #
1859
+ # resp = client.get_instance({
1860
+ # instance_id: "9e193580-7cc5-45f7-9609-c43ba0ada793",
1861
+ # })
1862
+ #
1863
+ # resp.to_h outputs the following:
1864
+ # {
1865
+ # instance: {
1866
+ # aws_account_id: "123456789012",
1867
+ # created_time: Time.parse(172615383136),
1868
+ # error_message: "Access denied when attempting to create an S3 bucket. Please correct your IAM policy and try again.",
1869
+ # instance_description: "example instance description",
1870
+ # instance_id: "9e193580-7cc5-45f7-9609-c43ba0ada793",
1871
+ # instance_name: "example instance name",
1872
+ # kms_key_arn: "arn:aws:kms:us-west-2:123456789012:key/b14ffc39-b7d4-45ab-991a-6257a7f0d24d",
1873
+ # last_modified_time: Time.parse(172615383136),
1874
+ # state: "CreateFailed",
1875
+ # version_number: 2.0,
1876
+ # },
1877
+ # }
1878
+ #
1829
1879
  # @example Request syntax with placeholder values
1830
1880
  #
1831
1881
  # resp = client.get_instance({
@@ -1837,6 +1887,7 @@ module Aws::SupplyChain
1837
1887
  # resp.instance.instance_id #=> String
1838
1888
  # resp.instance.aws_account_id #=> String
1839
1889
  # resp.instance.state #=> String, one of "Initializing", "Active", "CreateFailed", "DeleteFailed", "Deleting", "Deleted"
1890
+ # resp.instance.error_message #=> String
1840
1891
  # resp.instance.web_app_dns_domain #=> String
1841
1892
  # resp.instance.created_time #=> Time
1842
1893
  # resp.instance.last_modified_time #=> Time
@@ -1854,7 +1905,8 @@ module Aws::SupplyChain
1854
1905
  req.send_request(options)
1855
1906
  end
1856
1907
 
1857
- # Lists all the DataIntegrationFlows in a paginated way.
1908
+ # Enables you to programmatically list all data pipelines for the
1909
+ # provided Amazon Web Services Supply Chain instance.
1858
1910
  #
1859
1911
  # @option params [required, String] :instance_id
1860
1912
  # The Amazon Web Services Supply Chain instance identifier.
@@ -1993,7 +2045,10 @@ module Aws::SupplyChain
1993
2045
  req.send_request(options)
1994
2046
  end
1995
2047
 
1996
- # List the data lake datasets for a specific instance and name space.
2048
+ # Enables you to programmatically view the list of Amazon Web Services
2049
+ # Supply Chain data lake datasets. Developers can view the datasets and
2050
+ # the corresponding information such as namespace, schema, and so on for
2051
+ # a given instance ID and namespace.
1997
2052
  #
1998
2053
  # @option params [required, String] :instance_id
1999
2054
  # The Amazon Web Services Supply Chain instance identifier.
@@ -2309,7 +2364,10 @@ module Aws::SupplyChain
2309
2364
  req.send_request(options)
2310
2365
  end
2311
2366
 
2312
- # List all the AWS Supply Chain instances in a paginated way.
2367
+ # List all Amazon Web Services Supply Chain instances for a specific
2368
+ # account. Enables you to programmatically list all Amazon Web Services
2369
+ # Supply Chain instances based on their account ID, instance name, and
2370
+ # state of the instance (active or delete).
2313
2371
  #
2314
2372
  # @option params [String] :next_token
2315
2373
  # The pagination token to fetch the next page of instances.
@@ -2454,6 +2512,7 @@ module Aws::SupplyChain
2454
2512
  # resp.instances[0].instance_id #=> String
2455
2513
  # resp.instances[0].aws_account_id #=> String
2456
2514
  # resp.instances[0].state #=> String, one of "Initializing", "Active", "CreateFailed", "DeleteFailed", "Deleting", "Deleted"
2515
+ # resp.instances[0].error_message #=> String
2457
2516
  # resp.instances[0].web_app_dns_domain #=> String
2458
2517
  # resp.instances[0].created_time #=> Time
2459
2518
  # resp.instances[0].last_modified_time #=> Time
@@ -2472,7 +2531,11 @@ module Aws::SupplyChain
2472
2531
  req.send_request(options)
2473
2532
  end
2474
2533
 
2475
- # List all the tags for an Amazon Web ServicesSupply Chain resource.
2534
+ # List all the tags for an Amazon Web ServicesSupply Chain resource. You
2535
+ # can list all the tags added to a resource. By listing the tags,
2536
+ # developers can view the tag level information on a resource and
2537
+ # perform actions such as, deleting a resource associated with a
2538
+ # particular tag.
2476
2539
  #
2477
2540
  # @option params [required, String] :resource_arn
2478
2541
  # The Amazon Web Services Supply chain resource ARN that needs tags to
@@ -2804,7 +2867,12 @@ module Aws::SupplyChain
2804
2867
  req.send_request(options)
2805
2868
  end
2806
2869
 
2807
- # Create tags for an Amazon Web Services Supply chain resource.
2870
+ # You can create tags during or after creating a resource such as
2871
+ # instance, data flow, or dataset in AWS Supply chain. During the data
2872
+ # ingestion process, you can add tags such as dev, test, or prod to data
2873
+ # flows created during the data ingestion process in the AWS Supply
2874
+ # Chain datasets. You can use these tags to identify a group of
2875
+ # resources or a single resource used by the developer.
2808
2876
  #
2809
2877
  # @option params [required, String] :resource_arn
2810
2878
  # The Amazon Web Services Supply chain resource ARN that needs to be
@@ -2848,7 +2916,11 @@ module Aws::SupplyChain
2848
2916
  req.send_request(options)
2849
2917
  end
2850
2918
 
2851
- # Delete tags for an Amazon Web Services Supply chain resource.
2919
+ # You can delete tags for an Amazon Web Services Supply chain resource
2920
+ # such as instance, data flow, or dataset in AWS Supply Chain. During
2921
+ # the data ingestion process, you can delete tags such as dev, test, or
2922
+ # prod to data flows created during the data ingestion process in the
2923
+ # AWS Supply Chain datasets.
2852
2924
  #
2853
2925
  # @option params [required, String] :resource_arn
2854
2926
  # The Amazon Web Services Supply chain resource ARN that needs to be
@@ -2890,7 +2962,11 @@ module Aws::SupplyChain
2890
2962
  req.send_request(options)
2891
2963
  end
2892
2964
 
2893
- # Update the DataIntegrationFlow.
2965
+ # Enables you to programmatically update an existing data pipeline to
2966
+ # ingest data from the source systems such as, Amazon S3 buckets, to a
2967
+ # predefined Amazon Web Services Supply Chain dataset (product,
2968
+ # inbound\_order) or a temporary dataset along with the data
2969
+ # transformation query provided with the API.
2894
2970
  #
2895
2971
  # @option params [required, String] :instance_id
2896
2972
  # The Amazon Web Services Supply Chain instance identifier.
@@ -3130,7 +3206,10 @@ module Aws::SupplyChain
3130
3206
  req.send_request(options)
3131
3207
  end
3132
3208
 
3133
- # Update a data lake dataset.
3209
+ # Enables you to programmatically update an Amazon Web Services Supply
3210
+ # Chain data lake dataset. Developers can update the description of a
3211
+ # data lake dataset for a given instance ID, namespace, and dataset
3212
+ # name.
3134
3213
  #
3135
3214
  # @option params [required, String] :instance_id
3136
3215
  # The Amazon Web Services Chain instance identifier.
@@ -3422,7 +3501,10 @@ module Aws::SupplyChain
3422
3501
  req.send_request(options)
3423
3502
  end
3424
3503
 
3425
- # Update the instance.
3504
+ # Enables you to programmatically update an Amazon Web Services Supply
3505
+ # Chain instance description by providing all the relevant information
3506
+ # such as account ID, instance ID and so on without using the AWS
3507
+ # console.
3426
3508
  #
3427
3509
  # @option params [required, String] :instance_id
3428
3510
  # The AWS Supply Chain instance identifier.
@@ -3474,6 +3556,7 @@ module Aws::SupplyChain
3474
3556
  # resp.instance.instance_id #=> String
3475
3557
  # resp.instance.aws_account_id #=> String
3476
3558
  # resp.instance.state #=> String, one of "Initializing", "Active", "CreateFailed", "DeleteFailed", "Deleting", "Deleted"
3559
+ # resp.instance.error_message #=> String
3477
3560
  # resp.instance.web_app_dns_domain #=> String
3478
3561
  # resp.instance.created_time #=> Time
3479
3562
  # resp.instance.last_modified_time #=> Time
@@ -3509,7 +3592,7 @@ module Aws::SupplyChain
3509
3592
  tracer: tracer
3510
3593
  )
3511
3594
  context[:gem_name] = 'aws-sdk-supplychain'
3512
- context[:gem_version] = '1.17.0'
3595
+ context[:gem_version] = '1.19.0'
3513
3596
  Seahorse::Client::Request.new(handlers, context)
3514
3597
  end
3515
3598
 
@@ -321,6 +321,7 @@ module Aws::SupplyChain
321
321
  Instance.add_member(:instance_id, Shapes::ShapeRef.new(shape: UUID, required: true, location_name: "instanceId"))
322
322
  Instance.add_member(:aws_account_id, Shapes::ShapeRef.new(shape: AwsAccountId, required: true, location_name: "awsAccountId"))
323
323
  Instance.add_member(:state, Shapes::ShapeRef.new(shape: InstanceState, required: true, location_name: "state"))
324
+ Instance.add_member(:error_message, Shapes::ShapeRef.new(shape: String, location_name: "errorMessage"))
324
325
  Instance.add_member(:web_app_dns_domain, Shapes::ShapeRef.new(shape: InstanceWebAppDnsDomain, location_name: "webAppDnsDomain"))
325
326
  Instance.add_member(:created_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdTime"))
326
327
  Instance.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastModifiedTime"))
@@ -52,15 +52,18 @@ module Aws::SupplyChain
52
52
  self[:region] = options[:region]
53
53
  self[:use_dual_stack] = options[:use_dual_stack]
54
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
- if self[:use_dual_stack].nil?
56
- raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
- end
58
55
  self[:use_fips] = options[:use_fips]
59
56
  self[:use_fips] = false if self[:use_fips].nil?
60
- if self[:use_fips].nil?
61
- raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
- end
63
57
  self[:endpoint] = options[:endpoint]
64
58
  end
59
+
60
+ def self.create(config, options={})
61
+ new({
62
+ region: config.region,
63
+ use_dual_stack: config.use_dualstack_endpoint,
64
+ use_fips: config.use_fips_endpoint,
65
+ endpoint: (config.endpoint.to_s unless config.regional_endpoint),
66
+ }.merge(options))
67
+ end
65
68
  end
66
69
  end
@@ -12,236 +12,9 @@ module Aws::SupplyChain
12
12
  # @api private
13
13
  module Endpoints
14
14
 
15
- class CreateBillOfMaterialsImportJob
16
- def self.build(context)
17
- Aws::SupplyChain::EndpointParameters.new(
18
- region: context.config.region,
19
- use_dual_stack: context.config.use_dualstack_endpoint,
20
- use_fips: context.config.use_fips_endpoint,
21
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
22
- )
23
- end
24
- end
25
-
26
- class CreateDataIntegrationFlow
27
- def self.build(context)
28
- Aws::SupplyChain::EndpointParameters.new(
29
- region: context.config.region,
30
- use_dual_stack: context.config.use_dualstack_endpoint,
31
- use_fips: context.config.use_fips_endpoint,
32
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
33
- )
34
- end
35
- end
36
-
37
- class CreateDataLakeDataset
38
- def self.build(context)
39
- Aws::SupplyChain::EndpointParameters.new(
40
- region: context.config.region,
41
- use_dual_stack: context.config.use_dualstack_endpoint,
42
- use_fips: context.config.use_fips_endpoint,
43
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
44
- )
45
- end
46
- end
47
-
48
- class CreateInstance
49
- def self.build(context)
50
- Aws::SupplyChain::EndpointParameters.new(
51
- region: context.config.region,
52
- use_dual_stack: context.config.use_dualstack_endpoint,
53
- use_fips: context.config.use_fips_endpoint,
54
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
55
- )
56
- end
57
- end
58
-
59
- class DeleteDataIntegrationFlow
60
- def self.build(context)
61
- Aws::SupplyChain::EndpointParameters.new(
62
- region: context.config.region,
63
- use_dual_stack: context.config.use_dualstack_endpoint,
64
- use_fips: context.config.use_fips_endpoint,
65
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
66
- )
67
- end
68
- end
69
-
70
- class DeleteDataLakeDataset
71
- def self.build(context)
72
- Aws::SupplyChain::EndpointParameters.new(
73
- region: context.config.region,
74
- use_dual_stack: context.config.use_dualstack_endpoint,
75
- use_fips: context.config.use_fips_endpoint,
76
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
77
- )
78
- end
79
- end
80
-
81
- class DeleteInstance
82
- def self.build(context)
83
- Aws::SupplyChain::EndpointParameters.new(
84
- region: context.config.region,
85
- use_dual_stack: context.config.use_dualstack_endpoint,
86
- use_fips: context.config.use_fips_endpoint,
87
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
88
- )
89
- end
90
- end
91
-
92
- class GetBillOfMaterialsImportJob
93
- def self.build(context)
94
- Aws::SupplyChain::EndpointParameters.new(
95
- region: context.config.region,
96
- use_dual_stack: context.config.use_dualstack_endpoint,
97
- use_fips: context.config.use_fips_endpoint,
98
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
99
- )
100
- end
101
- end
102
-
103
- class GetDataIntegrationFlow
104
- def self.build(context)
105
- Aws::SupplyChain::EndpointParameters.new(
106
- region: context.config.region,
107
- use_dual_stack: context.config.use_dualstack_endpoint,
108
- use_fips: context.config.use_fips_endpoint,
109
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
110
- )
111
- end
112
- end
113
-
114
- class GetDataLakeDataset
115
- def self.build(context)
116
- Aws::SupplyChain::EndpointParameters.new(
117
- region: context.config.region,
118
- use_dual_stack: context.config.use_dualstack_endpoint,
119
- use_fips: context.config.use_fips_endpoint,
120
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
121
- )
122
- end
123
- end
124
-
125
- class GetInstance
126
- def self.build(context)
127
- Aws::SupplyChain::EndpointParameters.new(
128
- region: context.config.region,
129
- use_dual_stack: context.config.use_dualstack_endpoint,
130
- use_fips: context.config.use_fips_endpoint,
131
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
132
- )
133
- end
134
- end
135
-
136
- class ListDataIntegrationFlows
137
- def self.build(context)
138
- Aws::SupplyChain::EndpointParameters.new(
139
- region: context.config.region,
140
- use_dual_stack: context.config.use_dualstack_endpoint,
141
- use_fips: context.config.use_fips_endpoint,
142
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
143
- )
144
- end
145
- end
146
-
147
- class ListDataLakeDatasets
148
- def self.build(context)
149
- Aws::SupplyChain::EndpointParameters.new(
150
- region: context.config.region,
151
- use_dual_stack: context.config.use_dualstack_endpoint,
152
- use_fips: context.config.use_fips_endpoint,
153
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
154
- )
155
- end
156
- end
157
-
158
- class ListInstances
159
- def self.build(context)
160
- Aws::SupplyChain::EndpointParameters.new(
161
- region: context.config.region,
162
- use_dual_stack: context.config.use_dualstack_endpoint,
163
- use_fips: context.config.use_fips_endpoint,
164
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
165
- )
166
- end
167
- end
168
-
169
- class ListTagsForResource
170
- def self.build(context)
171
- Aws::SupplyChain::EndpointParameters.new(
172
- region: context.config.region,
173
- use_dual_stack: context.config.use_dualstack_endpoint,
174
- use_fips: context.config.use_fips_endpoint,
175
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
176
- )
177
- end
178
- end
179
-
180
- class SendDataIntegrationEvent
181
- def self.build(context)
182
- Aws::SupplyChain::EndpointParameters.new(
183
- region: context.config.region,
184
- use_dual_stack: context.config.use_dualstack_endpoint,
185
- use_fips: context.config.use_fips_endpoint,
186
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
187
- )
188
- end
189
- end
190
-
191
- class TagResource
192
- def self.build(context)
193
- Aws::SupplyChain::EndpointParameters.new(
194
- region: context.config.region,
195
- use_dual_stack: context.config.use_dualstack_endpoint,
196
- use_fips: context.config.use_fips_endpoint,
197
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
198
- )
199
- end
200
- end
201
-
202
- class UntagResource
203
- def self.build(context)
204
- Aws::SupplyChain::EndpointParameters.new(
205
- region: context.config.region,
206
- use_dual_stack: context.config.use_dualstack_endpoint,
207
- use_fips: context.config.use_fips_endpoint,
208
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
209
- )
210
- end
211
- end
212
15
 
213
- class UpdateDataIntegrationFlow
214
- def self.build(context)
215
- Aws::SupplyChain::EndpointParameters.new(
216
- region: context.config.region,
217
- use_dual_stack: context.config.use_dualstack_endpoint,
218
- use_fips: context.config.use_fips_endpoint,
219
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
220
- )
221
- end
16
+ def self.parameters_for_operation(context)
17
+ Aws::SupplyChain::EndpointParameters.create(context.config)
222
18
  end
223
-
224
- class UpdateDataLakeDataset
225
- def self.build(context)
226
- Aws::SupplyChain::EndpointParameters.new(
227
- region: context.config.region,
228
- use_dual_stack: context.config.use_dualstack_endpoint,
229
- use_fips: context.config.use_fips_endpoint,
230
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
231
- )
232
- end
233
- end
234
-
235
- class UpdateInstance
236
- def self.build(context)
237
- Aws::SupplyChain::EndpointParameters.new(
238
- region: context.config.region,
239
- use_dual_stack: context.config.use_dualstack_endpoint,
240
- use_fips: context.config.use_fips_endpoint,
241
- endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
242
- )
243
- end
244
- end
245
-
246
19
  end
247
20
  end
@@ -27,7 +27,7 @@ The endpoint provider used to resolve endpoints. Any object that responds to
27
27
  class Handler < Seahorse::Client::Handler
28
28
  def call(context)
29
29
  unless context[:discovered_endpoint]
30
- params = parameters_for_operation(context)
30
+ params = Aws::SupplyChain::Endpoints.parameters_for_operation(context)
31
31
  endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
32
 
33
33
  context.http_request.endpoint = endpoint.url
@@ -67,53 +67,6 @@ The endpoint provider used to resolve endpoints. Any object that responds to
67
67
  context.http_request.headers[key] = value
68
68
  end
69
69
  end
70
-
71
- def parameters_for_operation(context)
72
- case context.operation_name
73
- when :create_bill_of_materials_import_job
74
- Aws::SupplyChain::Endpoints::CreateBillOfMaterialsImportJob.build(context)
75
- when :create_data_integration_flow
76
- Aws::SupplyChain::Endpoints::CreateDataIntegrationFlow.build(context)
77
- when :create_data_lake_dataset
78
- Aws::SupplyChain::Endpoints::CreateDataLakeDataset.build(context)
79
- when :create_instance
80
- Aws::SupplyChain::Endpoints::CreateInstance.build(context)
81
- when :delete_data_integration_flow
82
- Aws::SupplyChain::Endpoints::DeleteDataIntegrationFlow.build(context)
83
- when :delete_data_lake_dataset
84
- Aws::SupplyChain::Endpoints::DeleteDataLakeDataset.build(context)
85
- when :delete_instance
86
- Aws::SupplyChain::Endpoints::DeleteInstance.build(context)
87
- when :get_bill_of_materials_import_job
88
- Aws::SupplyChain::Endpoints::GetBillOfMaterialsImportJob.build(context)
89
- when :get_data_integration_flow
90
- Aws::SupplyChain::Endpoints::GetDataIntegrationFlow.build(context)
91
- when :get_data_lake_dataset
92
- Aws::SupplyChain::Endpoints::GetDataLakeDataset.build(context)
93
- when :get_instance
94
- Aws::SupplyChain::Endpoints::GetInstance.build(context)
95
- when :list_data_integration_flows
96
- Aws::SupplyChain::Endpoints::ListDataIntegrationFlows.build(context)
97
- when :list_data_lake_datasets
98
- Aws::SupplyChain::Endpoints::ListDataLakeDatasets.build(context)
99
- when :list_instances
100
- Aws::SupplyChain::Endpoints::ListInstances.build(context)
101
- when :list_tags_for_resource
102
- Aws::SupplyChain::Endpoints::ListTagsForResource.build(context)
103
- when :send_data_integration_event
104
- Aws::SupplyChain::Endpoints::SendDataIntegrationEvent.build(context)
105
- when :tag_resource
106
- Aws::SupplyChain::Endpoints::TagResource.build(context)
107
- when :untag_resource
108
- Aws::SupplyChain::Endpoints::UntagResource.build(context)
109
- when :update_data_integration_flow
110
- Aws::SupplyChain::Endpoints::UpdateDataIntegrationFlow.build(context)
111
- when :update_data_lake_dataset
112
- Aws::SupplyChain::Endpoints::UpdateDataLakeDataset.build(context)
113
- when :update_instance
114
- Aws::SupplyChain::Endpoints::UpdateInstance.build(context)
115
- end
116
- end
117
70
  end
118
71
 
119
72
  def add_handlers(handlers, _config)
@@ -951,6 +951,13 @@ module Aws::SupplyChain
951
951
  # The state of the instance.
952
952
  # @return [String]
953
953
  #
954
+ # @!attribute [rw] error_message
955
+ # The Amazon Web Services Supply Chain instance error message. If the
956
+ # instance results in an unhealthy state, customers need to check the
957
+ # error message, delete the current instance, and recreate a new one
958
+ # based on the mitigation from the error message.
959
+ # @return [String]
960
+ #
954
961
  # @!attribute [rw] web_app_dns_domain
955
962
  # The WebApp DNS domain name of the instance.
956
963
  # @return [String]
@@ -988,6 +995,7 @@ module Aws::SupplyChain
988
995
  :instance_id,
989
996
  :aws_account_id,
990
997
  :state,
998
+ :error_message,
991
999
  :web_app_dns_domain,
992
1000
  :created_time,
993
1001
  :last_modified_time,
@@ -54,7 +54,7 @@ module Aws::SupplyChain
54
54
  autoload :EndpointProvider, 'aws-sdk-supplychain/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-supplychain/endpoints'
56
56
 
57
- GEM_VERSION = '1.17.0'
57
+ GEM_VERSION = '1.19.0'
58
58
 
59
59
  end
60
60
 
data/sig/types.rbs CHANGED
@@ -267,6 +267,7 @@ module Aws::SupplyChain
267
267
  attr_accessor instance_id: ::String
268
268
  attr_accessor aws_account_id: ::String
269
269
  attr_accessor state: ("Initializing" | "Active" | "CreateFailed" | "DeleteFailed" | "Deleting" | "Deleted")
270
+ attr_accessor error_message: ::String
270
271
  attr_accessor web_app_dns_domain: ::String
271
272
  attr_accessor created_time: ::Time
272
273
  attr_accessor last_modified_time: ::Time
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.17.0
4
+ version: 1.19.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-10-14 00:00:00.000000000 Z
11
+ date: 2024-10-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.207.0
22
+ version: 3.210.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.207.0
32
+ version: 3.210.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement