Class: AWSCDK::FSX::CfnVolume::ClientConfigurationsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
fsx/cfn_volume.rb

Overview

Specifies who can mount an OpenZFS file system and the options available while mounting the file system.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(clients:, options:) ⇒ ClientConfigurationsProperty

Returns a new instance of ClientConfigurationsProperty.

Parameters:

  • clients (String)

    A value that specifies who can mount the file system.

  • options (Array<String>)

    The options to use when mounting the file system.



708
709
710
711
712
713
# File 'fsx/cfn_volume.rb', line 708

def initialize(clients:, options:)
  @clients = clients
  Jsii::Type.check_type(@clients, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clients")
  @options = options
  Jsii::Type.check_type(@options, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "options")
end

Instance Attribute Details

#clientsString (readonly)

A value that specifies who can mount the file system.

You can provide a wildcard character ( * ), an IP address ( 0.0.0.0 ), or a CIDR address ( 192.0.2.0/24 ). By default, Amazon FSx uses the wildcard character when specifying the client.



721
722
723
# File 'fsx/cfn_volume.rb', line 721

def clients
  @clients
end

#optionsArray<String> (readonly)

The options to use when mounting the file system.

For a list of options that you can use with Network File System (NFS), see the exports(5) - Linux man page . When choosing your options, consider the following:

  • crossmnt is used by default. If you don't specify crossmnt when changing the client configuration, you won't be able to see or access snapshots in your file system's snapshot directory.
  • sync is used by default. If you instead specify async , the system acknowledges writes before writing to disk. If the system crashes before the writes are finished, you lose the unwritten data.


731
732
733
# File 'fsx/cfn_volume.rb', line 731

def options
  @options
end

Class Method Details

.jsii_propertiesObject



733
734
735
736
737
738
# File 'fsx/cfn_volume.rb', line 733

def self.jsii_properties
  {
    :clients => "clients",
    :options => "options",
  }
end

Instance Method Details

#to_jsiiObject



740
741
742
743
744
745
746
747
# File 'fsx/cfn_volume.rb', line 740

def to_jsii
  result = {}
  result.merge!({
    "clients" => @clients,
    "options" => @options,
  })
  result.compact
end