update_distribution_tenant
¶
update_distribution_tenant(
id: string,
if_match: string,
*,
config_overrides: Optional[CloudFrontClientConfig] = None,
distribution_id: Optional[string] = None,
domains: Optional[DomainList] = None,
customizations: Optional[Customizations] = None,
parameters: Optional[Parameters] = None,
connection_group_id: Optional[string] = None,
managed_certificate_request: Optional[ManagedCertificateRequest] = None,
enabled: Optional[boolean] = None,
) -> UpdateDistributionTenantResult
Updates a distribution tenant.
Parameters:
-
id(string) –The ID of the distribution tenant.
-
distribution_id(Optional[string], default:None) –The ID for the multi-tenant distribution.
-
domains(Optional[DomainList], default:None) –The domains to update for the distribution tenant. A domain object can contain only a domain property. You must specify at least one domain. Each distribution tenant can have up to 5 domains.
-
customizations(Optional[Customizations], default:None) –Customizations for the distribution tenant. For each distribution tenant, you can specify the geographic restrictions, and the Amazon Resource Names (ARNs) for the ACM certificate and WAF web ACL. These are specific values that you can override or disable from the multi-tenant distribution that was used to create the distribution tenant.
-
parameters(Optional[Parameters], default:None) –A list of parameter values to add to the resource. A parameter is specified as a key-value pair. A valid parameter value must exist for any parameter that is marked as required in the multi-tenant distribution.
-
connection_group_id(Optional[string], default:None) –The ID of the target connection group.
-
if_match(string) –The value of the
ETagheader that you received when retrieving the distribution tenant to update. This value is returned in the response of theGetDistributionTenantAPI operation. -
managed_certificate_request(Optional[ManagedCertificateRequest], default:None) –An object that contains the CloudFront managed ACM certificate request.
-
enabled(Optional[boolean], default:None) –Indicates whether the distribution tenant should be updated to an enabled state. If you update the distribution tenant and it's not enabled, the distribution tenant won't serve traffic.
Raises:
-
AccessDenied–Access denied.
-
CNAMEAlreadyExists–The CNAME specified is already defined for CloudFront.
-
EntityAlreadyExists–The entity already exists. You must provide a unique entity.
-
EntityLimitExceeded–The entity limit has been exceeded.
-
EntityNotFound–The entity was not found.
-
InvalidArgument–An argument is invalid.
-
InvalidAssociation–The specified CloudFront resource can't be associated.
-
InvalidIfMatchVersion–The
If-Matchversion is missing or not valid. -
PreconditionFailed–The precondition in one or more of the request fields evaluated to
false. -
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_cloudfront/_services/cloud_front.py
9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 | |