Class: AWSCDK::ElasticBeanstalk::CfnApplicationVersionProps

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

Overview

Properties for defining a CfnApplicationVersion.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(application_name:, source_bundle:, description: nil) ⇒ CfnApplicationVersionProps

Returns a new instance of CfnApplicationVersionProps.

Parameters:



12
13
14
15
16
17
18
19
# File 'elastic_beanstalk/cfn_application_version_props.rb', line 12

def initialize(application_name:, source_bundle:, description: nil)
  @application_name = application_name
  Jsii::Type.check_type(@application_name, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19lbGFzdGljYmVhbnN0YWxrLklBcHBsaWNhdGlvblJlZiJ9XX19")), "applicationName")
  @source_bundle = source_bundle.is_a?(Hash) ? ::AWSCDK::ElasticBeanstalk::CfnApplicationVersion::SourceBundleProperty.new(**source_bundle.transform_keys(&:to_sym)) : source_bundle
  Jsii::Type.check_type(@source_bundle, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lbGFzdGljYmVhbnN0YWxrLkNmbkFwcGxpY2F0aW9uVmVyc2lvbi5Tb3VyY2VCdW5kbGVQcm9wZXJ0eSJ9XX19")), "sourceBundle")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
end

Instance Attribute Details

#application_nameString, AWSCDK::Interfaces::AWSElasticbeanstalk::IApplicationRef (readonly)

The name of the Elastic Beanstalk application that is associated with this application version.



25
26
27
# File 'elastic_beanstalk/cfn_application_version_props.rb', line 25

def application_name
  @application_name
end

#descriptionString? (readonly)

A description of this application version.



37
38
39
# File 'elastic_beanstalk/cfn_application_version_props.rb', line 37

def description
  @description
end

#source_bundleAWSCDK::IResolvable, AWSCDK::ElasticBeanstalk::CfnApplicationVersion::SourceBundleProperty (readonly)

The Amazon S3 bucket and key that identify the location of the source bundle for this version.

The Amazon S3 bucket must be in the same region as the environment.



32
33
34
# File 'elastic_beanstalk/cfn_application_version_props.rb', line 32

def source_bundle
  @source_bundle
end

Class Method Details

.jsii_propertiesObject



39
40
41
42
43
44
45
# File 'elastic_beanstalk/cfn_application_version_props.rb', line 39

def self.jsii_properties
  {
    :application_name => "applicationName",
    :source_bundle => "sourceBundle",
    :description => "description",
  }
end

Instance Method Details

#to_jsiiObject



47
48
49
50
51
52
53
54
55
# File 'elastic_beanstalk/cfn_application_version_props.rb', line 47

def to_jsii
  result = {}
  result.merge!({
    "applicationName" => @application_name,
    "sourceBundle" => @source_bundle,
    "description" => @description,
  })
  result.compact
end