Class: AWSCDK::QuickSight::CfnTemplate::ResourcePermissionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_template.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)


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

#actionsArray<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

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


22627
22628
22629
# File 'quick_sight/cfn_template.rb', line 22627

def principal
  @principal
end

#resourceString? (readonly)



22630
22631
22632
# File 'quick_sight/cfn_template.rb', line 22630

def resource
  @resource
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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