update_public_dns_namespace
async
¶
update_public_dns_namespace(
id: Arn,
namespace: PublicDnsNamespaceChange,
*,
config_overrides: Optional[AsyncServiceDiscoveryClientConfig] = None,
updater_request_id: Optional[ResourceId] = None,
) -> UpdatePublicDnsNamespaceResponse
Updates a public DNS namespace.
Parameters:
-
id(Arn) –The ID or Amazon Resource Name (ARN) of the namespace being updated.
-
updater_request_id(Optional[ResourceId], default:None) –A unique string that identifies the request and that allows failed
UpdatePublicDnsNamespacerequests to be retried without the risk of running the operation twice.UpdaterRequestIdcan be any unique string (for example, a date/timestamp). -
namespace(PublicDnsNamespaceChange) –Updated properties for the public DNS namespace.
Raises:
-
DuplicateRequest–The operation is already in progress.
-
InvalidInput–One or more specified values aren't valid. For example, a required value might be missing, a numeric value might be outside the allowed range, or a string value might exceed length constraints.
-
NamespaceNotFound–No namespace exists with the specified ID.
-
ResourceInUse–The specified resource can't be deleted because it contains other resources. For example, you can't delete a service that contains any instances.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To update a public DNS namespace The following example updates the description of a public DNS namespace.
>>> await client.update_public_dns_namespace(id='ns-bk3aEXAMPLE', updater_request_id='', namespace={'Description': 'The updated namespace description.'})
Update public DNS namespace using namespace ARN for shared namespace
This example updates a public DNS namespace using a namespace ARN instead of namespace ID.
>>> await client.update_public_dns_namespace(id='arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-bk3aexample', namespace={'Description': 'Updated description for shared public DNS namespace.'})
Source code in docs_src/capo_servicediscovery/_services/async_service_discovery.py
2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 | |