Class: AWSCDK::QuickSight::CfnDataSource::ResourcePermissionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDataSource::ResourcePermissionProperty
- Defined in:
- quick_sight/cfn_data_source.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.
2079 2080 2081 2082 2083 2084 2085 2086 |
# File 'quick_sight/cfn_data_source.rb', line 2079 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.
2092 2093 2094 |
# File 'quick_sight/cfn_data_source.rb', line 2092 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.)
2101 2102 2103 |
# File 'quick_sight/cfn_data_source.rb', line 2101 def principal @principal end |
#resource ⇒ String? (readonly)
2104 2105 2106 |
# File 'quick_sight/cfn_data_source.rb', line 2104 def resource @resource end |
Class Method Details
.jsii_properties ⇒ Object
2106 2107 2108 2109 2110 2111 2112 |
# File 'quick_sight/cfn_data_source.rb', line 2106 def self.jsii_properties { :actions => "actions", :principal => "principal", :resource => "resource", } end |
Instance Method Details
#to_jsii ⇒ Object
2114 2115 2116 2117 2118 2119 2120 2121 2122 |
# File 'quick_sight/cfn_data_source.rb', line 2114 def to_jsii result = {} result.merge!({ "actions" => @actions, "principal" => @principal, "resource" => @resource, }) result.compact end |