aws-sdk-supplychain 1.16.0 → 1.18.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: 04f503ed51322ddc11b7017f5a9df8391e19c3ea986b1160a7085191a9dcbc5c
4
- data.tar.gz: 881c937c262b7ebc9f6bb61423b50e0a412214d2318c69515cca196c202d77f6
3
+ metadata.gz: fb68a4cb61d420ddbeeb264e94b8320f8c2f37dfbfee270a21c00f63662d9108
4
+ data.tar.gz: 1b5175372151c5e77333be14172ea1a61451b69ca97ecbe40e5e19d76926f80a
5
5
  SHA512:
6
- metadata.gz: 9dacb78ebcb0e67f1e18e7f150f5ce1a88e655acdacb75e83f9b6166e66ae4d6b16a558cd9dceed5940ec766ff1ca5db0c6bb3158287590a7fb8b480ed868a18
7
- data.tar.gz: 185615a936f138d43fa7d71fed7798a61387f3453871c8fc5bd13a9c88e852a01c1ea1fbf02f38524be25fc23a0eb21c378540045c96acf3d5716c8fb878b135
6
+ metadata.gz: aad1d422536ceb00f7699571caf552dc2789773f44ed1d4221f30857bbdc0d3ccff0d305e70cb208e36bd592ab54e66051b27a066f84485f3c398fab562f9110
7
+ data.tar.gz: f6bab4c7dca163a632d017b2df3c3c2c0f61eb4adb3cb81f789954b79eebd317ecd6e46ebeaecdb5ff3a75f4a79a28ed463daf0db19671a5af7c3615709ee318
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.18.0 (2024-10-18)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.17.0 (2024-10-14)
10
+ ------------------
11
+
12
+ * Feature - This release adds AWS Supply Chain instance management functionality. Specifically adding CreateInstance, DeleteInstance, GetInstance, ListInstances, and UpdateInstance APIs.
13
+
4
14
  1.16.0 (2024-09-30)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.16.0
1
+ 1.18.0
@@ -1036,6 +1036,118 @@ module Aws::SupplyChain
1036
1036
  req.send_request(options)
1037
1037
  end
