# BuiltInAttributes

The built-in container instance attributes.

- Source: [`aws-ecs/lib/ec2/ec2-service.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-ecs/lib/ec2/ec2-service.ts#L393)

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const builtInAttributes = new ecs.BuiltInAttributes();
```

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_ecs as ecs

built_in_attributes = ecs.BuiltInAttributes()
```

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

BuiltInAttributes builtInAttributes = new BuiltInAttributes();
```

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.ECS;

var builtInAttributes = new BuiltInAttributes();
```

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"

builtInAttributes := awscdk.Aws_ecs.NewBuiltInAttributes()
```

## Initializer

TypeScript:

```ts
new BuiltInAttributes()
```

Python:

```python
BuiltInAttributes()
```

Java:

```java
new BuiltInAttributes()
```

C# / .NET:

```csharp
new BuiltInAttributes()
```

Golang:

```go
NewBuiltInAttributes()
```

## Properties

- `AMI_ID`: string (static) — The AMI id the instance is using.

- `AVAILABILITY_ZONE`: string (static) — The AvailabilityZone where the instance is running in.

- `INSTANCE_ID`: string (static) — The id of the instance.

- `INSTANCE_TYPE`: string (static) — The EC2 instance type.

- `OS_TYPE`: string (static) — The operating system of the instance.

  Either 'linux' or 'windows'.
