66
77/**
88 * Contains compute attributes. These attributes only need be specified when your project's or fleet's `computeType` is
9- * set to `ATTRIBUTE_BASED_COMPUTE`.
9+ * set to `ATTRIBUTE_BASED_COMPUTE` or `CUSTOM_INSTANCE_TYPE` .
1010 */
1111final class ComputeConfiguration
1212{
@@ -38,12 +38,20 @@ final class ComputeConfiguration
3838 */
3939 private $ machineType ;
4040
41+ /**
42+ * The EC2 instance type to be launched in your fleet.
43+ *
44+ * @var string|null
45+ */
46+ private $ instanceType ;
47+
4148 /**
4249 * @param array{
4350 * vCpu?: null|int,
4451 * memory?: null|int,
4552 * disk?: null|int,
4653 * machineType?: null|MachineType::*,
54+ * instanceType?: null|string,
4755 * } $input
4856 */
4957 public function __construct (array $ input )
@@ -52,6 +60,7 @@ public function __construct(array $input)
5260 $ this ->memory = $ input ['memory ' ] ?? null ;
5361 $ this ->disk = $ input ['disk ' ] ?? null ;
5462 $ this ->machineType = $ input ['machineType ' ] ?? null ;
63+ $ this ->instanceType = $ input ['instanceType ' ] ?? null ;
5564 }
5665
5766 /**
@@ -60,6 +69,7 @@ public function __construct(array $input)
6069 * memory?: null|int,
6170 * disk?: null|int,
6271 * machineType?: null|MachineType::*,
72+ * instanceType?: null|string,
6373 * }|ComputeConfiguration $input
6474 */
6575 public static function create ($ input ): self
@@ -72,6 +82,11 @@ public function getDisk(): ?int
7282 return $ this ->disk ;
7383 }
7484
85+ public function getInstanceType (): ?string
86+ {
87+ return $ this ->instanceType ;
88+ }
89+
7590 /**
7691 * @return MachineType::*|null
7792 */
0 commit comments