1038
1038
 
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
+ #
1046
+ # @option params [String] :instance_name
1047
+ # The AWS Supply Chain instance name.
1048
+ #
1049
+ # @option params [String] :instance_description
1050
+ # The AWS Supply Chain instance description.
1051
+ #
1052
+ # @option params [String] :kms_key_arn
1053
+ # The ARN (Amazon Resource Name) of the Key Management Service (KMS) key
1054
+ # you provide for encryption. This is required if you do not want to use
1055
+ # the Amazon Web Services owned KMS key. If you don't provide anything
1056
+ # here, AWS Supply Chain uses the Amazon Web Services owned KMS key.
1057
+ #
1058
+ # @option params [Hash<String,String>] :tags
1059
+ # The Amazon Web Services tags of an instance to be created.
1060
+ #
1061
+ # @option params [String] :client_token
1062
+ # The client token for idempotency.
1063
+ #
1064
+ # **A suitable default value is auto-generated.** You should normally
1065
+ # not need to pass this option.**
1066
+ #
1067
+ # @return [Types::CreateInstanceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1068
+ #
1069
+ # * {Types::CreateInstanceResponse#instance #instance} => Types::Instance
1070
+ #
1071
+ #
1072
+ # @example Example: Successful CreateInstance request with all input data
1073
+ #
1074
+ # resp = client.create_instance({
1075
+ # instance_description: "example instance description",
1076
+ # instance_name: "example instance name",
1077
+ # kms_key_arn: "arn:aws:kms:us-west-2:123456789012:key/b14ffc39-b7d4-45ab-991a-6257a7f0d24d",
1078
+ # tags: {
1079
+ # "tagKey1" => "tagValue1",
1080
+ # },
1081
+ # })
1082
+ #
1083
+ # resp.to_h outputs the following:
1084
+ # {
1085
+ # instance: {
1086
+ # aws_account_id: "123456789012",
1087
+ # created_time: Time.parse(172615383136),
1088
+ # instance_description: "example instance description",
1089
+ # instance_id: "9e193580-7cc5-45f7-9609-c43ba0ada793",
1090
+ # instance_name: "example instance name",
1091
+ # kms_key_arn: "arn:aws:kms:us-west-2:123456789012:key/b14ffc39-b7d4-45ab-991a-6257a7f0d24d",
1092
+ # last_modified_time: Time.parse(172615383136),
1093
+ # state: "Initializing",
1094
+ # version_number: 2.0,
1095
+ # },
1096
+ # }
1097
+ #
1098
+ # @example Example: Successful CreateInstance request with no input data
1099
+ #
1100
+ # resp = client.create_instance({
1101
+ # })
1102
+ #
1103
+ # resp.to_h outputs the following:
1104
+ # {
1105
+ # instance: {
1106
+ # aws_account_id: "123456789012",
1107
+ # created_time: Time.parse(172615383136),
1108
+ # instance_description: "",
1109
+ # instance_id: "9e193580-7cc5-45f7-9609-c43ba0ada793",
1110
+ # kms_key_arn: "arn:aws:kms:us-west-2:456789012345:key/7372eb6d-874c-4212-8d49-7804282d33a8",
1111
+ # last_modified_time: Time.parse(172615383136),
1112
+ # state: "Initializing",
1113
+ # version_number: 2.0,
1114
+ # },
1115
+ # }
1116
+ #
1117
+ # @example Request syntax with placeholder values
1118
+ #
1119
+ # resp = client.create_instance({
1120
+ # instance_name: "InstanceName",
1121
+ # instance_description: "InstanceDescription",
1122
+ # kms_key_arn: "KmsKeyArn",
1123
+ # tags: {
1124
+ # "TagKey" => "TagValue",
1125
+ # },
1126
+ # client_token: "ClientToken",
1127
+ # })
1128
+ #
1129
+ # @example Response structure
1130
+ #
1131
+ # resp.instance.instance_id #=> String
1132
+ # resp.instance.aws_account_id #=> String
1133
+ # resp.instance.state #=> String, one of "Initializing", "Active", "CreateFailed", "DeleteFailed", "Deleting", "Deleted"
1134
+ # resp.instance.web_app_dns_domain #=> String
1135
+ # resp.instance.created_time #=> Time
1136
+ # resp.instance.last_modified_time #=> Time
1137
+ # resp.instance.instance_name #=> String
1138
+ # resp.instance.instance_description #=> String
1139
+ # resp.instance.kms_key_arn #=> String
1140
+ # resp.instance.version_number #=> Float
1141
+ #
1142
+ # @see http://docs.aws.amazon.com/goto/WebAPI/supplychain-2024-01-01/CreateInstance AWS API Documentation
1143
+ #
1144
+ # @overload create_instance(params = {})
1145
+ # @param [Hash] params ({})
1146
+ def create_instance(params = {}, options = {})
1147
+ req = build_request(:create_instance, params)
1148
+ req.send_request(options)
1149
+ end
1150
+
1039
1151
  # Delete the DataIntegrationFlow.
1040
1152
  #
1041
1153
  # @option params [required, String] :instance_id
@@ -1168,6 +1280,70 @@ module Aws::SupplyChain
1168
1280
  req.send_request(options)
1169
1281
  end
1170
1282
 
