update_instance
async
¶
update_instance(
instance_id: UUID,
*,
config_overrides: Optional[AsyncSupplyChainClientConfig] = 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
>>> await 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/async_supply_chain.py
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 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 | |