Class: AWSCDK::FSX::CfnFileSystem::ClientConfigurationsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
fsx/cfn_file_system.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: nil, options: nil) ⇒ ClientConfigurationsProperty

Returns a new instance of ClientConfigurationsProperty.

Parameters:

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

    A value that specifies who can mount the file system.

  • options (Array<String>, nil) (defaults to: nil)

    The options to use when mounting the file system.



800
801
802
803
804
805
# File 'fsx/cfn_file_system.rb', line 800

def initialize(clients: nil, options: nil)
  @clients = clients
  Jsii::Type.check_type(@clients, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clients") unless @clients.nil?
  @options = options
  Jsii::Type.check_type(@options, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "options") unless @options.nil?
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.



813
814
815
# File 'fsx/cfn_file_system.rb', line 813

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.


823
824
825
# File 'fsx/cfn_file_system.rb', line 823

def options
  @options
end

Class Method Details

.jsii_propertiesObject



825
826
827
828
829
830
# File 'fsx/cfn_file_system.rb', line 825

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

Instance Method Details

#to_jsiiObject



832
833
834
835
836
837
838
839
# File 'fsx/cfn_file_system.rb', line 832

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