Class: AWSCDK::CodeBuild::CfnFleet::ComputeConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CodeBuild::CfnFleet::ComputeConfigurationProperty
- Defined in:
- code_build/cfn_fleet.rb
Overview
Contains compute attributes.
These attributes only need be specified when your project's or fleet's compute_type is set to ATTRIBUTE_BASED_COMPUTE or CUSTOM_INSTANCE_TYPE .
Instance Attribute Summary collapse
-
#disk ⇒ Numeric?
readonly
The amount of disk space of the instance type included in your fleet.
-
#instance_type ⇒ String?
readonly
The EC2 instance type to be launched in your fleet.
-
#machine_type ⇒ String?
readonly
The machine type of the instance type included in your fleet.
-
#memory ⇒ Numeric?
readonly
The amount of memory of the instance type included in your fleet.
-
#v_cpu ⇒ Numeric?
readonly
The number of vCPUs of the instance type included in your fleet.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(disk: nil, instance_type: nil, machine_type: nil, memory: nil, v_cpu: nil) ⇒ ComputeConfigurationProperty
constructor
A new instance of ComputeConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(disk: nil, instance_type: nil, machine_type: nil, memory: nil, v_cpu: nil) ⇒ ComputeConfigurationProperty
Returns a new instance of ComputeConfigurationProperty.
672 673 674 675 676 677 678 679 680 681 682 683 |
# File 'code_build/cfn_fleet.rb', line 672 def initialize(disk: nil, instance_type: nil, machine_type: nil, memory: nil, v_cpu: nil) @disk = disk Jsii::Type.check_type(@disk, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "disk") unless @disk.nil? @instance_type = instance_type Jsii::Type.check_type(@instance_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "instanceType") unless @instance_type.nil? @machine_type = machine_type Jsii::Type.check_type(@machine_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "machineType") unless @machine_type.nil? @memory = memory Jsii::Type.check_type(@memory, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "memory") unless @memory.nil? @v_cpu = v_cpu Jsii::Type.check_type(@v_cpu, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "vCpu") unless @v_cpu.nil? end |
Instance Attribute Details
#disk ⇒ Numeric? (readonly)
The amount of disk space of the instance type included in your fleet.
689 690 691 |
# File 'code_build/cfn_fleet.rb', line 689 def disk @disk end |
#instance_type ⇒ String? (readonly)
The EC2 instance type to be launched in your fleet.
694 695 696 |
# File 'code_build/cfn_fleet.rb', line 694 def instance_type @instance_type end |
#machine_type ⇒ String? (readonly)
The machine type of the instance type included in your fleet.
699 700 701 |
# File 'code_build/cfn_fleet.rb', line 699 def machine_type @machine_type end |
#memory ⇒ Numeric? (readonly)
The amount of memory of the instance type included in your fleet.
704 705 706 |
# File 'code_build/cfn_fleet.rb', line 704 def memory @memory end |
#v_cpu ⇒ Numeric? (readonly)
The number of vCPUs of the instance type included in your fleet.
709 710 711 |
# File 'code_build/cfn_fleet.rb', line 709 def v_cpu @v_cpu end |
Class Method Details
.jsii_properties ⇒ Object
711 712 713 714 715 716 717 718 719 |
# File 'code_build/cfn_fleet.rb', line 711 def self.jsii_properties { :disk => "disk", :instance_type => "instanceType", :machine_type => "machineType", :memory => "memory", :v_cpu => "vCpu", } end |
Instance Method Details
#to_jsii ⇒ Object
721 722 723 724 725 726 727 728 729 730 731 |
# File 'code_build/cfn_fleet.rb', line 721 def to_jsii result = {} result.merge!({ "disk" => @disk, "instanceType" => @instance_type, "machineType" => @machine_type, "memory" => @memory, "vCpu" => @v_cpu, }) result.compact end |