1283
+ # Delete the instance. This is an asynchronous operation. Upon receiving
1284
+ # a DeleteInstance request, AWS Supply Chain immediately returns a
1285
+ # response with the instance resource, delete state while cleaning up
1286
+ # all Amazon Web Services resources created during the instance creation
1287
+ # process. You can use the GetInstance action to check the instance
1288
+ # status.
1289
+ #
1290
+ # @option params [required, String] :instance_id
1291
+ # The AWS Supply Chain instance identifier.
1292
+ #
1293
+ # @return [Types::DeleteInstanceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1294
+ #
1295
+ # * {Types::DeleteInstanceResponse#instance #instance} => Types::Instance
1296
+ #
1297
+ #
1298
+ # @example Example: Successful DeleteInstance request
1299
+ #
1300
+ # resp = client.delete_instance({
1301
+ # instance_id: "9e193580-7cc5-45f7-9609-c43ba0ada793",
1302
+ # })
1303
+ #
1304
+ # resp.to_h outputs the following:
1305
+ # {
1306
+ # instance: {
1307
+ # aws_account_id: "123456789012",
1308
+ # created_time: Time.parse(172615383136),
1309
+ # instance_description: "updated example instance description",
1310
+ # instance_id: "9e193580-7cc5-45f7-9609-c43ba0ada793",
1311
+ # instance_name: "updated example instance name",
1312
+ # kms_key_arn: "arn:aws:kms:us-west-2:123456789012:key/b14ffc39-b7d4-45ab-991a-6257a7f0d24d",
1313
+ # last_modified_time: Time.parse(172615383136),
1314
+ # state: "Deleting",
1315
+ # version_number: 2.0,
1316
+ # },
1317
+ # }
1318
+ #
1319
+ # @example Request syntax with placeholder values
1320
+ #
1321
+ # resp = client.delete_instance({
1322
+ # instance_id: "UUID", # required
1323
+ # })
1324
+ #
1325
+ # @example Response structure
1326
+ #
1327
+ # resp.instance.instance_id #=> String
1328
+ # resp.instance.aws_account_id #=> String
1329
+ # resp.instance.state #=> String, one of "Initializing", "Active", "CreateFailed", "DeleteFailed", "Deleting", "Deleted"
1330
+ # resp.instance.web_app_dns_domain #=> String
1331
+ # resp.instance.created_time #=> Time
1332
+ # resp.instance.last_modified_time #=> Time
1333
+ # resp.instance.instance_name #=> String
1334
+ # resp.instance.instance_description #=> String
1335
+ # resp.instance.kms_key_arn #=> String
1336
+ # resp.instance.version_number #=> Float
1337
+ #
1338
+ # @see http://docs.aws.amazon.com/goto/WebAPI/supplychain-2024-01-01/DeleteInstance AWS API Documentation
1339
+ #
1340
+ # @overload delete_instance(params = {})
1341
+ # @param [Hash] params ({})
1342
+ def delete_instance(params = {}, options = {})
1343
+ req = build_request(:delete_instance, params)
1344
+ req.send_request(options)
1345
+ end
1346
+
1171
1347
  # Get status and details of a BillOfMaterialsImportJob.
1172
1348
  #
1173
1349
  # @option params [required, String] :instance_id
@@ -1619,6 +1795,65 @@ module Aws::SupplyChain
1619
1795
  req.send_request(options)
1620
1796
  end
1621
1797
 
1798
+ # Get the AWS Supply Chain instance details.
1799
+ #
1800
+ # @option params [required, String] :instance_id
1801
+ # The AWS Supply Chain instance identifier
1802
+ #
1803
+ # @return [Types::GetInstanceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1804
+ #
1805
+ # * {Types::GetInstanceResponse#instance #instance} => Types::Instance
1806
+ #
1807
+ #
1808
+ # @example Example: Successful GetInstance request
1809
+ #
1810
+ # resp = client.get_instance({
1811
+ # instance_id: "9e193580-7cc5-45f7-9609-c43ba0ada793",
1812
+ # })
1813
+ #
1814
+ # resp.to_h outputs the following:
1815
+ # {
1816
+ # instance: {
1817
+ # aws_account_id: "123456789012",
1818
+ # created_time: Time.parse(172615383136),
1819
+ # instance_description: "example instance description",
1820
+ # instance_id: "9e193580-7cc5-45f7-9609-c43ba0ada793",
1821
+ # instance_name: "example instance name",
1822
+ # kms_key_arn: "arn:aws:kms:us-west-2:123456789012:key/b14ffc39-b7d4-45ab-991a-6257a7f0d24d",
1823
+ # last_modified_time: Time.parse(172615383136),
1824
+ # state: "Active",
1825
+ # version_number: 2.0,
1826
+ # },
1827
+ # }
1828
+ #
1829
+ # @example Request syntax with placeholder values
1830
+ #
1831
+ # resp = client.get_instance({
1832
+ # instance_id: "UUID", # required
1833
+ # })
1834
+ #
1835
+ # @example Response structure
1836
+ #
1837
+ # resp.instance.instance_id #=> String
1838
+ # resp.instance.aws_account_id #=> String
1839
+ # resp.instance.state #=> String, one of "Initializing", "Active", "CreateFailed", "DeleteFailed", "Deleting", "Deleted"
1840
+ # resp.instance.web_app_dns_domain #=> String
1841
+ # resp.instance.created_time #=> Time
1842
+ # resp.instance.last_modified_time #=> Time
1843
+ # resp.instance.instance_name #=> String
1844
+ # resp.instance.instance_description #=> String
1845
+ # resp.instance.kms_key_arn #=> String
1846
+ # resp.instance.version_number #=> Float
1847
+ #
1848
+ # @see http://docs.aws.amazon.com/goto/WebAPI/supplychain-2024-01-01/GetInstance AWS API Documentation
1849
+ #
1850
+ # @overload get_instance(params = {})
1851
+ # @param [Hash] params ({})
1852
+ def get_instance(params = {}, options = {})
1853
+ req = build_request(:get_instance, params)
1854
+ req.send_request(options)
1855
+ end
1856
+
1622
1857
  # Lists all the DataIntegrationFlows in a paginated way.
