Skip to content
v2.278.0

LaunchTemplateElasticInferenceAcceleratorProperty Struct ​

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const launchTemplateElasticInferenceAcceleratorProperty: ec2.CfnLaunchTemplate.LaunchTemplateElasticInferenceAcceleratorProperty = {
  count: 123,
  type: 'type',
};
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_ec2 as ec2

launch_template_elastic_inference_accelerator_property = ec2.CfnLaunchTemplate.LaunchTemplateElasticInferenceAcceleratorProperty(
    count=123,
    type="type"
)
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.ec2.*;

LaunchTemplateElasticInferenceAcceleratorProperty launchTemplateElasticInferenceAcceleratorProperty = LaunchTemplateElasticInferenceAcceleratorProperty.builder()
        .count(123)
        .type("type")
        .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.EC2;

var launchTemplateElasticInferenceAcceleratorProperty = new LaunchTemplateElasticInferenceAcceleratorProperty {
    Count = 123,
    Type = "type"
};
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"

launchTemplateElasticInferenceAcceleratorProperty := &LaunchTemplateElasticInferenceAcceleratorProperty{
	Count: jsii.Number(123),
	Type: jsii.String("type"),
}

Properties ​

countoptionalnumbercountoptionalint | floatcountoptionalNumberCountoptionaldoubleCountoptional*float64 #
typeoptionalstringtypeoptionalstrtypeoptionalStringTypeoptionalstringTypeoptional*string #