Class: AWSCDK::EC2::CfnInstance::ElasticGpuSpecificationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnInstance::ElasticGpuSpecificationProperty
- 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
-
#type ⇒ String
readonly
The type of Elastic Graphics accelerator.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:) ⇒ ElasticGpuSpecificationProperty
constructor
A new instance of ElasticGpuSpecificationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:) ⇒ ElasticGpuSpecificationProperty
Returns a new instance of ElasticGpuSpecificationProperty.
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
#type ⇒ String (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_properties ⇒ Object
1511 1512 1513 1514 1515 |
# File 'ec2/cfn_instance.rb', line 1511 def self.jsii_properties { :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
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 |