Interface S3Encryption

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
S3Encryption.Jsii$Proxy

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-17T21:37:41.444Z") @Stability(Experimental) public interface S3Encryption extends software.amazon.jsii.JsiiSerializable
(experimental) S3 encryption configuration.

Example:

 SecurityConfiguration.Builder.create(this, "MySecurityConfiguration")
         .cloudWatchEncryption(CloudWatchEncryption.builder()
                 .mode(CloudWatchEncryptionMode.KMS)
                 .build())
         .jobBookmarksEncryption(JobBookmarksEncryption.builder()
                 .mode(JobBookmarksEncryptionMode.CLIENT_SIDE_KMS)
                 .build())
         .s3Encryption(S3Encryption.builder()
                 .mode(S3EncryptionMode.KMS)
                 .build())
         .build();
 
  • Method Details

    • getMode

      @Stability(Experimental) @NotNull S3EncryptionMode getMode()
      (experimental) Encryption mode.
    • getKmsKey

      @Stability(Experimental) @Nullable default IKey getKmsKey()
      (experimental) The KMS key to be used to encrypt the data.

      Default: no kms key if mode = S3_MANAGED. A key will be created if one is not provided and mode = KMS.

    • builder

      @Stability(Experimental) static S3Encryption.Builder builder()
      Returns:
      a S3Encryption.Builder of S3Encryption