update_domain_for_organization
async
¶
update_domain_for_organization(
domain_id: DomainId,
*,
config_overrides: Optional[AsyncCloudWatchOmniClientConfig] = 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.
>>> await client.update_domain_for_organization(domain_id='d-9z8y7x6w5v', name='prod-observability-org-metrics')
Source code in docs_src/capo_cloudwatchomni/_services/async_cloud_watch_omni.py
5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 | |