Interface IDistribution
- All Superinterfaces:
software.constructs.IConstruct,software.constructs.IDependable,IDistributionRef,IEnvironmentAware,IResource,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IDistribution.Jsii$Default
- All Known Implementing Classes:
CloudFrontWebDistribution,Distribution,IDistribution.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:32.162Z")
@Stability(Stable)
public interface IDistribution
extends software.amazon.jsii.JsiiSerializable, IResource, IDistributionRef
Interface for CloudFront distributions.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInternal default implementation forIDistribution.static final classA proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionThe distribution ARN for this distribution.The domain name of the Distribution, such as d111111abcdef8.cloudfront.net.rproxy.govskope.ca.The distribution ID for this distribution.getEnv()The environment this resource belongs to.software.constructs.NodegetNode()The tree node.grant(IGrantable identity, String... actions) Adds an IAM policy statement associated with this distribution to an IAM principal's policy.grantCreateInvalidation(IGrantable identity) Grant to create invalidations for this bucket to an IAM principal (Role/Group/User).Methods inherited from interface software.amazon.awscdk.interfaces.cloudfront.IDistributionRef
getDistributionRefMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDistributionArn
The distribution ARN for this distribution. -
getDistributionDomainName
The domain name of the Distribution, such as d111111abcdef8.cloudfront.net. -
getDistributionId
The distribution ID for this distribution. -
grant
Adds an IAM policy statement associated with this distribution to an IAM principal's policy.- Parameters:
identity- The principal. This parameter is required.actions- The set of actions to allow (i.e. "cloudfront:ListInvalidations"). This parameter is required.
-
grantCreateInvalidation
Grant to create invalidations for this bucket to an IAM principal (Role/Group/User).- Parameters:
identity- The principal. This parameter is required.
-
getNode
@Stability(Stable) @NotNull software.constructs.Node getNode()The tree node.- Specified by:
getNodein interfacesoftware.constructs.IConstruct
-
getEnv
The environment this resource belongs to.For resources that are created and managed in a Stack (those created by creating new class instances like
new Role(),new Bucket(), etc.), this is always the same as the environment of the stack they belong to.For referenced resources (those obtained from referencing methods like
Role.fromRoleArn(),Bucket.fromBucketName(), etc.), they might be different than the stack they were imported into.- Specified by:
getEnvin interfaceIEnvironmentAware
-