Class DistributionGrants

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cloudfront.DistributionGrants
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)", date="2025-11-20T23:37:16.364Z") @Stability(Stable) public class DistributionGrants extends software.amazon.jsii.JsiiObject
Collection of grant methods for a IDistributionRef.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.cloudfront.*;
 import software.amazon.awscdk.interfaces.cloudfront.*;
 IDistributionRef distributionRef;
 DistributionGrants distributionGrants = DistributionGrants.fromDistribution(distributionRef);
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    DistributionGrants(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    DistributionGrants(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Grant to create invalidations for this bucket to an IAM principal (Role/Group/User).
    Creates grants for DistributionGrants.
     

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • DistributionGrants

      protected DistributionGrants(software.amazon.jsii.JsiiObjectRef objRef)
    • DistributionGrants

      protected DistributionGrants(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
  • Method Details

    • fromDistribution

      @Stability(Stable) @NotNull public static DistributionGrants fromDistribution(@NotNull IDistributionRef resource)
      Creates grants for DistributionGrants.

      Parameters:
      resource - This parameter is required.
    • createInvalidation

      @Stability(Stable) @NotNull public Grant createInvalidation(@NotNull IGrantable grantee)
      Grant to create invalidations for this bucket to an IAM principal (Role/Group/User).

      Parameters:
      grantee - This parameter is required.
    • getResource

      @Stability(Stable) @NotNull protected IDistributionRef getResource()