Interface EncryptionConfiguration.Builder

  • Method Details

    • replicaKmsKeyID

      EncryptionConfiguration.Builder replicaKmsKeyID(String replicaKmsKeyID)

      Specifies the ID (Key ARN or Alias ARN) of the customer managed Amazon Web Services KMS key stored in Amazon Web Services Key Management Service (KMS) for the destination bucket. Amazon S3 uses this key to encrypt replica objects. Amazon S3 only supports symmetric encryption KMS keys. For more information, see Asymmetric keys in Amazon Web Services KMS in the Amazon Web Services Key Management Service Developer Guide.

      Parameters:
      replicaKmsKeyID - Specifies the ID (Key ARN or Alias ARN) of the customer managed Amazon Web Services KMS key stored in Amazon Web Services Key Management Service (KMS) for the destination bucket. Amazon S3 uses this key to encrypt replica objects. Amazon S3 only supports symmetric encryption KMS keys. For more information, see Asymmetric keys in Amazon Web Services KMS in the Amazon Web Services Key Management Service Developer Guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • useSourceMultiRegionKey

      EncryptionConfiguration.Builder useSourceMultiRegionKey(UseSourceMultiRegionKey useSourceMultiRegionKey)

      Specifies whether Amazon S3 uses the related multi-Region KMS key in the destination Amazon Web Services Region to encrypt the replica.

      Parameters:
      useSourceMultiRegionKey - Specifies whether Amazon S3 uses the related multi-Region KMS key in the destination Amazon Web Services Region to encrypt the replica.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • useSourceMultiRegionKey

      default EncryptionConfiguration.Builder useSourceMultiRegionKey(Consumer<UseSourceMultiRegionKey.Builder> useSourceMultiRegionKey)

      Specifies whether Amazon S3 uses the related multi-Region KMS key in the destination Amazon Web Services Region to encrypt the replica.

      This is a convenience method that creates an instance of the UseSourceMultiRegionKey.Builder avoiding the need to create one manually via UseSourceMultiRegionKey.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to useSourceMultiRegionKey(UseSourceMultiRegionKey).

      Parameters:
      useSourceMultiRegionKey - a consumer that will call methods on UseSourceMultiRegionKey.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: