Skip to content
v2.278.0

InstanceConfigProperty Struct ​

An EC2 instance configuration AWS PCS uses to launch compute nodes.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_pcs as pcs } from 'aws-cdk-lib';
const instanceConfigProperty: pcs.CfnComputeNodeGroup.InstanceConfigProperty = {
  instanceType: 'instanceType',
};
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_pcs as pcs

instance_config_property = pcs.CfnComputeNodeGroup.InstanceConfigProperty(
    instance_type="instanceType"
)
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.pcs.*;

InstanceConfigProperty instanceConfigProperty = InstanceConfigProperty.builder()
        .instanceType("instanceType")
        .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.PCS;

var instanceConfigProperty = new InstanceConfigProperty {
    InstanceType = "instanceType"
};
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"

instanceConfigProperty := &InstanceConfigProperty{
	InstanceType: jsii.String("instanceType"),
}

Properties ​

instanceTypeoptionalstringinstance_typeoptionalstrinstanceTypeoptionalStringInstanceTypeoptionalstringInstanceTypeoptional*string #
The EC2 instance type that AWS PCS can provision in the compute node group.

Example: t2.xlarge