Class: AWSCDK::ElasticBeanstalk::CfnApplicationVersion::SourceBundleProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
elastic_beanstalk/cfn_application_version.rb

Overview

Use the SourceBundle property type to specify the Amazon S3 location of the source bundle for an AWS Elastic Beanstalk application version when defining an AWS::ElasticBeanstalk::ApplicationVersion resource in an AWS CloudFormation template.

The SourceBundle property is an embedded property of the AWS::ElasticBeanstalk::ApplicationVersion resource. It specifies the Amazon S3 location of the source bundle for an AWS Elastic Beanstalk application version.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(s3_bucket:, s3_key:) ⇒ SourceBundleProperty

Returns a new instance of SourceBundleProperty.

Parameters:

  • s3_bucket (String)

    The Amazon S3 bucket where the data is located.

  • s3_key (String)

    The Amazon S3 key where the data is located.



532
533
534
535
536
537
# File 'elastic_beanstalk/cfn_application_version.rb', line 532

def initialize(s3_bucket:, s3_key:)
  @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")
end

Instance Attribute Details

#s3_bucketString (readonly)

The Amazon S3 bucket where the data is located.



543
544
545
# File 'elastic_beanstalk/cfn_application_version.rb', line 543

def s3_bucket
  @s3_bucket
end

#s3_keyString (readonly)

The Amazon S3 key where the data is located.



548
549
550
# File 'elastic_beanstalk/cfn_application_version.rb', line 548

def s3_key
  @s3_key
end

Class Method Details

.jsii_propertiesObject



550
551
552
553
554
555
# File 'elastic_beanstalk/cfn_application_version.rb', line 550

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

Instance Method Details

#to_jsiiObject



557
558
559
560
561
562
563
564
# File 'elastic_beanstalk/cfn_application_version.rb', line 557

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