Class: AWSCDK::CodeDeploy::CfnDeploymentGroup::S3LocationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
code_deploy/cfn_deployment_group.rb

Overview

S3Location is a property of the CodeDeploy DeploymentGroup Revision property that specifies the location of an application revision that is stored in Amazon Simple Storage Service ( Amazon S3 ).

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket:, key:, bundle_type: nil, e_tag: nil, version: nil) ⇒ S3LocationProperty

Returns a new instance of S3LocationProperty.

Parameters:

  • bucket (String)

    The name of the Amazon S3 bucket where the application revision is stored.

  • key (String)

    The name of the Amazon S3 object that represents the bundled artifacts for the application revision.

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

    The file type of the application revision. Must be one of the following:.

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

    The ETag of the Amazon S3 object that represents the bundled artifacts for the application revision.

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

    A specific version of the Amazon S3 object that represents the bundled artifacts for the application revision.



1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
# File 'code_deploy/cfn_deployment_group.rb', line 1687

def initialize(bucket:, key:, bundle_type: nil, e_tag: nil, version: nil)
  @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")
  @bundle_type = bundle_type
  Jsii::Type.check_type(@bundle_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bundleType") unless @bundle_type.nil?
  @e_tag = e_tag
  Jsii::Type.check_type(@e_tag, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "eTag") unless @e_tag.nil?
  @version = version
  Jsii::Type.check_type(@version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "version") unless @version.nil?
end

Instance Attribute Details

#bucketString (readonly)

The name of the Amazon S3 bucket where the application revision is stored.



1704
1705
1706
# File 'code_deploy/cfn_deployment_group.rb', line 1704

def bucket
  @bucket
end

#bundle_typeString? (readonly)

The file type of the application revision. Must be one of the following:.

  • JSON
  • tar: A tar archive file.
  • tgz: A compressed tar archive file.
  • YAML
  • zip: A zip archive file.


1720
1721
1722
# File 'code_deploy/cfn_deployment_group.rb', line 1720

def bundle_type
  @bundle_type
end

#e_tagString? (readonly)

The ETag of the Amazon S3 object that represents the bundled artifacts for the application revision.

If the ETag is not specified as an input parameter, ETag validation of the object is skipped.



1727
1728
1729
# File 'code_deploy/cfn_deployment_group.rb', line 1727

def e_tag
  @e_tag
end

#keyString (readonly)

The name of the Amazon S3 object that represents the bundled artifacts for the application revision.



1709
1710
1711
# File 'code_deploy/cfn_deployment_group.rb', line 1709

def key
  @key
end

#versionString? (readonly)

A specific version of the Amazon S3 object that represents the bundled artifacts for the application revision.

If the version is not specified, the system uses the most recent version by default.



1734
1735
1736
# File 'code_deploy/cfn_deployment_group.rb', line 1734

def version
  @version
end

Class Method Details

.jsii_propertiesObject



1736
1737
1738
1739
1740
1741
1742
1743
1744
# File 'code_deploy/cfn_deployment_group.rb', line 1736

def self.jsii_properties
  {
    :bucket => "bucket",
    :key => "key",
    :bundle_type => "bundleType",
    :e_tag => "eTag",
    :version => "version",
  }
end

Instance Method Details

#to_jsiiObject



1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
# File 'code_deploy/cfn_deployment_group.rb', line 1746

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