Class: AWSCDK::IoT::CfnSoftwarePackageVersion::S3LocationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t/cfn_software_package_version.rb

Overview

The Amazon S3 location.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket:, key:, version:) ⇒ S3LocationProperty

Returns a new instance of S3LocationProperty.

Parameters:

  • bucket (String)

    The S3 bucket.

  • key (String)

    The S3 key.

  • version (String)

    The S3 version.



670
671
672
673
674
675
676
677
# File 'io_t/cfn_software_package_version.rb', line 670

def initialize(bucket:, key:, version:)
  @bucket = bucket
  Jsii::Type.check_type(@bucket, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucket")
  @key = key
  Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key")
  @version = version
  Jsii::Type.check_type(@version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "version")
end

Instance Attribute Details

#bucketString (readonly)

The S3 bucket.



683
684
685
# File 'io_t/cfn_software_package_version.rb', line 683

def bucket
  @bucket
end

#keyString (readonly)

The S3 key.



688
689
690
# File 'io_t/cfn_software_package_version.rb', line 688

def key
  @key
end

#versionString (readonly)

The S3 version.



693
694
695
# File 'io_t/cfn_software_package_version.rb', line 693

def version
  @version
end

Class Method Details

.jsii_propertiesObject



695
696
697
698
699
700
701
# File 'io_t/cfn_software_package_version.rb', line 695

def self.jsii_properties
  {
    :bucket => "bucket",
    :key => "key",
    :version => "version",
  }
end

Instance Method Details

#to_jsiiObject



703
704
705
706
707
708
709
710
711
# File 'io_t/cfn_software_package_version.rb', line 703

def to_jsii
  result = {}
  result.merge!({
    "bucket" => @bucket,
    "key" => @key,
    "version" => @version,
  })
  result.compact
end