Class: AWSCDK::QuickSight::CfnActionConnector::ResourcePermissionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_action_connector.rb

Overview

Permission for the resource.

.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(actions:, principal:) ⇒ ResourcePermissionProperty

Returns a new instance of ResourcePermissionProperty.

Parameters:

  • actions (Array<String>)

    The IAM action to grant or revoke permissions on.

    .

  • principal (String)

    The Amazon Resource Name (ARN) of the principal.



1135
1136
1137
1138
1139
1140
# File 'quick_sight/cfn_action_connector.rb', line 1135

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

#actionsArray<String> (readonly)

The IAM action to grant or revoke permissions on.

.



1146
1147
1148
# File 'quick_sight/cfn_action_connector.rb', line 1146

def actions
  @actions
end

#principalString (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.)



1167
1168
1169
# File 'quick_sight/cfn_action_connector.rb', line 1167

def principal
  @principal
end

Class Method Details

.jsii_propertiesObject



1169
1170
1171
1172
1173
1174
# File 'quick_sight/cfn_action_connector.rb', line 1169

def self.jsii_properties
  {
    :actions => "actions",
    :principal => "principal",
  }
end

Instance Method Details

#to_jsiiObject



1176
1177
1178
1179
1180
1181
1182
1183
# File 'quick_sight/cfn_action_connector.rb', line 1176

def to_jsii
  result = {}
  result.merge!({
    "actions" => @actions,
    "principal" => @principal,
  })
  result.compact
end