Class: AWSCDK::QuickSight::CfnDashboard::StaticFileS3SourceOptionsProperty

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

Overview

The structure that contains the Amazon S3 location to download the static file from.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket_name:, object_key:, region:) ⇒ StaticFileS3SourceOptionsProperty

Returns a new instance of StaticFileS3SourceOptionsProperty.

Parameters:

  • bucket_name (String)

    The name of the Amazon S3 bucket.

  • object_key (String)

    The identifier of the static file in the Amazon S3 bucket.

  • region (String)

    The Region of the Amazon S3 account that contains the bucket.



28198
28199
28200
28201
28202
28203
28204
28205
# File 'quick_sight/cfn_dashboard.rb', line 28198

def initialize(bucket_name:, object_key:, region:)
  @bucket_name = bucket_name
  Jsii::Type.check_type(@bucket_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucketName")
  @object_key = object_key
  Jsii::Type.check_type(@object_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "objectKey")
  @region = region
  Jsii::Type.check_type(@region, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "region")
end

Instance Attribute Details

#bucket_nameString (readonly)

The name of the Amazon S3 bucket.



28211
28212
28213
# File 'quick_sight/cfn_dashboard.rb', line 28211

def bucket_name
  @bucket_name
end

#object_keyString (readonly)

The identifier of the static file in the Amazon S3 bucket.



28216
28217
28218
# File 'quick_sight/cfn_dashboard.rb', line 28216

def object_key
  @object_key
end

#regionString (readonly)

The Region of the Amazon S3 account that contains the bucket.



28221
28222
28223
# File 'quick_sight/cfn_dashboard.rb', line 28221

def region
  @region
end

Class Method Details

.jsii_propertiesObject



28223
28224
28225
28226
28227
28228
28229
# File 'quick_sight/cfn_dashboard.rb', line 28223

def self.jsii_properties
  {
    :bucket_name => "bucketName",
    :object_key => "objectKey",
    :region => "region",
  }
end

Instance Method Details

#to_jsiiObject



28231
28232
28233
28234
28235
28236
28237
28238
28239
# File 'quick_sight/cfn_dashboard.rb', line 28231

def to_jsii
  result = {}
  result.merge!({
    "bucketName" => @bucket_name,
    "objectKey" => @object_key,
    "region" => @region,
  })
  result.compact
end