Class: AWSCDK::AppStream::CfnAppBlock::S3LocationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppStream::CfnAppBlock::S3LocationProperty
- Defined in:
- app_stream/cfn_app_block.rb
Overview
The S3 location of the app block.
Instance Attribute Summary collapse
-
#s3_bucket ⇒ String
readonly
The S3 bucket of the app block.
-
#s3_key ⇒ String?
readonly
The S3 key of the S3 object of the virtual hard disk.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(s3_bucket:, s3_key: nil) ⇒ S3LocationProperty
constructor
A new instance of S3LocationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(s3_bucket:, s3_key: nil) ⇒ S3LocationProperty
Returns a new instance of S3LocationProperty.
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_bucket ⇒ String (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_key ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |