Class: AWSCDK::EFS::AccessPointAttributes

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
efs/access_point_attributes.rb

Overview

Attributes that can be specified when importing an AccessPoint.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(access_point_arn: nil, access_point_id: nil, file_system: nil) ⇒ AccessPointAttributes

Returns a new instance of AccessPointAttributes.

Parameters:

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

    The ARN of the AccessPoint One of this, or accessPointId is required.

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

    The ID of the AccessPoint One of this, or accessPointArn is required.

  • file_system (AWSCDK::Interfaces::AWSEFS::IFileSystemRef, nil) (defaults to: nil)

    The EFS file system.



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

def initialize(access_point_arn: nil, access_point_id: nil, file_system: nil)
  @access_point_arn = access_point_arn
  Jsii::Type.check_type(@access_point_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accessPointArn") unless @access_point_arn.nil?
  @access_point_id = access_point_id
  Jsii::Type.check_type(@access_point_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accessPointId") unless @access_point_id.nil?
  @file_system = file_system
  Jsii::Type.check_type(@file_system, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19lZnMuSUZpbGVTeXN0ZW1SZWYifQ==")), "fileSystem") unless @file_system.nil?
end

Instance Attribute Details

#access_point_arnString? (readonly)

Note:

Default: - determined based on accessPointId

The ARN of the AccessPoint One of this, or accessPointId is required.

Returns:

  • (String, nil)


23
24
25
# File 'efs/access_point_attributes.rb', line 23

def access_point_arn
  @access_point_arn
end

#access_point_idString? (readonly)

Note:

Default: - determined based on accessPointArn

The ID of the AccessPoint One of this, or accessPointArn is required.

Returns:

  • (String, nil)


28
29
30
# File 'efs/access_point_attributes.rb', line 28

def access_point_id
  @access_point_id
end

#file_systemAWSCDK::Interfaces::AWSEFS::IFileSystemRef? (readonly)

Note:

Default: - no EFS file system

The EFS file system.



33
34
35
# File 'efs/access_point_attributes.rb', line 33

def file_system
  @file_system
end

Class Method Details

.jsii_propertiesObject



35
36
37
38
39
40
41
# File 'efs/access_point_attributes.rb', line 35

def self.jsii_properties
  {
    :access_point_arn => "accessPointArn",
    :access_point_id => "accessPointId",
    :file_system => "fileSystem",
  }
end

Instance Method Details

#to_jsiiObject



43
44
45
46
47
48
49
50
51
# File 'efs/access_point_attributes.rb', line 43

def to_jsii
  result = {}
  result.merge!({
    "accessPointArn" => @access_point_arn,
    "accessPointId" => @access_point_id,
    "fileSystem" => @file_system,
  })
  result.compact
end