1623
1858
  #
1624
1859
  # @option params [required, String] :instance_id
@@ -2074,6 +2309,169 @@ module Aws::SupplyChain
2074
2309
  req.send_request(options)
2075
2310
  end
2076
2311
 
2312
+ # List all the AWS Supply Chain instances in a paginated way.
2313
+ #
2314
+ # @option params [String] :next_token
2315
+ # The pagination token to fetch the next page of instances.
2316
+ #
2317
+ # @option params [Integer] :max_results
2318
+ # Specify the maximum number of instances to fetch in this paginated
2319
+ # request.
2320
+ #
2321
+ # @option params [Array<String>] :instance_name_filter
2322
+ # The filter to ListInstances based on their names.
2323
+ #
2324
+ # @option params [Array<String>] :instance_state_filter
2325
+ # The filter to ListInstances based on their state.
2326
+ #
2327
+ # @return [Types::ListInstancesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2328
+ #
2329
+ # * {Types::ListInstancesResponse#instances #instances} => Array&lt;Types::Instance&gt;
2330
+ # * {Types::ListInstancesResponse#next_token #next_token} => String
2331
+ #
2332
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2333
+ #
2334
+ #
2335
+ # @example Example: Successful ListInstance request with no input data
2336
+ #
2337
+ # resp = client.list_instances({
2338
+ # })
2339
+ #
2340
+ # resp.to_h outputs the following:
2341
+ # {
2342
+ # instances: [
2343
+ # {
2344
+ # aws_account_id: "123456789012",
2345
+ # created_time: Time.parse(172615383136),
2346
+ # instance_description: "example instance description",
2347
+ # instance_id: "9e193580-7cc5-45f7-9609-c43ba0ada793",
2348
+ # instance_name: "example instance name",
2349
+ # kms_key_arn: "arn:aws:kms:us-west-2:123456789012:key/b14ffc39-b7d4-45ab-991a-6257a7f0d24d",
2350
+ # last_modified_time: Time.parse(172615383136),
2351
+ # state: "Active",
2352
+ # version_number: 2.0,
2353
+ # },
2354
+ # {
2355
+ # aws_account_id: "123456789012",
2356
+ # created_time: Time.parse(17261674383136),
2357
+ # instance_description: "example instance description",
2358
+ # instance_id: "3ad8116a-644d-4172-8dcb-20e51d314c14",
2359
+ # kms_key_arn: "arn:aws:kms:us-west-2:123456789012:key/b14ffc39-b7d4-45ab-991a-6257a7f0d24d",
2360
+ # last_modified_time: Time.parse(17261674383136),
2361
+ # state: "Initializing",
2362
+ # version_number: 2.0,
2363
+ # },
2364
+ # ],
2365
+ # }
2366
+ #
2367
+ # @example Example: Successful ListInstance request with filters
2368
+ #
2369
+ # resp = client.list_instances({
2370
+ # instance_name_filter: [
2371
+ # "example instance name",
2372
+ # ],
2373
+ # instance_state_filter: [
2374
+ # "Active",
2375
+ # ],
2376
+ # })
2377
+ #
2378
+ # resp.to_h outputs the following:
2379
+ # {
2380
+ # instances: [
2381
+ # {
2382
+ # aws_account_id: "123456789012",
2383
+ # created_time: Time.parse(172615383136),
2384
+ # instance_description: "example instance description",
2385
+ # instance_id: "9e193580-7cc5-45f7-9609-c43ba0ada793",
2386
+ # instance_name: "example instance name",
2387
+ # kms_key_arn: "arn:aws:kms:us-west-2:123456789012:key/b14ffc39-b7d4-45ab-991a-6257a7f0d24d",
2388
+ # last_modified_time: Time.parse(172615383136),
2389
+ # state: "Active",
2390
+ # version_number: 2.0,
2391
+ # },
2392
+ # ],
2393
+ # }
2394
+ #
2395
+ # @example Example: Successful ListInstance request with maxResult override
2396
+ #
2397
+ # resp = client.list_instances({
2398
+ # max_results: 1,
2399
+ # })
2400
+ #
2401
+ # resp.to_h outputs the following:
2402
+ # {
2403
+ # instances: [
2404
+ # {
2405
+ # aws_account_id: "123456789012",
2406
+ # created_time: Time.parse(172615383136),
2407
+ # instance_description: "example instance description",
2408
+ # instance_id: "9e193580-7cc5-45f7-9609-c43ba0ada793",
2409
+ # instance_name: "example instance name",
2410
+ # kms_key_arn: "arn:aws:kms:us-west-2:123456789012:key/b14ffc39-b7d4-45ab-991a-6257a7f0d24d",
2411
+ # last_modified_time: Time.parse(172615383136),
2412
+ # state: "Active",
2413
+ # version_number: 2.0,
2414
+ # },
2415
+ # ],
2416
+ # next_token: "AAQA-EFRSURBSGhtcng0c0dxbENwUHdnckVIbkFYNU1QVjRTZWN2ak5iMFVicC8zemlHOVF3SEpjSC9WTWJVVXBMV2Z1N3ZvZlQ0WEFBQUFmakI4QmdrcWhraUc5dzBCQndhZ2J6QnRBZ0VBTUdnR0NTcUdTSWIzRFFFSEFUQWVCZ2xnaGtnQlpRTUVBUzR3RVFRTTJibW9LemgrSWZTY0RaZEdBZ0VRZ0R2dDhsQnVGbGJ0dnFTZityWmNSWEVPbG93emJoSjhxOGNMbGQ1UGMvY0VRbWlTR3pQUFd4N2RraXY5Y0ovcS9vSmFYZVBGdWVHaU0zWmd0dz09n-rC1ejA5--7ltJxpDT2xP_i8xGqDPMOZfjpp8q6l5NuP9_bnBURvwwYhdqDriMK5_f96LuPEnPbuML-ItfgEiCcUy0p2tApvpZkZqOG5fbqP-4C5aDYPTffHLyq-MMqvfrGVJzL1nvkpZcnTkVR9VJsu5b8I0qqDW0H8EMKGgTo78U9lr4sj3Usi9VMwZxgKCBmr03HhFLYXOW--XMbIx0CTZF0fYIcRxmA_sVS6J7gpaB9yMcnzs5VUKokoA5JTcAPY5d1Y1VyE8KKxv51cfPgXw8OYCDbFQncw8mZPmE-VqxjFbksmk_FmghpPn9j2Ppoe-zr0LQ%3D",
2417
+ # }
2418
+ #
2419
+ # @example Example: Successful ListInstance request with nextToken
2420
+ #
2421
+ # resp = client.list_instances({
2422
+ # max_results: 1,
2423
+ # next_token: "AAQA-EFRSURBSGhtcng0c0dxbENwUHdnckVIbkFYNU1QVjRTZWN2ak5iMFVicC8zemlHOVF3SEpjSC9WTWJVVXBMV2Z1N3ZvZlQ0WEFBQUFmakI4QmdrcWhraUc5dzBCQndhZ2J6QnRBZ0VBTUdnR0NTcUdTSWIzRFFFSEFUQWVCZ2xnaGtnQlpRTUVBUzR3RVFRTTJibW9LemgrSWZTY0RaZEdBZ0VRZ0R2dDhsQnVGbGJ0dnFTZityWmNSWEVPbG93emJoSjhxOGNMbGQ1UGMvY0VRbWlTR3pQUFd4N2RraXY5Y0ovcS9vSmFYZVBGdWVHaU0zWmd0dz09n-rC1ejA5--7ltJxpDT2xP_i8xGqDPMOZfjpp8q6l5NuP9_bnBURvwwYhdqDriMK5_f96LuPEnPbuML-ItfgEiCcUy0p2tApvpZkZqOG5fbqP-4C5aDYPTffHLyq-MMqvfrGVJzL1nvkpZcnTkVR9VJsu5b8I0qqDW0H8EMKGgTo78U9lr4sj3Usi9VMwZxgKCBmr03HhFLYXOW--XMbIx0CTZF0fYIcRxmA_sVS6J7gpaB9yMcnzs5VUKokoA5JTcAPY5d1Y1VyE8KKxv51cfPgXw8OYCDbFQncw8mZPmE-VqxjFbksmk_FmghpPn9j2Ppoe-zr0LQ%3D",
2424
+ # })
2425
+ #
2426
+ # resp.to_h outputs the following:
2427
+ # {
2428
+ # instances: [
2429
+ # {
2430
+ # aws_account_id: "123456789012",
2431
+ # created_time: Time.parse(17261674383136),
2432
+ # instance_description: "example instance description",
2433
+ # instance_id: "3ad8116a-644d-4172-8dcb-20e51d314c14",
2434
+ # kms_key_arn: "arn:aws:kms:us-west-2:123456789012:key/b14ffc39-b7d4-45ab-991a-6257a7f0d24d",
2435
+ # last_modified_time: Time.parse(17261674383136),
2436
+ # state: "Initializing",
2437
+ # version_number: 2.0,
2438
+ # },
2439
+ # ],
2440
+ # }
2441
+ #
2442
+ # @example Request syntax with placeholder values
2443
+ #
2444
+ # resp = client.list_instances({
2445
+ # next_token: "InstanceNextToken",
2446
+ # max_results: 1,
2447
+ # instance_name_filter: ["InstanceName"],
2448
+ # instance_state_filter: ["Initializing"], # accepts Initializing, Active, CreateFailed, DeleteFailed, Deleting, Deleted
2449
+ # })
2450
+ #
2451
+ # @example Response structure
2452
+ #
2453
+ # resp.instances #=> Array
2454
+ # resp.instances[0].instance_id #=> String
2455
+ # resp.instances[0].aws_account_id #=> String
2456
+ # resp.instances[0].state #=> String, one of "Initializing", "Active", "CreateFailed", "DeleteFailed", "Deleting", "Deleted"
2457
+ # resp.instances[0].web_app_dns_domain #=> String
2458
+ # resp.instances[0].created_time #=> Time
2459
+ # resp.instances[0].last_modified_time #=> Time
2460
+ # resp.instances[0].instance_name #=> String
2461
+ # resp.instances[0].instance_description #=> String
2462
+ # resp.instances[0].kms_key_arn #=> String
2463
+ # resp.instances[0].version_number #=> Float
2464
+ # resp.next_token #=> String
2465
+ #
2466
+ # @see http://docs.aws.amazon.com/goto/WebAPI/supplychain-2024-01-01/ListInstances AWS API Documentation
2467
+ #
2468
+ # @overload list_instances(params = {})
2469
+ # @param [Hash] params ({})
2470
+ def list_instances(params = {}, options = {})
2471
+ req = build_request(:list_instances, params)
2472
+ req.send_request(options)
2473
+ end
2474
+
2077
2475
  # List all the tags for an Amazon Web ServicesSupply Chain resource.
