Enum AccessLevel

java.lang.Object
java.lang.Enum<AccessLevel>
software.amazon.awscdk.services.cloudfront.AccessLevel
All Implemented Interfaces:
Serializable, Comparable<AccessLevel>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-10-05T03:43:39.866Z") @Stability(Stable) public enum AccessLevel extends Enum<AccessLevel>
The level of permissions granted to the CloudFront Distribution when configuring OAC.

Example:

 Bucket myBucket = new Bucket(this, "myBucket");
 IOrigin s3Origin = S3BucketOrigin.withOriginAccessControl(myBucket, S3BucketOriginWithOACProps.builder()
         .originAccessLevels(List.of(AccessLevel.READ, AccessLevel.WRITE, AccessLevel.DELETE))
         .build());
 
  • Enum Constant Details

    • READ

      @Stability(Stable) public static final AccessLevel READ
      Grants read permissions to CloudFront Distribution.
    • WRITE

      @Stability(Stable) public static final AccessLevel WRITE
      Grants write permission to CloudFront Distribution.
    • DELETE

      @Stability(Stable) public static final AccessLevel DELETE
      Grants delete permission to CloudFront Distribution.
  • Method Details

    • values

      public static AccessLevel[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static AccessLevel valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null