Class: AWSCDK::QuickSight::CfnDashboard::ResourcePermissionProperty

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

Overview

Permission for the resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(actions:, principal:, resource: nil) ⇒ 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. This can be one of the following:.

  • resource (String, nil) (defaults to: nil)


25451
25452
25453
25454
25455
25456
25457
25458
# File 'quick_sight/cfn_dashboard.rb', line 25451

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

#actionsArray<String> (readonly)

The IAM action to grant or revoke permissions on.



25464
25465
25466
# File 'quick_sight/cfn_dashboard.rb', line 25464

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 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.)


25473
25474
25475
# File 'quick_sight/cfn_dashboard.rb', line 25473

def principal
  @principal
end

#resourceString? (readonly)



25476
25477
25478
# File 'quick_sight/cfn_dashboard.rb', line 25476

def resource
  @resource
end

Class Method Details

.jsii_propertiesObject



25478
25479
25480
25481
25482
25483
25484
# File 'quick_sight/cfn_dashboard.rb', line 25478

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

Instance Method Details

#to_jsiiObject



25486
25487
25488
25489
25490
25491
25492
25493
25494
# File 'quick_sight/cfn_dashboard.rb', line 25486

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