# TierProperty

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](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-beanstalk-environment.html) resource. For more information, see [Environment Tiers](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features-managing-env-tiers.html) in the *AWS Elastic Beanstalk Developer Guide* .

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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 tierProperty: elasticbeanstalk.CfnEnvironment.TierProperty = {
  name: 'name',
  type: 'type',
  version: 'version',
};
```

Python:

```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

tier_property = elasticbeanstalk.CfnEnvironment.TierProperty(
    name="name",
    type="type",
    version="version"
)
```

Java:

```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.*;

TierProperty tierProperty = TierProperty.builder()
        .name("name")
        .type("type")
        .version("version")
        .build();
```

C# / .NET:

```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 tierProperty = new TierProperty {
    Name = "name",
    Type = "type",
    Version = "version"
};
```

Golang:

```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"

tierProperty := &TierProperty{
	Name: jsii.String("name"),
	Type: jsii.String("type"),
	Version: jsii.String("version"),
}
```

## Properties

- `name`: string — The name of this environment tier.

  Valid values:

  - For *Web server tier* – `WebServer`
  - For *Worker tier* – `Worker`

- `type`: string — The type of this environment tier.

  Valid values:

  - For *Web server tier* – `Standard`
  - For *Worker tier* – `SQS/HTTP`

- `version`: string — 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.
