Enum Class CannedAcl

java.lang.Object
java.lang.Enum<CannedAcl>
de.taimos.pipeline.aws.utils.CannedAcl
All Implemented Interfaces:
Serializable, Comparable<CannedAcl>, Constable

public enum CannedAcl extends Enum<CannedAcl>
The canned ACL names that s3Upload and s3Copy accept. These are deliberately spelled as SDK v1 spelled them - acl: 'PublicRead', not 'PUBLIC_READ' - because Stapler binds the parameter by enum constant name, so renaming them to the v2 spellings would break every existing Jenkinsfile that sets one. Keeping an enum rather than taking a String also keeps the Snippet Generator's dropdown and its up-front validation. v1's LogDeliveryWrite is absent: it is a bucket ACL, and v2 models object and bucket canned ACLs separately, so there is no object-level counterpart to map it to. S3 rejected it on an object under v1 as well, so what changes is that the build now fails when the value is bound rather than when the request is sent.
  • Enum Constant Details

    • Private

      public static final CannedAcl Private
    • PublicRead

      public static final CannedAcl PublicRead
    • PublicReadWrite

      public static final CannedAcl PublicReadWrite
    • AuthenticatedRead

      public static final CannedAcl AuthenticatedRead
    • BucketOwnerRead

      public static final CannedAcl BucketOwnerRead
    • BucketOwnerFullControl

      public static final CannedAcl BucketOwnerFullControl
    • AwsExecRead

      public static final CannedAcl AwsExecRead
  • Method Details

    • values

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

      public static CannedAcl valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • toObjectCannedACL

      public software.amazon.awssdk.services.s3.model.ObjectCannedACL toObjectCannedACL()