Class: AWSCDK::CodeDeploy::CfnDeploymentGroup::S3LocationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CodeDeploy::CfnDeploymentGroup::S3LocationProperty
- 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
-
#bucket ⇒ String
readonly
The name of the Amazon S3 bucket where the application revision is stored.
-
#bundle_type ⇒ String?
readonly
The file type of the application revision.
-
#e_tag ⇒ String?
readonly
The ETag of the Amazon S3 object that represents the bundled artifacts for the application revision.
-
#key ⇒ String
readonly
The name of the Amazon S3 object that represents the bundled artifacts for the application revision.
-
#version ⇒ String?
readonly
A specific version of the Amazon S3 object that represents the bundled artifacts for the application revision.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bucket:, key:, bundle_type: nil, e_tag: nil, version: nil) ⇒ S3LocationProperty
constructor
A new instance of S3LocationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bucket:, key:, bundle_type: nil, e_tag: nil, version: nil) ⇒ S3LocationProperty
Returns a new instance of S3LocationProperty.
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
#bucket ⇒ String (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_type ⇒ String? (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_tag ⇒ String? (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 |
#key ⇒ String (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 |
#version ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |