Class CfnEnvironment
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.elasticbeanstalk.CfnEnvironment
- All Implemented Interfaces:
IInspectable
,ITaggable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:01.574Z")
@Stability(Stable)
public class CfnEnvironment
extends CfnResource
implements IInspectable, ITaggable
Specify an AWS Elastic Beanstalk environment by using the AWS::ElasticBeanstalk::Environment resource in an AWS CloudFormation template.
The AWS::ElasticBeanstalk::Environment resource is an AWS Elastic Beanstalk resource type that specifies an Elastic Beanstalk environment.
Example:
// 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.*; CfnEnvironment cfnEnvironment = CfnEnvironment.Builder.create(this, "MyCfnEnvironment") .applicationName("applicationName") // the properties below are optional .cnamePrefix("cnamePrefix") .description("description") .environmentName("environmentName") .operationsRole("operationsRole") .optionSettings(List.of(OptionSettingProperty.builder() .namespace("namespace") .optionName("optionName") // the properties below are optional .resourceName("resourceName") .value("value") .build())) .platformArn("platformArn") .solutionStackName("solutionStackName") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .templateName("templateName") .tier(TierProperty.builder() .name("name") .type("type") .version("version") .build()) .versionLabel("versionLabel") .build();
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnEnvironment
.static interface
Use theOptionSetting
property type to specify an option for an AWS Elastic Beanstalk environment when defining an AWS::ElasticBeanstalk::Environment resource in an AWS CloudFormation template.static interface
Use theTier
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.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnEnvironment
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnEnvironment
(software.amazon.jsii.JsiiObjectRef objRef) CfnEnvironment
(software.constructs.Construct scope, String id, CfnEnvironmentProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe name of the application that is associated with this environment.For load-balanced, autoscaling environments, the URL to the load balancer.If specified, the environment attempts to use this value as the prefix for the CNAME in your Elastic Beanstalk environment URL.Your description for this environment.A unique name for the environment.Key-value pairs defining configuration options for this environment, such as the instance type.The Amazon Resource Name (ARN) of the custom platform to use with the environment.The name of an Elastic Beanstalk solution stack (platform version) to use with the environment.getTags()
Tag Manager which manages the tags for this resource.Specifies the tags applied to resources in the environment.The name of the Elastic Beanstalk configuration template to use with the environment.getTier()
Specifies the tier to use in creating this environment.The name of the application version to deploy.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setApplicationName
(String value) The name of the application that is associated with this environment.void
setCnamePrefix
(String value) If specified, the environment attempts to use this value as the prefix for the CNAME in your Elastic Beanstalk environment URL.void
setDescription
(String value) Your description for this environment.void
setEnvironmentName
(String value) A unique name for the environment.void
setOperationsRole
(String value) void
setOptionSettings
(List<Object> value) Key-value pairs defining configuration options for this environment, such as the instance type.void
setOptionSettings
(IResolvable value) Key-value pairs defining configuration options for this environment, such as the instance type.void
setPlatformArn
(String value) The Amazon Resource Name (ARN) of the custom platform to use with the environment.void
setSolutionStackName
(String value) The name of an Elastic Beanstalk solution stack (platform version) to use with the environment.void
setTagsRaw
(List<CfnTag> value) Specifies the tags applied to resources in the environment.void
setTemplateName
(String value) The name of the Elastic Beanstalk configuration template to use with the environment.void
setTier
(IResolvable value) Specifies the tier to use in creating this environment.void
Specifies the tier to use in creating this environment.void
setVersionLabel
(String value) The name of the application version to deploy.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnEnvironment
protected CfnEnvironment(software.amazon.jsii.JsiiObjectRef objRef) -
CfnEnvironment
protected CfnEnvironment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnEnvironment
@Stability(Stable) public CfnEnvironment(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnEnvironmentProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrEndpointUrl
For load-balanced, autoscaling environments, the URL to the load balancer. For single-instance environments, the IP address of the instance.Example load balancer URL:
Example instance IP address:
192.0.2.0
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getApplicationName
The name of the application that is associated with this environment. -
setApplicationName
The name of the application that is associated with this environment. -
getCnamePrefix
If specified, the environment attempts to use this value as the prefix for the CNAME in your Elastic Beanstalk environment URL. -
setCnamePrefix
If specified, the environment attempts to use this value as the prefix for the CNAME in your Elastic Beanstalk environment URL. -
getDescription
Your description for this environment. -
setDescription
Your description for this environment. -
getEnvironmentName
A unique name for the environment. -
setEnvironmentName
A unique name for the environment. -
getOperationsRole
The operations role feature of AWS Elastic Beanstalk is in beta release and is subject to change.
-
setOperationsRole
The operations role feature of AWS Elastic Beanstalk is in beta release and is subject to change.
-
getOptionSettings
Key-value pairs defining configuration options for this environment, such as the instance type. -
setOptionSettings
Key-value pairs defining configuration options for this environment, such as the instance type. -
setOptionSettings
Key-value pairs defining configuration options for this environment, such as the instance type. -
getPlatformArn
The Amazon Resource Name (ARN) of the custom platform to use with the environment. -
setPlatformArn
The Amazon Resource Name (ARN) of the custom platform to use with the environment. -
getSolutionStackName
The name of an Elastic Beanstalk solution stack (platform version) to use with the environment. -
setSolutionStackName
The name of an Elastic Beanstalk solution stack (platform version) to use with the environment. -
getTagsRaw
Specifies the tags applied to resources in the environment. -
setTagsRaw
Specifies the tags applied to resources in the environment. -
getTemplateName
The name of the Elastic Beanstalk configuration template to use with the environment. -
setTemplateName
The name of the Elastic Beanstalk configuration template to use with the environment. -
getTier
Specifies the tier to use in creating this environment. -
setTier
Specifies the tier to use in creating this environment. -
setTier
Specifies the tier to use in creating this environment. -
getVersionLabel
The name of the application version to deploy. -
setVersionLabel
The name of the application version to deploy.
-