Class: AWSCDK::QuickSight::CfnDataSet::ResourcePermissionProperty

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

  • principal (String)

    The Amazon Resource Name (ARN) of the principal. This can be one of the following:.



4932
4933
4934
4935
4936
4937
# File 'quick_sight/cfn_data_set.rb', line 4932

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 permisions on.



4943
4944
4945
# File 'quick_sight/cfn_data_set.rb', line 4943

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


4952
4953
4954
# File 'quick_sight/cfn_data_set.rb', line 4952

def principal
  @principal
end

Class Method Details

.jsii_propertiesObject



4954
4955
4956
4957
4958
4959
# File 'quick_sight/cfn_data_set.rb', line 4954

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

Instance Method Details

#to_jsiiObject



4961
4962
4963
4964
4965
4966
4967
4968
# File 'quick_sight/cfn_data_set.rb', line 4961

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