Class: AWSCDK::FSX::CfnS3AccessPointAttachmentProps

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

Overview

Properties for defining a CfnS3AccessPointAttachment.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, type:, ontap_configuration: nil, open_zfs_configuration: nil, s3_access_point: nil) ⇒ CfnS3AccessPointAttachmentProps

Returns a new instance of CfnS3AccessPointAttachmentProps.

Parameters:



14
15
16
17
18
19
20
21
22
23
24
25
# File 'fsx/cfn_s3_access_point_attachment_props.rb', line 14

def initialize(name:, type:, ontap_configuration: nil, open_zfs_configuration: nil, s3_access_point: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
  @ontap_configuration = ontap_configuration.is_a?(Hash) ? ::AWSCDK::FSX::CfnS3AccessPointAttachment::S3AccessPointOntapConfigurationProperty.new(**ontap_configuration.transform_keys(&:to_sym)) : ontap_configuration
  Jsii::Type.check_type(@ontap_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19mc3guQ2ZuUzNBY2Nlc3NQb2ludEF0dGFjaG1lbnQuUzNBY2Nlc3NQb2ludE9udGFwQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "ontapConfiguration") unless @ontap_configuration.nil?
  @open_zfs_configuration = open_zfs_configuration.is_a?(Hash) ? ::AWSCDK::FSX::CfnS3AccessPointAttachment::S3AccessPointOpenZFSConfigurationProperty.new(**open_zfs_configuration.transform_keys(&:to_sym)) : open_zfs_configuration
  Jsii::Type.check_type(@open_zfs_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19mc3guQ2ZuUzNBY2Nlc3NQb2ludEF0dGFjaG1lbnQuUzNBY2Nlc3NQb2ludE9wZW5aRlNDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "openZfsConfiguration") unless @open_zfs_configuration.nil?
  @s3_access_point = s3_access_point.is_a?(Hash) ? ::AWSCDK::FSX::CfnS3AccessPointAttachment::S3AccessPointProperty.new(**s3_access_point.transform_keys(&:to_sym)) : s3_access_point
  Jsii::Type.check_type(@s3_access_point, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19mc3guQ2ZuUzNBY2Nlc3NQb2ludEF0dGFjaG1lbnQuUzNBY2Nlc3NQb2ludFByb3BlcnR5In1dfX0=")), "s3AccessPoint") unless @s3_access_point.nil?
end

Instance Attribute Details

#nameString (readonly)

The name of the S3 access point attachment;

also used for the name of the S3 access point.



33
34
35
# File 'fsx/cfn_s3_access_point_attachment_props.rb', line 33

def name
  @name
end

#ontap_configurationAWSCDK::IResolvable, ... (readonly)

The ONTAP configuration of the S3 access point attachment.



43
44
45
# File 'fsx/cfn_s3_access_point_attachment_props.rb', line 43

def ontap_configuration
  @ontap_configuration
end

#open_zfs_configurationAWSCDK::IResolvable, ... (readonly)

The OpenZFSConfiguration of the S3 access point attachment.



48
49
50
# File 'fsx/cfn_s3_access_point_attachment_props.rb', line 48

def open_zfs_configuration
  @open_zfs_configuration
end

#s3_access_pointAWSCDK::IResolvable, ... (readonly)

The S3 access point configuration of the S3 access point attachment.



53
54
55
# File 'fsx/cfn_s3_access_point_attachment_props.rb', line 53

def s3_access_point
  @s3_access_point
end

#typeString (readonly)

The type of Amazon FSx volume that the S3 access point is attached to.



38
39
40
# File 'fsx/cfn_s3_access_point_attachment_props.rb', line 38

def type
  @type
end

Class Method Details

.jsii_propertiesObject



55
56
57
58
59
60
61
62
63
# File 'fsx/cfn_s3_access_point_attachment_props.rb', line 55

def self.jsii_properties
  {
    :name => "name",
    :type => "type",
    :ontap_configuration => "ontapConfiguration",
    :open_zfs_configuration => "openZfsConfiguration",
    :s3_access_point => "s3AccessPoint",
  }
end

Instance Method Details

#to_jsiiObject



65
66
67
68
69
70
71
72
73
74
75
# File 'fsx/cfn_s3_access_point_attachment_props.rb', line 65

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "type" => @type,
    "ontapConfiguration" => @ontap_configuration,
    "openZfsConfiguration" => @open_zfs_configuration,
    "s3AccessPoint" => @s3_access_point,
  })
  result.compact
end