Skip to content
v2.278.0

ElasticGpuSpecificationProperty Struct ​

Amazon Elastic Graphics reached end of life on January 8, 2024.

Specifies the type of Elastic GPU. An Elastic GPU is a GPU resource that you can attach to your Amazon EC2 instance to accelerate the graphics performance of your applications.

ElasticGpuSpecification is a property of the AWS::EC2::Instance resource.

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 elasticGpuSpecificationProperty: ec2.CfnInstance.ElasticGpuSpecificationProperty = {
  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

elastic_gpu_specification_property = ec2.CfnInstance.ElasticGpuSpecificationProperty(
    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.*;

ElasticGpuSpecificationProperty elasticGpuSpecificationProperty = ElasticGpuSpecificationProperty.builder()
        .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 elasticGpuSpecificationProperty = new ElasticGpuSpecificationProperty {
    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"

elasticGpuSpecificationProperty := &ElasticGpuSpecificationProperty{
	Type: jsii.String("type"),
}

Properties ​

typestringtypestrtypeStringTypestringType*string required #
The type of Elastic Graphics accelerator.