Class: AWSCDK::QuickSight::CfnFolder::ResourcePermissionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnFolder::ResourcePermissionProperty
- Defined in:
- quick_sight/cfn_folder.rb
Overview
Permission for the resource.
.Instance Attribute Summary collapse
-
#actions ⇒ Array<String>
readonly
The IAM action to grant or revoke permissions on.
. -
#principal ⇒ String
readonly
The Amazon Resource Name (ARN) of the principal.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(actions:, principal:) ⇒ ResourcePermissionProperty
constructor
A new instance of ResourcePermissionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(actions:, principal:) ⇒ ResourcePermissionProperty
Returns a new instance of ResourcePermissionProperty.
625 626 627 628 629 630 |
# File 'quick_sight/cfn_folder.rb', line 625 def initialize(actions:, principal:) @actions = actions Jsii::Type.check_type(@actions, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "actions") @principal = principal Jsii::Type.check_type(@principal, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "principal") end |
Instance Attribute Details
#actions ⇒ Array<String> (readonly)
The IAM action to grant or revoke permissions on.
.
636 637 638 |
# File 'quick_sight/cfn_folder.rb', line 636 def actions @actions end |
#principal ⇒ String (readonly)
The Amazon Resource Name (ARN) of the principal. This can be one of the following:
-
The ARN of an Amazon QuickSight user or group associated with a data source or dataset. (This is common.)
-
The ARN of an Amazon QuickSight user, group, or namespace associated with an analysis, dashboard, template, or theme. (This is common.)
-
The ARN of an Amazon Web Services account root: This is an IAM ARN rather than a QuickSight ARN. Use this option only to share resources (templates) across Amazon Web Services accounts. (This is less common.)
657 658 659 |
# File 'quick_sight/cfn_folder.rb', line 657 def principal @principal end |
Class Method Details
.jsii_properties ⇒ Object
659 660 661 662 663 664 |
# File 'quick_sight/cfn_folder.rb', line 659 def self.jsii_properties { :actions => "actions", :principal => "principal", } end |
Instance Method Details
#to_jsii ⇒ Object
666 667 668 669 670 671 672 673 |
# File 'quick_sight/cfn_folder.rb', line 666 def to_jsii result = {} result.merge!({ "actions" => @actions, "principal" => @principal, }) result.compact end |