Class: AWSCDK::EFS::RegionalFileSystemProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
efs/regional_file_system_props.rb

Overview

Properties for configuring ReplicationConfiguration to replicate to a new Regional file system.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(kms_key: nil, region: nil) ⇒ RegionalFileSystemProps

Returns a new instance of RegionalFileSystemProps.

Parameters:

  • kms_key (AWSCDK::KMS::IKey, nil) (defaults to: nil)

    AWS KMS key used to protect the encrypted file system.

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

    The AWS Region in which the destination file system is located.



9
10
11
12
13
14
# File 'efs/regional_file_system_props.rb', line 9

def initialize(kms_key: nil, region: nil)
  @kms_key = kms_key
  Jsii::Type.check_type(@kms_key, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfa21zLklLZXkifQ==")), "kmsKey") unless @kms_key.nil?
  @region = region
  Jsii::Type.check_type(@region, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "region") unless @region.nil?
end

Instance Attribute Details

#kms_keyAWSCDK::KMS::IKey? (readonly)

Note:

Default: - use service-managed KMS key for Amazon EFS

AWS KMS key used to protect the encrypted file system.

Returns:



20
21
22
# File 'efs/regional_file_system_props.rb', line 20

def kms_key
  @kms_key
end

#regionString? (readonly)

Note:

Default: - the region of the stack

The AWS Region in which the destination file system is located.

Returns:

  • (String, nil)


25
26
27
# File 'efs/regional_file_system_props.rb', line 25

def region
  @region
end

Class Method Details

.jsii_propertiesObject



27
28
29
30
31
32
# File 'efs/regional_file_system_props.rb', line 27

def self.jsii_properties
  {
    :kms_key => "kmsKey",
    :region => "region",
  }
end

Instance Method Details

#to_jsiiObject



34
35
36
37
38
39
40
41
# File 'efs/regional_file_system_props.rb', line 34

def to_jsii
  result = {}
  result.merge!({
    "kmsKey" => @kms_key,
    "region" => @region,
  })
  result.compact
end