2078
2476
  #
2079
2477
  # @option params [required, String] :resource_arn
@@ -3024,6 +3422,75 @@ module Aws::SupplyChain
3024
3422
  req.send_request(options)
3025
3423
  end
3026
3424
 
3425
+ # Update the instance.
3426
+ #
3427
+ # @option params [required, String] :instance_id
3428
+ # The AWS Supply Chain instance identifier.
3429
+ #
3430
+ # @option params [String] :instance_name
3431
+ # The AWS Supply Chain instance name.
3432
+ #
3433
+ # @option params [String] :instance_description
3434
+ # The AWS Supply Chain instance description.
3435
+ #
3436
+ # @return [Types::UpdateInstanceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3437
+ #
3438
+ # * {Types::UpdateInstanceResponse#instance #instance} => Types::Instance
3439
+ #
3440
+ #
3441
+ # @example Example: Successful UpdateInstance request
3442
+ #
3443
+ # resp = client.update_instance({
3444
+ # instance_description: "updated example instance description",
3445
+ # instance_id: "9e193580-7cc5-45f7-9609-c43ba0ada793",
3446
+ # instance_name: "updated example instance name",
3447
+ # })
3448
+ #
3449
+ # resp.to_h outputs the following:
3450
+ # {
3451
+ # instance: {
3452
+ # aws_account_id: "123456789012",
3453
+ # created_time: Time.parse(172615383136),
3454
+ # instance_description: "updated example instance description",
3455
+ # instance_id: "9e193580-7cc5-45f7-9609-c43ba0ada793",
3456
+ # instance_name: "updated example instance name",
3457
+ # kms_key_arn: "arn:aws:kms:us-west-2:123456789012:key/b14ffc39-b7d4-45ab-991a-6257a7f0d24d",
3458
+ # last_modified_time: Time.parse(172615383136),
3459
+ # state: "Active",
3460
+ # version_number: 2.0,
3461
+ # },
3462
+ # }
3463
+ #
3464
+ # @example Request syntax with placeholder values
3465
+ #
3466
+ # resp = client.update_instance({
3467
+ # instance_id: "UUID", # required
3468
+ # instance_name: "InstanceName",
3469
+ # instance_description: "InstanceDescription",
3470
+ # })
3471
+ #
3472
+ # @example Response structure
3473
+ #
3474
+ # resp.instance.instance_id #=> String
3475
+ # resp.instance.aws_account_id #=> String
3476
+ # resp.instance.state #=> String, one of "Initializing", "Active", "CreateFailed", "DeleteFailed", "Deleting", "Deleted"
3477
+ # resp.instance.web_app_dns_domain #=> String
3478
+ # resp.instance.created_time #=> Time
3479
+ # resp.instance.last_modified_time #=> Time
3480
+ # resp.instance.instance_name #=> String
3481
+ # resp.instance.instance_description #=> String
3482
+ # resp.instance.kms_key_arn #=> String
3483
+ # resp.instance.version_number #=> Float
3484
+ #
3485
+ # @see http://docs.aws.amazon.com/goto/WebAPI/supplychain-2024-01-01/UpdateInstance AWS API Documentation
3486
+ #
3487
+ # @overload update_instance(params = {})
3488
+ # @param [Hash] params ({})
3489
+ def update_instance(params = {}, options = {})
3490
+ req = build_request(:update_instance, params)
3491
+ req.send_request(options)
3492
+ end
3493
+
3027
3494
  # @!endgroup
3028
3495
 
3029
3496
  # @param params ({})
@@ -3042,7 +3509,7 @@ module Aws::SupplyChain
3042
3509
  tracer: tracer
3043
3510
  )
3044
3511
  context[:gem_name] = 'aws-sdk-supplychain'
3045
- context[:gem_version] = '1.16.0'
3512
+ context[:gem_version] = '1.18.0'
3046
3513
  Seahorse::Client::Request.new(handlers, context)
3047
3514
  end
3048
3515