update_distribution_tenant
async
¶
update_distribution_tenant(
id: string,
if_match: string,
*,
config_overrides: Optional[AsyncCloudFrontClientConfig] = 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/async_cloud_front.py
9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 | |