Skip to content
v2.273.0

BuiltInAttributes Class ​

The built-in container instance attributes.

Example ​

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
# 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
// 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();
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();
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 ​

ts
new BuiltInAttributes()
python
BuiltInAttributes()
java
new BuiltInAttributes()
csharp
new BuiltInAttributes()
go
NewBuiltInAttributes()

Properties ​

AMI_IDstringami_idstrAMI_IDStringAMI_IDstringAMI_ID*stringrequiredstatic#
The AMI id the instance is using.
AVAILABILITY_ZONEstringavailability_zonestrAVAILABILITY_ZONEStringAVAILABILITY_ZONEstringAVAILABILITY_ZONE*stringrequiredstatic#
The AvailabilityZone where the instance is running in.
INSTANCE_IDstringinstance_idstrINSTANCE_IDStringINSTANCE_IDstringINSTANCE_ID*stringrequiredstatic#
The id of the instance.
INSTANCE_TYPEstringinstance_typestrINSTANCE_TYPEStringINSTANCE_TYPEstringINSTANCE_TYPE*stringrequiredstatic#
The EC2 instance type.
OS_TYPEstringos_typestrOS_TYPEStringOS_TYPEstringOS_TYPE*stringrequiredstatic#
The operating system of the instance.

Either 'linux' or 'windows'.