Class: AWSCDK::EC2::CfnInstance::ElasticGpuSpecificationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/cfn_instance.rb

Overview

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.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:) ⇒ ElasticGpuSpecificationProperty

Returns a new instance of ElasticGpuSpecificationProperty.

Parameters:

  • type (String)

    The type of Elastic Graphics accelerator.



1500
1501
1502
1503
# File 'ec2/cfn_instance.rb', line 1500

def initialize(type:)
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
end

Instance Attribute Details

#typeString (readonly)

The type of Elastic Graphics accelerator.



1509
1510
1511
# File 'ec2/cfn_instance.rb', line 1509

def type
  @type
end

Class Method Details

.jsii_propertiesObject



1511
1512
1513
1514
1515
# File 'ec2/cfn_instance.rb', line 1511

def self.jsii_properties
  {
    :type => "type",
  }
end

Instance Method Details

#to_jsiiObject



1517
1518
1519
1520
1521
1522
1523
# File 'ec2/cfn_instance.rb', line 1517

def to_jsii
  result = {}
  result.merge!({
    "type" => @type,
  })
  result.compact
end