Class: AWSCDK::FSX::FileSystemAttributes

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

Overview

Properties that describe an existing FSx file system.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dns_name:, file_system_id:, security_group:) ⇒ FileSystemAttributes

Returns a new instance of FileSystemAttributes.

Parameters:

  • dns_name (String)

    The DNS name assigned to this file system.

  • file_system_id (String)

    The ID of the file system, assigned by Amazon FSx.

  • security_group (AWSCDK::EC2::ISecurityGroup)

    The security group of the file system.



10
11
12
13
14
15
16
17
# File 'fsx/file_system_attributes.rb', line 10

def initialize(dns_name:, file_system_id:, security_group:)
  @dns_name = dns_name
  Jsii::Type.check_type(@dns_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dnsName")
  @file_system_id = file_system_id
  Jsii::Type.check_type(@file_system_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fileSystemId")
  @security_group = security_group
  Jsii::Type.check_type(@security_group, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLklTZWN1cml0eUdyb3VwIn0=")), "securityGroup")
end

Instance Attribute Details

#dns_nameString (readonly)

The DNS name assigned to this file system.

Returns:

  • (String)


22
23
24
# File 'fsx/file_system_attributes.rb', line 22

def dns_name
  @dns_name
end

#file_system_idString (readonly)

The ID of the file system, assigned by Amazon FSx.

Returns:

  • (String)


26
27
28
# File 'fsx/file_system_attributes.rb', line 26

def file_system_id
  @file_system_id
end

#security_groupAWSCDK::EC2::ISecurityGroup (readonly)

The security group of the file system.



30
31
32
# File 'fsx/file_system_attributes.rb', line 30

def security_group
  @security_group
end

Class Method Details

.jsii_propertiesObject



32
33
34
35
36
37
38
# File 'fsx/file_system_attributes.rb', line 32

def self.jsii_properties
  {
    :dns_name => "dnsName",
    :file_system_id => "fileSystemId",
    :security_group => "securityGroup",
  }
end

Instance Method Details

#to_jsiiObject



40
41
42
43
44
45
46
47
48
# File 'fsx/file_system_attributes.rb', line 40

def to_jsii
  result = {}
  result.merge!({
    "dnsName" => @dns_name,
    "fileSystemId" => @file_system_id,
    "securityGroup" => @security_group,
  })
  result.compact
end