Class: AWSCDK::QuickSight::CfnTheme::ResourcePermissionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTheme::ResourcePermissionProperty
- Defined in:
- quick_sight/cfn_theme.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.
904 905 906 907 908 909 910 911 |
# File 'quick_sight/cfn_theme.rb', line 904 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.
917 918 919 |
# File 'quick_sight/cfn_theme.rb', line 917 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.)
926 927 928 |
# File 'quick_sight/cfn_theme.rb', line 926 def principal @principal end |
#resource ⇒ String? (readonly)
929 930 931 |
# File 'quick_sight/cfn_theme.rb', line 929 def resource @resource end |
Class Method Details
.jsii_properties ⇒ Object
931 932 933 934 935 936 937 |
# File 'quick_sight/cfn_theme.rb', line 931 def self.jsii_properties { :actions => "actions", :principal => "principal", :resource => "resource", } end |
Instance Method Details
#to_jsii ⇒ Object
939 940 941 942 943 944 945 946 947 |
# File 'quick_sight/cfn_theme.rb', line 939 def to_jsii result = {} result.merge!({ "actions" => @actions, "principal" => @principal, "resource" => @resource, }) result.compact end |