Class: AWSCDK::Datasync::CfnLocationFSXLustreProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Datasync::CfnLocationFSXLustreProps
- Defined in:
- datasync/cfn_location_fsx_lustre_props.rb
Overview
Properties for defining a CfnLocationFSxLustre.
Instance Attribute Summary collapse
-
#fsx_filesystem_arn ⇒ String?
readonly
Specifies the Amazon Resource Name (ARN) of the FSx for Lustre file system.
-
#security_group_arns ⇒ Array<String>
readonly
The ARNs of the security groups that are used to configure the FSx for Lustre file system.
-
#subdirectory ⇒ String?
readonly
Specifies a mount path for your FSx for Lustre file system.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
Specifies labels that help you categorize, filter, and search for your AWS resources.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(security_group_arns:, fsx_filesystem_arn: nil, subdirectory: nil, tags: nil) ⇒ CfnLocationFSXLustreProps
constructor
A new instance of CfnLocationFSXLustreProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(security_group_arns:, fsx_filesystem_arn: nil, subdirectory: nil, tags: nil) ⇒ CfnLocationFSXLustreProps
Returns a new instance of CfnLocationFSXLustreProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'datasync/cfn_location_fsx_lustre_props.rb', line 13 def initialize(security_group_arns:, fsx_filesystem_arn: nil, subdirectory: nil, tags: nil) @security_group_arns = security_group_arns Jsii::Type.check_type(@security_group_arns, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "securityGroupArns") @fsx_filesystem_arn = fsx_filesystem_arn Jsii::Type.check_type(@fsx_filesystem_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fsxFilesystemArn") unless @fsx_filesystem_arn.nil? @subdirectory = subdirectory Jsii::Type.check_type(@subdirectory, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "subdirectory") unless @subdirectory.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#fsx_filesystem_arn ⇒ String? (readonly)
Specifies the Amazon Resource Name (ARN) of the FSx for Lustre file system.
37 38 39 |
# File 'datasync/cfn_location_fsx_lustre_props.rb', line 37 def fsx_filesystem_arn @fsx_filesystem_arn end |
#security_group_arns ⇒ Array<String> (readonly)
The ARNs of the security groups that are used to configure the FSx for Lustre file system.
Pattern : ^arn:(aws|aws-cn|aws-us-gov|aws-iso|aws-iso-b):ec2:[a-z\-0-9]*:[0-9]{12}:security-group/.*$
Length constraints : Maximum length of 128.
32 33 34 |
# File 'datasync/cfn_location_fsx_lustre_props.rb', line 32 def security_group_arns @security_group_arns end |
#subdirectory ⇒ String? (readonly)
Specifies a mount path for your FSx for Lustre file system. The path can include subdirectories.
When the location is used as a source, DataSync reads data from the mount path. When the location is used as a destination, DataSync writes data to the mount path. If you don't include this parameter, DataSync uses the file system's root directory ( / ).
44 45 46 |
# File 'datasync/cfn_location_fsx_lustre_props.rb', line 44 def subdirectory @subdirectory end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
Specifies labels that help you categorize, filter, and search for your AWS resources.
We recommend creating at least a name tag for your location.
51 52 53 |
# File 'datasync/cfn_location_fsx_lustre_props.rb', line 51 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
53 54 55 56 57 58 59 60 |
# File 'datasync/cfn_location_fsx_lustre_props.rb', line 53 def self.jsii_properties { :security_group_arns => "securityGroupArns", :fsx_filesystem_arn => "fsxFilesystemArn", :subdirectory => "subdirectory", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
62 63 64 65 66 67 68 69 70 71 |
# File 'datasync/cfn_location_fsx_lustre_props.rb', line 62 def to_jsii result = {} result.merge!({ "securityGroupArns" => @security_group_arns, "fsxFilesystemArn" => @fsx_filesystem_arn, "subdirectory" => @subdirectory, "tags" => @tags, }) result.compact end |