Class: AWSCDK::Transfer::CfnUser::HomeDirectoryMapEntryProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
transfer/cfn_user.rb

Overview

Represents an object that contains entries and targets for HomeDirectoryMappings .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entry:, target:, type: nil) ⇒ HomeDirectoryMapEntryProperty

Returns a new instance of HomeDirectoryMapEntryProperty.

Parameters:

  • entry (String)

    Represents an entry for HomeDirectoryMappings .

  • target (String)

    Represents the map target that is used in a HomeDirectoryMapEntry .

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

    Specifies the type of mapping.



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

#entryString (readonly)

Represents an entry for HomeDirectoryMappings .



674
675
676
# File 'transfer/cfn_user.rb', line 674

def entry
  @entry
end

#targetString (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

#typeString? (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 Type of DIRECTORY when you create a Transfer Family server. You would need to explicitly set Type to FILE if 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_propertiesObject



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_jsiiObject



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