Class: AWSCDK::Transfer::CfnUser::HomeDirectoryMapEntryProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Transfer::CfnUser::HomeDirectoryMapEntryProperty
- Defined in:
- transfer/cfn_user.rb
Overview
Represents an object that contains entries and targets for HomeDirectoryMappings .
Instance Attribute Summary collapse
-
#entry ⇒ String
readonly
Represents an entry for
HomeDirectoryMappings. -
#target ⇒ String
readonly
Represents the map target that is used in a
HomeDirectoryMapEntry. -
#type ⇒ String?
readonly
Specifies the type of mapping.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(entry:, target:, type: nil) ⇒ HomeDirectoryMapEntryProperty
constructor
A new instance of HomeDirectoryMapEntryProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(entry:, target:, type: nil) ⇒ HomeDirectoryMapEntryProperty
Returns a new instance of HomeDirectoryMapEntryProperty.
661 662 663 664 665 666 667 668 |
# File 'transfer/cfn_user.rb', line 661 def initialize(entry:, target:, type: nil) @entry = entry Jsii::Type.check_type(@entry, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "entry") @target = target Jsii::Type.check_type(@target, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "target") @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil? end |
Instance Attribute Details
#entry ⇒ String (readonly)
Represents an entry for HomeDirectoryMappings .
674 675 676 |
# File 'transfer/cfn_user.rb', line 674 def entry @entry end |
#target ⇒ String (readonly)
Represents the map target that is used in a HomeDirectoryMapEntry .
679 680 681 |
# File 'transfer/cfn_user.rb', line 679 def target @target end |
#type ⇒ String? (readonly)
Specifies the type of mapping.
Set the type to FILE if you want the mapping to point to a file, or DIRECTORY for the directory to point to a directory.
By default, home directory mappings have a
TypeofDIRECTORYwhen you create a Transfer Family server. You would need to explicitly setTypetoFILEif you want a mapping to have a file target.
688 689 690 |
# File 'transfer/cfn_user.rb', line 688 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
690 691 692 693 694 695 696 |
# File 'transfer/cfn_user.rb', line 690 def self.jsii_properties { :entry => "entry", :target => "target", :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
698 699 700 701 702 703 704 705 706 |
# File 'transfer/cfn_user.rb', line 698 def to_jsii result = {} result.merge!({ "entry" => @entry, "target" => @target, "type" => @type, }) result.compact end |