Skip to content

CloudFront  >  Operations  >  create_distribution_tenant

create_distribution_tenant

Operation

create_distribution_tenant async

create_distribution_tenant(input: CreateDistributionTenantInput, plugins: list[Plugin] | None = None) -> CreateDistributionTenantOutput

Creates a distribution tenant.

Parameters:

Name Type Description Default
input CreateDistributionTenantInput

An instance of CreateDistributionTenantInput.

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
CreateDistributionTenantOutput

An instance of CreateDistributionTenantOutput.

Input

CreateDistributionTenantInput dataclass

Bases: _SerdeShape

Dataclass for CreateDistributionTenantInput structure.

Attributes

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

The ID of the connection group to associate with the distribution tenant.

customizations class-attribute instance-attribute
customizations: Customizations | 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.

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

The ID of the multi-tenant distribution to use for creating the distribution tenant.

domains class-attribute instance-attribute
domains: list[DomainItem] | None = ...

The domains associated with the distribution tenant. You must specify at least one domain in the request.

enabled class-attribute instance-attribute
enabled: bool | None = ...

Indicates whether the distribution tenant should be enabled when created. If the distribution tenant is disabled, the distribution tenant won't serve traffic.

managed_certificate_request class-attribute instance-attribute
managed_certificate_request: ManagedCertificateRequest | None = ...

The configuration for the CloudFront managed ACM certificate request.

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

The name of the distribution tenant. Enter a friendly identifier that is unique within your Amazon Web Services account. This name can't be updated after you create the distribution tenant.

parameters class-attribute instance-attribute
parameters: list[Parameter] | 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.

tags class-attribute instance-attribute
tags: Tags | None = ...

A complex type that contains zero or more Tag elements.

Output

CreateDistributionTenantOutput dataclass

Bases: _SerdeShape

Dataclass for CreateDistributionTenantOutput structure.

Attributes

distribution_tenant class-attribute instance-attribute
distribution_tenant: DistributionTenant | None = ...

The distribution tenant that you created.

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

The current version 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.