Skip to content
v2.278.0

OptionSettingProperty Struct ​

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

The OptionSetting property type specifies an option for an AWS Elastic Beanstalk environment.

The OptionSettings property of the AWS::ElasticBeanstalk::Environment resource contains a list of OptionSetting property types.

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

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_elasticbeanstalk as elasticbeanstalk } from 'aws-cdk-lib';
const optionSettingProperty: elasticbeanstalk.CfnEnvironment.OptionSettingProperty = {
  namespace: 'namespace',
  optionName: 'optionName',

  // the properties below are optional
  resourceName: 'resourceName',
  value: 'value',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_elasticbeanstalk as elasticbeanstalk

option_setting_property = elasticbeanstalk.CfnEnvironment.OptionSettingProperty(
    namespace="namespace",
    option_name="optionName",

    # the properties below are optional
    resource_name="resourceName",
    value="value"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.elasticbeanstalk.*;

OptionSettingProperty optionSettingProperty = OptionSettingProperty.builder()
        .namespace("namespace")
        .optionName("optionName")

        // the properties below are optional
        .resourceName("resourceName")
        .value("value")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ElasticBeanstalk;

var optionSettingProperty = new OptionSettingProperty {
    Namespace = "namespace",
    OptionName = "optionName",

    // the properties below are optional
    ResourceName = "resourceName",
    Value = "value"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

optionSettingProperty := &OptionSettingProperty{
	Namespace: jsii.String("namespace"),
	OptionName: jsii.String("optionName"),

	// the properties below are optional
	ResourceName: jsii.String("resourceName"),
	Value: jsii.String("value"),
}

Properties ​

namespacestringnamespacestrnamespaceStringNamespacestringNamespace*string required #
A unique namespace that identifies the option's associated AWS resource.
optionNamestringoption_namestroptionNameStringOptionNamestringOptionName*string required #
The name of the configuration option.
resourceNameoptionalstringresource_nameoptionalstrresourceNameoptionalStringResourceNameoptionalstringResourceNameoptional*string #
A unique resource name for the option setting.

Use it for a time–based scaling configuration option.

valueoptionalstringvalueoptionalstrvalueoptionalStringValueoptionalstringValueoptional*string #
The current value for the configuration option.