Skip to main content

distribution_tenants

Creates, updates, deletes or gets a distribution_tenant resource or lists distribution_tenants in a region

Overview

Namedistribution_tenants
TypeResource
DescriptionThe distribution tenant.
Idawscc.cloudfront.distribution_tenants

Fields

NameDatatypeDescription
idstring
distribution_idstringThe ID of the multi-tenant distribution.
namestringThe name of the distribution tenant.
arnstring
domain_resultsarray
tagsarrayA complex type that contains zero or more ``Tag`` elements.
customizationsobjectCustomizations 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.
parametersarrayA 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_idstringThe ID of the connection group for the distribution tenant. If you don't specify a connection group, CloudFront uses the default connection group.
created_timestring
last_modified_timestring
enabledbooleanIndicates whether the distribution tenant is in an enabled state. If disabled, the distribution tenant won't serve traffic.
statusstring
e_tagstring
domainsarrayThe domains associated with the distribution tenant.
managed_certificate_requestobjectAn object that represents the request for the Amazon CloudFront managed ACM certificate.
regionstringAWS region.

For more information, see AWS::CloudFront::DistributionTenant.

Methods

NameAccessible byRequired Params
create_resourceINSERTDistributionId, Name, Domains, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual distribution_tenant.

SELECT
region,
id,
distribution_id,
name,
arn,
domain_results,
tags,
customizations,
parameters,
connection_group_id,
created_time,
last_modified_time,
enabled,
status,
e_tag,
domains,
managed_certificate_request
FROM awscc.cloudfront.distribution_tenants
WHERE data__Identifier = '<Id>';

INSERT example

Use the following StackQL query and manifest file to create a new distribution_tenant resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.cloudfront.distribution_tenants (
DistributionId,
Name,
Domains,
region
)
SELECT
'{{ DistributionId }}',
'{{ Name }}',
'{{ Domains }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.cloudfront.distribution_tenants
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';

Permissions

To operate on the distribution_tenants resource, the following permissions are required:

Create

acm:DescribeCertificate,
acm:RequestCertificate,
cloudfront:CreateDistributionTenant,
cloudfront:GetDistributionTenant,
cloudfront:GetManagedCertificateDetails,
cloudfront:TagResource,
cloudfront:VerifyDnsConfiguration,
wafv2:GetWebACL

Delete

cloudfront:DeleteDistributionTenant,
cloudfront:UpdateDistributionTenant,
cloudfront:GetDistributionTenant,
wafv2:GetWebACL

List

cloudfront:ListDistributionTenants,
cloudfront:ListTagsForResource

Read

cloudfront:GetDistributionTenant,
cloudfront:ListTagsForResource

Update

acm:DescribeCertificate,
acm:RequestCertificate,
cloudfront:GetDistributionTenant,
cloudfront:GetManagedCertificateDetails,
cloudfront:UpdateDistributionTenant,
cloudfront:ListTagsForResource,
cloudfront:TagResource,
cloudfront:UntagResource,
cloudfront:VerifyDnsConfiguration,
wafv2:GetWebACL