Class: AWSCDK::FSX::CfnS3AccessPointAttachment::OntapFileSystemIdentityProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::FSX::CfnS3AccessPointAttachment::OntapFileSystemIdentityProperty
- Defined in:
- fsx/cfn_s3_access_point_attachment.rb
Overview
Specifies the file system user identity that will be used for authorizing all file access requests that are made using the S3 access point.
The identity can be either a UNIX user or a Windows user.
Instance Attribute Summary collapse
-
#type ⇒ String
readonly
Specifies the FSx for ONTAP user identity type.
-
#unix_user ⇒ AWSCDK::IResolvable, ...
readonly
Specifies the UNIX user identity for file system operations.
-
#windows_user ⇒ AWSCDK::IResolvable, ...
readonly
Specifies the Windows user identity for file system operations.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, unix_user: nil, windows_user: nil) ⇒ OntapFileSystemIdentityProperty
constructor
A new instance of OntapFileSystemIdentityProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:, unix_user: nil, windows_user: nil) ⇒ OntapFileSystemIdentityProperty
Returns a new instance of OntapFileSystemIdentityProperty.
608 609 610 611 612 613 614 615 |
# File 'fsx/cfn_s3_access_point_attachment.rb', line 608 def initialize(type:, unix_user: nil, windows_user: nil) @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") @unix_user = unix_user.is_a?(Hash) ? ::AWSCDK::FSX::CfnS3AccessPointAttachment::OntapUnixFileSystemUserProperty.new(**unix_user.transform_keys(&:to_sym)) : unix_user Jsii::Type.check_type(@unix_user, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19mc3guQ2ZuUzNBY2Nlc3NQb2ludEF0dGFjaG1lbnQuT250YXBVbml4RmlsZVN5c3RlbVVzZXJQcm9wZXJ0eSJ9XX19")), "unixUser") unless @unix_user.nil? @windows_user = windows_user.is_a?(Hash) ? ::AWSCDK::FSX::CfnS3AccessPointAttachment::OntapWindowsFileSystemUserProperty.new(**windows_user.transform_keys(&:to_sym)) : windows_user Jsii::Type.check_type(@windows_user, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19mc3guQ2ZuUzNBY2Nlc3NQb2ludEF0dGFjaG1lbnQuT250YXBXaW5kb3dzRmlsZVN5c3RlbVVzZXJQcm9wZXJ0eSJ9XX19")), "windowsUser") unless @windows_user.nil? end |
Instance Attribute Details
#type ⇒ String (readonly)
Specifies the FSx for ONTAP user identity type.
Valid values are UNIX and WINDOWS .
623 624 625 |
# File 'fsx/cfn_s3_access_point_attachment.rb', line 623 def type @type end |
#unix_user ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies the UNIX user identity for file system operations.
628 629 630 |
# File 'fsx/cfn_s3_access_point_attachment.rb', line 628 def unix_user @unix_user end |
#windows_user ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies the Windows user identity for file system operations.
633 634 635 |
# File 'fsx/cfn_s3_access_point_attachment.rb', line 633 def windows_user @windows_user end |
Class Method Details
.jsii_properties ⇒ Object
635 636 637 638 639 640 641 |
# File 'fsx/cfn_s3_access_point_attachment.rb', line 635 def self.jsii_properties { :type => "type", :unix_user => "unixUser", :windows_user => "windowsUser", } end |
Instance Method Details
#to_jsii ⇒ Object
643 644 645 646 647 648 649 650 651 |
# File 'fsx/cfn_s3_access_point_attachment.rb', line 643 def to_jsii result = {} result.merge!({ "type" => @type, "unixUser" => @unix_user, "windowsUser" => @windows_user, }) result.compact end |