Class: AWSCDK::EFS::RegionalFileSystemProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EFS::RegionalFileSystemProps
- 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
-
#kms_key ⇒ AWSCDK::KMS::IKey?
readonly
AWS KMS key used to protect the encrypted file system.
-
#region ⇒ String?
readonly
The AWS Region in which the destination file system is located.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(kms_key: nil, region: nil) ⇒ RegionalFileSystemProps
constructor
A new instance of RegionalFileSystemProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(kms_key: nil, region: nil) ⇒ RegionalFileSystemProps
Returns a new instance of RegionalFileSystemProps.
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_key ⇒ AWSCDK::KMS::IKey? (readonly)
Note:
Default: - use service-managed KMS key for Amazon EFS
AWS KMS key used to protect the encrypted file system.
20 21 22 |
# File 'efs/regional_file_system_props.rb', line 20 def kms_key @kms_key end |
#region ⇒ String? (readonly)
Note:
Default: - the region of the stack
The AWS Region in which the destination file system is located.
25 26 27 |
# File 'efs/regional_file_system_props.rb', line 25 def region @region end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |