Interface IDistribution
- All Superinterfaces:
software.constructs.IConstruct,software.constructs.IDependable,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.104.0 (build e79254c)",
date="2024-11-06T23:25:05.561Z")
@Stability(Stable)
public interface IDistribution
extends software.amazon.jsii.JsiiSerializable, IResource
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 domain name of the Distribution, such as d111111abcdef8.cloudfront.net.The distribution ID for this distribution.grant(IGrantable identity, @NotNull 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.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDistributionDomainName
The domain name of the Distribution, such as d111111abcdef8.cloudfront.net. -
getDistributionId
The distribution ID for this distribution. -
grant
@Stability(Stable) @NotNull Grant grant(@NotNull IGrantable identity, @NotNull @NotNull String... actions) 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.
-