Class: AWSCDK::ElasticBeanstalk::CfnConfigurationTemplate::ConfigurationOptionSettingProperty

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

Overview

Use the ConfigurationOptionSetting property type to specify an option for an AWS Elastic Beanstalk configuration template when defining an AWS::ElasticBeanstalk::ConfigurationTemplate resource in an AWS CloudFormation template.

The ConfigurationOptionSetting property type specifies an option for an AWS Elastic Beanstalk configuration template.

The OptionSettings property of the AWS::ElasticBeanstalk::ConfigurationTemplate resource contains a list of ConfigurationOptionSetting property types.

For a list of possible namespaces and option values, see Option Values in the AWS Elastic Beanstalk Developer Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(namespace:, option_name:, resource_name: nil, value: nil) ⇒ ConfigurationOptionSettingProperty

Returns a new instance of ConfigurationOptionSettingProperty.

Parameters:

  • namespace (String)

    A unique namespace that identifies the option's associated AWS resource.

  • option_name (String)

    The name of the configuration option.

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

    A unique resource name for the option setting.

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

    The current value for the configuration option.



594
595
596
597
598
599
600
601
602
603
# File 'elastic_beanstalk/cfn_configuration_template.rb', line 594

def initialize(namespace:, option_name:, resource_name: nil, value: nil)
  @namespace = namespace
  Jsii::Type.check_type(@namespace, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "namespace")
  @option_name = option_name
  Jsii::Type.check_type(@option_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "optionName")
  @resource_name = resource_name
  Jsii::Type.check_type(@resource_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceName") unless @resource_name.nil?
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") unless @value.nil?
end

Instance Attribute Details

#namespaceString (readonly)

A unique namespace that identifies the option's associated AWS resource.



609
610
611
# File 'elastic_beanstalk/cfn_configuration_template.rb', line 609

def namespace
  @namespace
end

#option_nameString (readonly)

The name of the configuration option.



614
615
616
# File 'elastic_beanstalk/cfn_configuration_template.rb', line 614

def option_name
  @option_name
end

#resource_nameString? (readonly)

A unique resource name for the option setting.

Use it for a time–based scaling configuration option.



621
622
623
# File 'elastic_beanstalk/cfn_configuration_template.rb', line 621

def resource_name
  @resource_name
end

#valueString? (readonly)

The current value for the configuration option.



626
627
628
# File 'elastic_beanstalk/cfn_configuration_template.rb', line 626

def value
  @value
end

Class Method Details

.jsii_propertiesObject



628
629
630
631
632
633
634
635
# File 'elastic_beanstalk/cfn_configuration_template.rb', line 628

def self.jsii_properties
  {
    :namespace => "namespace",
    :option_name => "optionName",
    :resource_name => "resourceName",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



637
638
639
640
641
642
643
644
645
646
# File 'elastic_beanstalk/cfn_configuration_template.rb', line 637

def to_jsii
  result = {}
  result.merge!({
    "namespace" => @namespace,
    "optionName" => @option_name,
    "resourceName" => @resource_name,
    "value" => @value,
  })
  result.compact
end