Class: AWSCDK::AppStream::CfnAppBlock::S3LocationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_stream/cfn_app_block.rb

Overview

The S3 location of the app block.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(s3_bucket:, s3_key: nil) ⇒ S3LocationProperty

Returns a new instance of S3LocationProperty.

Parameters:

  • s3_bucket (String)

    The S3 bucket of the app block.

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

    The S3 key of the S3 object of the virtual hard disk.



622
623
624
625
626
627
# File 'app_stream/cfn_app_block.rb', line 622

def initialize(s3_bucket:, s3_key: nil)
  @s3_bucket = s3_bucket
  Jsii::Type.check_type(@s3_bucket, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3Bucket")
  @s3_key = s3_key
  Jsii::Type.check_type(@s3_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3Key") unless @s3_key.nil?
end

Instance Attribute Details

#s3_bucketString (readonly)

The S3 bucket of the app block.



633
634
635
# File 'app_stream/cfn_app_block.rb', line 633

def s3_bucket
  @s3_bucket
end

#s3_keyString? (readonly)

The S3 key of the S3 object of the virtual hard disk.

This is required when it's used by SetupScriptDetails and PostSetupScriptDetails .



640
641
642
# File 'app_stream/cfn_app_block.rb', line 640

def s3_key
  @s3_key
end

Class Method Details

.jsii_propertiesObject



642
643
644
645
646
647
# File 'app_stream/cfn_app_block.rb', line 642

def self.jsii_properties
  {
    :s3_bucket => "s3Bucket",
    :s3_key => "s3Key",
  }
end

Instance Method Details

#to_jsiiObject



649
650
651
652
653
654
655
656
# File 'app_stream/cfn_app_block.rb', line 649

def to_jsii
  result = {}
  result.merge!({
    "s3Bucket" => @s3_bucket,
    "s3Key" => @s3_key,
  })
  result.compact
end