Enum ServerSideEncryption

All Implemented Interfaces:
Serializable, Comparable<ServerSideEncryption>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:45.559Z") @Stability(Stable) public enum ServerSideEncryption extends Enum<ServerSideEncryption>
Indicates whether server-side encryption is enabled for the object, and whether that encryption is from the AWS Key Management Service (AWS KMS) or from Amazon S3 managed encryption (SSE-S3).


 Bucket websiteBucket = Bucket.Builder.create(this, "WebsiteBucket")
 BucketDeployment.Builder.create(this, "DeployWebsite")
         .destinationKeyPrefix("web/static") // optional prefix in destination bucket
         .metadata(UserDefinedObjectMetadata.builder().A("1").b("2").build()) // user-defined metadata
         // system-defined metadata
         .cacheControl(List.of(CacheControl.setPublic(), CacheControl.maxAge(Duration.hours(1))))

See Also:
  • Enum Constant Details

  • Method Details

    • values

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

      public static ServerSideEncryption 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.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null