Class: AWSCDK::OpenSearchServerless::CfnCollection::EncryptionConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
open_search_serverless/cfn_collection.rb

Overview

Encryption settings for the collection.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(aws_owned_key: nil, kms_key_arn: nil) ⇒ EncryptionConfigProperty

Returns a new instance of EncryptionConfigProperty.

Parameters:

  • aws_owned_key (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Indicates whether to use an AWS owned key for encryption.

  • kms_key_arn (String, nil) (defaults to: nil)

    Key Management Service key used to encrypt the collection.



700
701
702
703
704
705
# File 'open_search_serverless/cfn_collection.rb', line 700

def initialize(aws_owned_key: nil, kms_key_arn: nil)
  @aws_owned_key = aws_owned_key
  Jsii::Type.check_type(@aws_owned_key, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "awsOwnedKey") unless @aws_owned_key.nil?
  @kms_key_arn = kms_key_arn
  Jsii::Type.check_type(@kms_key_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kmsKeyArn") unless @kms_key_arn.nil?
end

Instance Attribute Details

#aws_owned_keyBoolean, ... (readonly)

Indicates whether to use an AWS owned key for encryption.



711
712
713
# File 'open_search_serverless/cfn_collection.rb', line 711

def aws_owned_key
  @aws_owned_key
end

#kms_key_arnString? (readonly)

Key Management Service key used to encrypt the collection.



716
717
718
# File 'open_search_serverless/cfn_collection.rb', line 716

def kms_key_arn
  @kms_key_arn
end

Class Method Details

.jsii_propertiesObject



718
719
720
721
722
723
# File 'open_search_serverless/cfn_collection.rb', line 718

def self.jsii_properties
  {
    :aws_owned_key => "awsOwnedKey",
    :kms_key_arn => "kmsKeyArn",
  }
end

Instance Method Details

#to_jsiiObject



725
726
727
728
729
730
731
732
# File 'open_search_serverless/cfn_collection.rb', line 725

def to_jsii
  result = {}
  result.merge!({
    "awsOwnedKey" => @aws_owned_key,
    "kmsKeyArn" => @kms_key_arn,
  })
  result.compact
end