update_domain_for_organization
¶
update_domain_for_organization(
domain_id: DomainId,
*,
config_overrides: Optional[CloudWatchOmniClientConfig] = None,
name: Optional[str] = None,
identity_providers: Optional[IdentityProviderList] = None,
identity_provider_configuration: Optional[IdentityProviderConfiguration] = None,
) -> UpdateDomainForOrganizationOutput
Updates an organization domain's name or identity provider configuration. Call this operation in the Region where the domain was created. Only the provided fields are changed; omitted fields are left unchanged. Renaming a domain also changes the endpoint URLs derived from its name.
Parameters:
-
domain_id(DomainId) –The ID of the organization domain to update.
-
name(Optional[str], default:None) –A new name for the organization domain. Omit to leave unchanged. Must be 3-63 characters: lowercase letters, numbers, and hyphens. It must begin and end with a letter or number and cannot contain consecutive hyphens.
-
identity_providers(Optional[IdentityProviderList], default:None) –The identity providers to configure for the domain. Omit to leave unchanged.
-
identity_provider_configuration(Optional[IdentityProviderConfiguration], default:None) –Identity provider configuration for the domain. Omit to leave unchanged.
Raises:
-
AccessDeniedException–The caller is not authorized to perform this action.
-
ConflictException–The operation could not be completed because of a conflict with the current state of the resource.
-
InternalServerException–An unexpected error occurred while processing the request.
-
ResourceNotFoundException–The specified resource does not exist.
-
ThrottlingException–The request was throttled due to exceeding the allowed request rate.
-
ValidationException–A parameter is specified incorrectly.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Rename an organization domain The following example performs a partial update that changes only the organization domain name; the omitted fields are left unchanged. The endpoint URLs derived from the name are updated, and updatedAt advances past createdAt. Payloads are shown as JSON; on the wire they are CBOR-encoded.
>>> client.update_domain_for_organization(domain_id='d-9z8y7x6w5v', name='prod-observability-org-metrics')
Source code in docs_src/capo_cloudwatchomni/_services/cloud_watch_omni.py
4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 | |