Class: AWSCDK::QuickSight::CfnDataSource::ResourcePermissionProperty

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


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

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

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


2101
2102
2103
# File 'quick_sight/cfn_data_source.rb', line 2101

def principal
  @principal
end

#resourceString? (readonly)



2104
2105
2106
# File 'quick_sight/cfn_data_source.rb', line 2104

def resource
  @resource
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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