Package de.taimos.pipeline.aws.utils
Enum Class CannedAcl
- All Implemented Interfaces:
Serializable,Comparable<CannedAcl>,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
-
Enum Constant Details
-
Private
-
PublicRead
-
PublicReadWrite
-
AuthenticatedRead
-
BucketOwnerRead
-
BucketOwnerFullControl
-
AwsExecRead
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
toObjectCannedACL
public software.amazon.awssdk.services.s3.model.ObjectCannedACL toObjectCannedACL()
-