Skip to content

CloudFront  >  Operations  >  associate_distribution_tenant_web_acl

associate_distribution_tenant_web_acl

Operation

associate_distribution_tenant_web_acl async

associate_distribution_tenant_web_acl(input: AssociateDistributionTenantWebACLInput, plugins: list[Plugin] | None = None) -> AssociateDistributionTenantWebACLOutput

Associates the WAF web ACL with a distribution tenant.

Parameters:

Name Type Description Default
input AssociateDistributionTenantWebACLInput

An instance of AssociateDistributionTenantWebACLInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
AssociateDistributionTenantWebACLOutput

An instance of AssociateDistributionTenantWebACLOutput.

Input

AssociateDistributionTenantWebACLInput dataclass

Bases: _SerdeShape

Dataclass for AssociateDistributionTenantWebACLInput structure.

Attributes

id class-attribute instance-attribute
id: str | None = ...

The ID of the distribution tenant.

if_match class-attribute instance-attribute
if_match: str | None = ...

The current ETag of the distribution tenant. This value is returned in the response of the GetDistributionTenant API operation.

web_acl_arn class-attribute instance-attribute
web_acl_arn: str | None = ...

The Amazon Resource Name (ARN) of the WAF web ACL to associate.

Output

AssociateDistributionTenantWebACLOutput dataclass

Bases: _SerdeShape

Dataclass for AssociateDistributionTenantWebACLOutput structure.

Attributes

e_tag class-attribute instance-attribute
e_tag: str | None = ...

The current version of the distribution tenant.

id class-attribute instance-attribute
id: str | None = ...

The ID of the distribution tenant.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.

web_acl_arn class-attribute instance-attribute
web_acl_arn: str | None = ...

The ARN of the WAF web ACL that you associated with the distribution tenant.