update_instance
¶
update_instance(
instance_id: UUID,
*,
config_overrides: Optional[SupplyChainClientConfig] = None,
instance_name: Optional[InstanceName] = None,
instance_description: Optional[InstanceDescription] = None,
) -> UpdateInstanceResponse
Enables you to programmatically update an Amazon Web Services Supply Chain instance description by providing all the relevant information such as account ID, instance ID and so on without using the AWS console.
Parameters:
-
instance_id(UUID) –The AWS Supply Chain instance identifier.
-
instance_name(Optional[InstanceName], default:None) –The AWS Supply Chain instance name.
-
instance_description(Optional[InstanceDescription], default:None) –The AWS Supply Chain instance description.
Raises:
-
AccessDeniedException–You do not have the required privileges to perform this action.
-
ConflictException–Updating or deleting a resource can cause an inconsistent state.
-
InternalServerException–Unexpected error during processing of request.
-
ResourceNotFoundException–Request references a resource which does not exist.
-
ServiceQuotaExceededException–Request would cause a service quota to be exceeded.
-
ThrottlingException–Request was denied due to request throttling.
-
ValidationException–The input does not satisfy the constraints specified by an AWS service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Successful UpdateInstance request
>>> client.update_instance(instance_id='9e193580-7cc5-45f7-9609-c43ba0ada793', instance_name='updated example instance name', instance_description='updated example instance description')
Source code in docs_src/capo_supplychain/_services/supply_chain.py
2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 | |