Class: AWSCDK::ElasticBeanstalk::CfnEnvironment::TierProperty

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

Overview

Use the Tier property type to specify the environment tier for an AWS Elastic Beanstalk environment when defining an AWS::ElasticBeanstalk::Environment resource in an AWS CloudFormation template.

Describes the environment tier for an AWS::ElasticBeanstalk::Environment resource. For more information, see Environment Tiers in the AWS Elastic Beanstalk Developer Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name: nil, type: nil, version: nil) ⇒ TierProperty

Returns a new instance of TierProperty.

Parameters:

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

    The name of this environment tier.

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

    The type of this environment tier.

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

    The version of this environment tier.



737
738
739
740
741
742
743
744
# File 'elastic_beanstalk/cfn_environment.rb', line 737

def initialize(name: nil, type: nil, version: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil?
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil?
  @version = version
  Jsii::Type.check_type(@version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "version") unless @version.nil?
end

Instance Attribute Details

#nameString? (readonly)

The name of this environment tier.

Valid values:

  • For Web server tierWebServer
  • For Worker tierWorker


755
756
757
# File 'elastic_beanstalk/cfn_environment.rb', line 755

def name
  @name
end

#typeString? (readonly)

The type of this environment tier.

Valid values:

  • For Web server tierStandard
  • For Worker tierSQS/HTTP


765
766
767
# File 'elastic_beanstalk/cfn_environment.rb', line 765

def type
  @type
end

#versionString? (readonly)

The version of this environment tier.

When you don't set a value to it, Elastic Beanstalk uses the latest compatible worker tier version.

This member is deprecated. Any specific version that you set may become out of date. We recommend leaving it unspecified.



774
775
776
# File 'elastic_beanstalk/cfn_environment.rb', line 774

def version
  @version
end

Class Method Details

.jsii_propertiesObject



776
777
778
779
780
781
782
# File 'elastic_beanstalk/cfn_environment.rb', line 776

def self.jsii_properties
  {
    :name => "name",
    :type => "type",
    :version => "version",
  }
end

Instance Method Details

#to_jsiiObject



784
785
786
787
788
789
790
791
792
# File 'elastic_beanstalk/cfn_environment.rb', line 784

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