Class: AWSCDK::QuickSight::CfnTemplate::ResourcePermissionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::ResourcePermissionProperty
- Defined in:
- quick_sight/cfn_template.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.
- #resource ⇒ String? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(actions:, principal:, resource: nil) ⇒ ResourcePermissionProperty
constructor
A new instance of ResourcePermissionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(actions:, principal:, resource: nil) ⇒ ResourcePermissionProperty
Returns a new instance of ResourcePermissionProperty.
22605 22606 22607 22608 22609 22610 22611 22612 |
# File 'quick_sight/cfn_template.rb', line 22605 def initialize(actions:, principal:, resource: nil) @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") @resource = resource Jsii::Type.check_type(@resource, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resource") unless @resource.nil? end |
Instance Attribute Details
#actions ⇒ Array<String> (readonly)
The IAM action to grant or revoke permissions on.
22618 22619 22620 |
# File 'quick_sight/cfn_template.rb', line 22618 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 Quick user or group associated with a data source or dataset. (This is common.)
- The ARN of an Amazon Quick user, group, or namespace associated with an analysis, dashboard, template, or theme. (This is common.)
- The ARN of an AWS account root: This is an IAM ARN rather than a Quick ARN. Use this option only to share resources (templates) across AWS accounts . (This is less common.)
22627 22628 22629 |
# File 'quick_sight/cfn_template.rb', line 22627 def principal @principal end |
#resource ⇒ String? (readonly)
22630 22631 22632 |
# File 'quick_sight/cfn_template.rb', line 22630 def resource @resource end |
Class Method Details
.jsii_properties ⇒ Object
22632 22633 22634 22635 22636 22637 22638 |
# File 'quick_sight/cfn_template.rb', line 22632 def self.jsii_properties { :actions => "actions", :principal => "principal", :resource => "resource", } end |
Instance Method Details
#to_jsii ⇒ Object
22640 22641 22642 22643 22644 22645 22646 22647 22648 |
# File 'quick_sight/cfn_template.rb', line 22640 def to_jsii result = {} result.merge!({ "actions" => @actions, "principal" => @principal, "resource" => @resource, }) result.compact end |