aws_sdk_codebuild/operation/create_fleet/_create_fleet_input.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct CreateFleetInput {
6 /// <p>The name of the compute fleet.</p>
7 pub name: ::std::option::Option<::std::string::String>,
8 /// <p>The initial number of machines allocated to the fleet, which defines the number of builds that can run in parallel.</p>
9 pub base_capacity: ::std::option::Option<i32>,
10 /// <p>The environment type of the compute fleet.</p>
11 /// <ul>
12 /// <li>
13 /// <p>The environment type <code>ARM_CONTAINER</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), EU (Frankfurt), and South America (São Paulo).</p></li>
14 /// <li>
15 /// <p>The environment type <code>ARM_EC2</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).</p></li>
16 /// <li>
17 /// <p>The environment type <code>LINUX_CONTAINER</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).</p></li>
18 /// <li>
19 /// <p>The environment type <code>LINUX_EC2</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).</p></li>
20 /// <li>
21 /// <p>The environment type <code>LINUX_GPU_CONTAINER</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), and Asia Pacific (Sydney).</p></li>
22 /// <li>
23 /// <p>The environment type <code>MAC_ARM</code> is available for Medium fleets only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), and EU (Frankfurt)</p></li>
24 /// <li>
25 /// <p>The environment type <code>MAC_ARM</code> is available for Large fleets only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), and Asia Pacific (Sydney).</p></li>
26 /// <li>
27 /// <p>The environment type <code>WINDOWS_EC2</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).</p></li>
28 /// <li>
29 /// <p>The environment type <code>WINDOWS_SERVER_2019_CONTAINER</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), Asia Pacific (Tokyo), Asia Pacific (Mumbai) and EU (Ireland).</p></li>
30 /// <li>
31 /// <p>The environment type <code>WINDOWS_SERVER_2022_CONTAINER</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Sydney), Asia Pacific (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and Asia Pacific (Mumbai).</p></li>
32 /// </ul>
33 /// <p>For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html">Build environment compute types</a> in the <i>CodeBuild user guide</i>.</p>
34 pub environment_type: ::std::option::Option<crate::types::EnvironmentType>,
35 /// <p>Information about the compute resources the compute fleet uses. Available values include:</p>
36 /// <ul>
37 /// <li>
38 /// <p><code>ATTRIBUTE_BASED_COMPUTE</code>: Specify the amount of vCPUs, memory, disk space, and the type of machine.</p><note>
39 /// <p>If you use <code>ATTRIBUTE_BASED_COMPUTE</code>, you must define your attributes by using <code>computeConfiguration</code>. CodeBuild will select the cheapest instance that satisfies your specified attributes. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment-reserved-capacity.types">Reserved capacity environment types</a> in the <i>CodeBuild User Guide</i>.</p>
40 /// </note></li>
41 /// <li>
42 /// <p><code>BUILD_GENERAL1_SMALL</code>: Use up to 4 GiB memory and 2 vCPUs for builds.</p></li>
43 /// <li>
44 /// <p><code>BUILD_GENERAL1_MEDIUM</code>: Use up to 8 GiB memory and 4 vCPUs for builds.</p></li>
45 /// <li>
46 /// <p><code>BUILD_GENERAL1_LARGE</code>: Use up to 16 GiB memory and 8 vCPUs for builds, depending on your environment type.</p></li>
47 /// <li>
48 /// <p><code>BUILD_GENERAL1_XLARGE</code>: Use up to 72 GiB memory and 36 vCPUs for builds, depending on your environment type.</p></li>
49 /// <li>
50 /// <p><code>BUILD_GENERAL1_2XLARGE</code>: Use up to 144 GiB memory, 72 vCPUs, and 824 GB of SSD storage for builds. This compute type supports Docker images up to 100 GB uncompressed.</p></li>
51 /// <li>
52 /// <p><code>BUILD_LAMBDA_1GB</code>: Use up to 1 GiB memory for builds. Only available for environment type <code>LINUX_LAMBDA_CONTAINER</code> and <code>ARM_LAMBDA_CONTAINER</code>.</p></li>
53 /// <li>
54 /// <p><code>BUILD_LAMBDA_2GB</code>: Use up to 2 GiB memory for builds. Only available for environment type <code>LINUX_LAMBDA_CONTAINER</code> and <code>ARM_LAMBDA_CONTAINER</code>.</p></li>
55 /// <li>
56 /// <p><code>BUILD_LAMBDA_4GB</code>: Use up to 4 GiB memory for builds. Only available for environment type <code>LINUX_LAMBDA_CONTAINER</code> and <code>ARM_LAMBDA_CONTAINER</code>.</p></li>
57 /// <li>
58 /// <p><code>BUILD_LAMBDA_8GB</code>: Use up to 8 GiB memory for builds. Only available for environment type <code>LINUX_LAMBDA_CONTAINER</code> and <code>ARM_LAMBDA_CONTAINER</code>.</p></li>
59 /// <li>
60 /// <p><code>BUILD_LAMBDA_10GB</code>: Use up to 10 GiB memory for builds. Only available for environment type <code>LINUX_LAMBDA_CONTAINER</code> and <code>ARM_LAMBDA_CONTAINER</code>.</p></li>
61 /// </ul>
62 /// <p>If you use <code>BUILD_GENERAL1_SMALL</code>:</p>
63 /// <ul>
64 /// <li>
65 /// <p>For environment type <code>LINUX_CONTAINER</code>, you can use up to 4 GiB memory and 2 vCPUs for builds.</p></li>
66 /// <li>
67 /// <p>For environment type <code>LINUX_GPU_CONTAINER</code>, you can use up to 16 GiB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.</p></li>
68 /// <li>
69 /// <p>For environment type <code>ARM_CONTAINER</code>, you can use up to 4 GiB memory and 2 vCPUs on ARM-based processors for builds.</p></li>
70 /// </ul>
71 /// <p>If you use <code>BUILD_GENERAL1_LARGE</code>:</p>
72 /// <ul>
73 /// <li>
74 /// <p>For environment type <code>LINUX_CONTAINER</code>, you can use up to 16 GiB memory and 8 vCPUs for builds.</p></li>
75 /// <li>
76 /// <p>For environment type <code>LINUX_GPU_CONTAINER</code>, you can use up to 255 GiB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.</p></li>
77 /// <li>
78 /// <p>For environment type <code>ARM_CONTAINER</code>, you can use up to 16 GiB memory and 8 vCPUs on ARM-based processors for builds.</p></li>
79 /// </ul>
80 /// <p>For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment.types">On-demand environment types</a> in the <i>CodeBuild User Guide.</i></p>
81 pub compute_type: ::std::option::Option<crate::types::ComputeType>,
82 /// <p>The compute configuration of the compute fleet. This is only required if <code>computeType</code> is set to <code>ATTRIBUTE_BASED_COMPUTE</code>.</p>
83 pub compute_configuration: ::std::option::Option<crate::types::ComputeConfiguration>,
84 /// <p>The scaling configuration of the compute fleet.</p>
85 pub scaling_configuration: ::std::option::Option<crate::types::ScalingConfigurationInput>,
86 /// <p>The compute fleet overflow behavior.</p>
87 /// <ul>
88 /// <li>
89 /// <p>For overflow behavior <code>QUEUE</code>, your overflow builds need to wait on the existing fleet instance to become available.</p></li>
90 /// <li>
91 /// <p>For overflow behavior <code>ON_DEMAND</code>, your overflow builds run on CodeBuild on-demand.</p><note>
92 /// <p>If you choose to set your overflow behavior to on-demand while creating a VPC-connected fleet, make sure that you add the required VPC permissions to your project service role. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-create-vpc-network-interface">Example policy statement to allow CodeBuild access to Amazon Web Services services required to create a VPC network interface</a>.</p>
93 /// </note></li>
94 /// </ul>
95 pub overflow_behavior: ::std::option::Option<crate::types::FleetOverflowBehavior>,
96 /// <p>Information about the VPC configuration that CodeBuild accesses.</p>
97 pub vpc_config: ::std::option::Option<crate::types::VpcConfig>,
98 /// <p>The proxy configuration of the compute fleet.</p>
99 pub proxy_configuration: ::std::option::Option<crate::types::ProxyConfiguration>,
100 /// <p>The Amazon Machine Image (AMI) of the compute fleet.</p>
101 pub image_id: ::std::option::Option<::std::string::String>,
102 /// <p>The service role associated with the compute fleet. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-permission-policy-fleet-service-role.html"> Allow a user to add a permission policy for a fleet service role</a> in the <i>CodeBuild User Guide</i>.</p>
103 pub fleet_service_role: ::std::option::Option<::std::string::String>,
104 /// <p>A list of tag key and value pairs associated with this compute fleet.</p>
105 /// <p>These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.</p>
106 pub tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
107}
108impl CreateFleetInput {
109 /// <p>The name of the compute fleet.</p>
110 pub fn name(&self) -> ::std::option::Option<&str> {
111 self.name.as_deref()
112 }
113 /// <p>The initial number of machines allocated to the fleet, which defines the number of builds that can run in parallel.</p>
114 pub fn base_capacity(&self) -> ::std::option::Option<i32> {
115 self.base_capacity
116 }
117 /// <p>The environment type of the compute fleet.</p>
118 /// <ul>
119 /// <li>
120 /// <p>The environment type <code>ARM_CONTAINER</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), EU (Frankfurt), and South America (São Paulo).</p></li>
121 /// <li>
122 /// <p>The environment type <code>ARM_EC2</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).</p></li>
123 /// <li>
124 /// <p>The environment type <code>LINUX_CONTAINER</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).</p></li>
125 /// <li>
126 /// <p>The environment type <code>LINUX_EC2</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).</p></li>
127 /// <li>
128 /// <p>The environment type <code>LINUX_GPU_CONTAINER</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), and Asia Pacific (Sydney).</p></li>
129 /// <li>
130 /// <p>The environment type <code>MAC_ARM</code> is available for Medium fleets only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), and EU (Frankfurt)</p></li>
131 /// <li>
132 /// <p>The environment type <code>MAC_ARM</code> is available for Large fleets only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), and Asia Pacific (Sydney).</p></li>
133 /// <li>
134 /// <p>The environment type <code>WINDOWS_EC2</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).</p></li>
135 /// <li>
136 /// <p>The environment type <code>WINDOWS_SERVER_2019_CONTAINER</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), Asia Pacific (Tokyo), Asia Pacific (Mumbai) and EU (Ireland).</p></li>
137 /// <li>
138 /// <p>The environment type <code>WINDOWS_SERVER_2022_CONTAINER</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Sydney), Asia Pacific (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and Asia Pacific (Mumbai).</p></li>
139 /// </ul>
140 /// <p>For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html">Build environment compute types</a> in the <i>CodeBuild user guide</i>.</p>
141 pub fn environment_type(&self) -> ::std::option::Option<&crate::types::EnvironmentType> {
142 self.environment_type.as_ref()
143 }
144 /// <p>Information about the compute resources the compute fleet uses. Available values include:</p>
145 /// <ul>
146 /// <li>
147 /// <p><code>ATTRIBUTE_BASED_COMPUTE</code>: Specify the amount of vCPUs, memory, disk space, and the type of machine.</p><note>
148 /// <p>If you use <code>ATTRIBUTE_BASED_COMPUTE</code>, you must define your attributes by using <code>computeConfiguration</code>. CodeBuild will select the cheapest instance that satisfies your specified attributes. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment-reserved-capacity.types">Reserved capacity environment types</a> in the <i>CodeBuild User Guide</i>.</p>
149 /// </note></li>
150 /// <li>
151 /// <p><code>BUILD_GENERAL1_SMALL</code>: Use up to 4 GiB memory and 2 vCPUs for builds.</p></li>
152 /// <li>
153 /// <p><code>BUILD_GENERAL1_MEDIUM</code>: Use up to 8 GiB memory and 4 vCPUs for builds.</p></li>
154 /// <li>
155 /// <p><code>BUILD_GENERAL1_LARGE</code>: Use up to 16 GiB memory and 8 vCPUs for builds, depending on your environment type.</p></li>
156 /// <li>
157 /// <p><code>BUILD_GENERAL1_XLARGE</code>: Use up to 72 GiB memory and 36 vCPUs for builds, depending on your environment type.</p></li>
158 /// <li>
159 /// <p><code>BUILD_GENERAL1_2XLARGE</code>: Use up to 144 GiB memory, 72 vCPUs, and 824 GB of SSD storage for builds. This compute type supports Docker images up to 100 GB uncompressed.</p></li>
160 /// <li>
161 /// <p><code>BUILD_LAMBDA_1GB</code>: Use up to 1 GiB memory for builds. Only available for environment type <code>LINUX_LAMBDA_CONTAINER</code> and <code>ARM_LAMBDA_CONTAINER</code>.</p></li>
162 /// <li>
163 /// <p><code>BUILD_LAMBDA_2GB</code>: Use up to 2 GiB memory for builds. Only available for environment type <code>LINUX_LAMBDA_CONTAINER</code> and <code>ARM_LAMBDA_CONTAINER</code>.</p></li>
164 /// <li>
165 /// <p><code>BUILD_LAMBDA_4GB</code>: Use up to 4 GiB memory for builds. Only available for environment type <code>LINUX_LAMBDA_CONTAINER</code> and <code>ARM_LAMBDA_CONTAINER</code>.</p></li>
166 /// <li>
167 /// <p><code>BUILD_LAMBDA_8GB</code>: Use up to 8 GiB memory for builds. Only available for environment type <code>LINUX_LAMBDA_CONTAINER</code> and <code>ARM_LAMBDA_CONTAINER</code>.</p></li>
168 /// <li>
169 /// <p><code>BUILD_LAMBDA_10GB</code>: Use up to 10 GiB memory for builds. Only available for environment type <code>LINUX_LAMBDA_CONTAINER</code> and <code>ARM_LAMBDA_CONTAINER</code>.</p></li>
170 /// </ul>
171 /// <p>If you use <code>BUILD_GENERAL1_SMALL</code>:</p>
172 /// <ul>
173 /// <li>
174 /// <p>For environment type <code>LINUX_CONTAINER</code>, you can use up to 4 GiB memory and 2 vCPUs for builds.</p></li>
175 /// <li>
176 /// <p>For environment type <code>LINUX_GPU_CONTAINER</code>, you can use up to 16 GiB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.</p></li>
177 /// <li>
178 /// <p>For environment type <code>ARM_CONTAINER</code>, you can use up to 4 GiB memory and 2 vCPUs on ARM-based processors for builds.</p></li>
179 /// </ul>
180 /// <p>If you use <code>BUILD_GENERAL1_LARGE</code>:</p>
181 /// <ul>
182 /// <li>
183 /// <p>For environment type <code>LINUX_CONTAINER</code>, you can use up to 16 GiB memory and 8 vCPUs for builds.</p></li>
184 /// <li>
185 /// <p>For environment type <code>LINUX_GPU_CONTAINER</code>, you can use up to 255 GiB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.</p></li>
186 /// <li>
187 /// <p>For environment type <code>ARM_CONTAINER</code>, you can use up to 16 GiB memory and 8 vCPUs on ARM-based processors for builds.</p></li>
188 /// </ul>
189 /// <p>For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment.types">On-demand environment types</a> in the <i>CodeBuild User Guide.</i></p>
190 pub fn compute_type(&self) -> ::std::option::Option<&crate::types::ComputeType> {
191 self.compute_type.as_ref()
192 }
193 /// <p>The compute configuration of the compute fleet. This is only required if <code>computeType</code> is set to <code>ATTRIBUTE_BASED_COMPUTE</code>.</p>
194 pub fn compute_configuration(&self) -> ::std::option::Option<&crate::types::ComputeConfiguration> {
195 self.compute_configuration.as_ref()
196 }
197 /// <p>The scaling configuration of the compute fleet.</p>
198 pub fn scaling_configuration(&self) -> ::std::option::Option<&crate::types::ScalingConfigurationInput> {
199 self.scaling_configuration.as_ref()
200 }
201 /// <p>The compute fleet overflow behavior.</p>
202 /// <ul>
203 /// <li>
204 /// <p>For overflow behavior <code>QUEUE</code>, your overflow builds need to wait on the existing fleet instance to become available.</p></li>
205 /// <li>
206 /// <p>For overflow behavior <code>ON_DEMAND</code>, your overflow builds run on CodeBuild on-demand.</p><note>
207 /// <p>If you choose to set your overflow behavior to on-demand while creating a VPC-connected fleet, make sure that you add the required VPC permissions to your project service role. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-create-vpc-network-interface">Example policy statement to allow CodeBuild access to Amazon Web Services services required to create a VPC network interface</a>.</p>
208 /// </note></li>
209 /// </ul>
210 pub fn overflow_behavior(&self) -> ::std::option::Option<&crate::types::FleetOverflowBehavior> {
211 self.overflow_behavior.as_ref()
212 }
213 /// <p>Information about the VPC configuration that CodeBuild accesses.</p>
214 pub fn vpc_config(&self) -> ::std::option::Option<&crate::types::VpcConfig> {
215 self.vpc_config.as_ref()
216 }
217 /// <p>The proxy configuration of the compute fleet.</p>
218 pub fn proxy_configuration(&self) -> ::std::option::Option<&crate::types::ProxyConfiguration> {
219 self.proxy_configuration.as_ref()
220 }
221 /// <p>The Amazon Machine Image (AMI) of the compute fleet.</p>
222 pub fn image_id(&self) -> ::std::option::Option<&str> {
223 self.image_id.as_deref()
224 }
225 /// <p>The service role associated with the compute fleet. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-permission-policy-fleet-service-role.html"> Allow a user to add a permission policy for a fleet service role</a> in the <i>CodeBuild User Guide</i>.</p>
226 pub fn fleet_service_role(&self) -> ::std::option::Option<&str> {
227 self.fleet_service_role.as_deref()
228 }
229 /// <p>A list of tag key and value pairs associated with this compute fleet.</p>
230 /// <p>These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.</p>
231 ///
232 /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.tags.is_none()`.
233 pub fn tags(&self) -> &[crate::types::Tag] {
234 self.tags.as_deref().unwrap_or_default()
235 }
236}
237impl CreateFleetInput {
238 /// Creates a new builder-style object to manufacture [`CreateFleetInput`](crate::operation::create_fleet::CreateFleetInput).
239 pub fn builder() -> crate::operation::create_fleet::builders::CreateFleetInputBuilder {
240 crate::operation::create_fleet::builders::CreateFleetInputBuilder::default()
241 }
242}
243
244/// A builder for [`CreateFleetInput`](crate::operation::create_fleet::CreateFleetInput).
245#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
246#[non_exhaustive]
247pub struct CreateFleetInputBuilder {
248 pub(crate) name: ::std::option::Option<::std::string::String>,
249 pub(crate) base_capacity: ::std::option::Option<i32>,
250 pub(crate) environment_type: ::std::option::Option<crate::types::EnvironmentType>,
251 pub(crate) compute_type: ::std::option::Option<crate::types::ComputeType>,
252 pub(crate) compute_configuration: ::std::option::Option<crate::types::ComputeConfiguration>,
253 pub(crate) scaling_configuration: ::std::option::Option<crate::types::ScalingConfigurationInput>,
254 pub(crate) overflow_behavior: ::std::option::Option<crate::types::FleetOverflowBehavior>,
255 pub(crate) vpc_config: ::std::option::Option<crate::types::VpcConfig>,
256 pub(crate) proxy_configuration: ::std::option::Option<crate::types::ProxyConfiguration>,
257 pub(crate) image_id: ::std::option::Option<::std::string::String>,
258 pub(crate) fleet_service_role: ::std::option::Option<::std::string::String>,
259 pub(crate) tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
260}
261impl CreateFleetInputBuilder {
262 /// <p>The name of the compute fleet.</p>
263 /// This field is required.
264 pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
265 self.name = ::std::option::Option::Some(input.into());
266 self
267 }
268 /// <p>The name of the compute fleet.</p>
269 pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
270 self.name = input;
271 self
272 }
273 /// <p>The name of the compute fleet.</p>
274 pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
275 &self.name
276 }
277 /// <p>The initial number of machines allocated to the fleet, which defines the number of builds that can run in parallel.</p>
278 /// This field is required.
279 pub fn base_capacity(mut self, input: i32) -> Self {
280 self.base_capacity = ::std::option::Option::Some(input);
281 self
282 }
283 /// <p>The initial number of machines allocated to the fleet, which defines the number of builds that can run in parallel.</p>
284 pub fn set_base_capacity(mut self, input: ::std::option::Option<i32>) -> Self {
285 self.base_capacity = input;
286 self
287 }
288 /// <p>The initial number of machines allocated to the fleet, which defines the number of builds that can run in parallel.</p>
289 pub fn get_base_capacity(&self) -> &::std::option::Option<i32> {
290 &self.base_capacity
291 }
292 /// <p>The environment type of the compute fleet.</p>
293 /// <ul>
294 /// <li>
295 /// <p>The environment type <code>ARM_CONTAINER</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), EU (Frankfurt), and South America (São Paulo).</p></li>
296 /// <li>
297 /// <p>The environment type <code>ARM_EC2</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).</p></li>
298 /// <li>
299 /// <p>The environment type <code>LINUX_CONTAINER</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).</p></li>
300 /// <li>
301 /// <p>The environment type <code>LINUX_EC2</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).</p></li>
302 /// <li>
303 /// <p>The environment type <code>LINUX_GPU_CONTAINER</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), and Asia Pacific (Sydney).</p></li>
304 /// <li>
305 /// <p>The environment type <code>MAC_ARM</code> is available for Medium fleets only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), and EU (Frankfurt)</p></li>
306 /// <li>
307 /// <p>The environment type <code>MAC_ARM</code> is available for Large fleets only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), and Asia Pacific (Sydney).</p></li>
308 /// <li>
309 /// <p>The environment type <code>WINDOWS_EC2</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).</p></li>
310 /// <li>
311 /// <p>The environment type <code>WINDOWS_SERVER_2019_CONTAINER</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), Asia Pacific (Tokyo), Asia Pacific (Mumbai) and EU (Ireland).</p></li>
312 /// <li>
313 /// <p>The environment type <code>WINDOWS_SERVER_2022_CONTAINER</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Sydney), Asia Pacific (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and Asia Pacific (Mumbai).</p></li>
314 /// </ul>
315 /// <p>For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html">Build environment compute types</a> in the <i>CodeBuild user guide</i>.</p>
316 /// This field is required.
317 pub fn environment_type(mut self, input: crate::types::EnvironmentType) -> Self {
318 self.environment_type = ::std::option::Option::Some(input);
319 self
320 }
321 /// <p>The environment type of the compute fleet.</p>
322 /// <ul>
323 /// <li>
324 /// <p>The environment type <code>ARM_CONTAINER</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), EU (Frankfurt), and South America (São Paulo).</p></li>
325 /// <li>
326 /// <p>The environment type <code>ARM_EC2</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).</p></li>
327 /// <li>
328 /// <p>The environment type <code>LINUX_CONTAINER</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).</p></li>
329 /// <li>
330 /// <p>The environment type <code>LINUX_EC2</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).</p></li>
331 /// <li>
332 /// <p>The environment type <code>LINUX_GPU_CONTAINER</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), and Asia Pacific (Sydney).</p></li>
333 /// <li>
334 /// <p>The environment type <code>MAC_ARM</code> is available for Medium fleets only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), and EU (Frankfurt)</p></li>
335 /// <li>
336 /// <p>The environment type <code>MAC_ARM</code> is available for Large fleets only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), and Asia Pacific (Sydney).</p></li>
337 /// <li>
338 /// <p>The environment type <code>WINDOWS_EC2</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).</p></li>
339 /// <li>
340 /// <p>The environment type <code>WINDOWS_SERVER_2019_CONTAINER</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), Asia Pacific (Tokyo), Asia Pacific (Mumbai) and EU (Ireland).</p></li>
341 /// <li>
342 /// <p>The environment type <code>WINDOWS_SERVER_2022_CONTAINER</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Sydney), Asia Pacific (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and Asia Pacific (Mumbai).</p></li>
343 /// </ul>
344 /// <p>For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html">Build environment compute types</a> in the <i>CodeBuild user guide</i>.</p>
345 pub fn set_environment_type(mut self, input: ::std::option::Option<crate::types::EnvironmentType>) -> Self {
346 self.environment_type = input;
347 self
348 }
349 /// <p>The environment type of the compute fleet.</p>
350 /// <ul>
351 /// <li>
352 /// <p>The environment type <code>ARM_CONTAINER</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), EU (Frankfurt), and South America (São Paulo).</p></li>
353 /// <li>
354 /// <p>The environment type <code>ARM_EC2</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).</p></li>
355 /// <li>
356 /// <p>The environment type <code>LINUX_CONTAINER</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).</p></li>
357 /// <li>
358 /// <p>The environment type <code>LINUX_EC2</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).</p></li>
359 /// <li>
360 /// <p>The environment type <code>LINUX_GPU_CONTAINER</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), and Asia Pacific (Sydney).</p></li>
361 /// <li>
362 /// <p>The environment type <code>MAC_ARM</code> is available for Medium fleets only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), and EU (Frankfurt)</p></li>
363 /// <li>
364 /// <p>The environment type <code>MAC_ARM</code> is available for Large fleets only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), and Asia Pacific (Sydney).</p></li>
365 /// <li>
366 /// <p>The environment type <code>WINDOWS_EC2</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Singapore), Asia Pacific (Sydney), South America (São Paulo), and Asia Pacific (Mumbai).</p></li>
367 /// <li>
368 /// <p>The environment type <code>WINDOWS_SERVER_2019_CONTAINER</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Sydney), Asia Pacific (Tokyo), Asia Pacific (Mumbai) and EU (Ireland).</p></li>
369 /// <li>
370 /// <p>The environment type <code>WINDOWS_SERVER_2022_CONTAINER</code> is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), EU (Frankfurt), Asia Pacific (Sydney), Asia Pacific (Singapore), Asia Pacific (Tokyo), South America (São Paulo) and Asia Pacific (Mumbai).</p></li>
371 /// </ul>
372 /// <p>For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html">Build environment compute types</a> in the <i>CodeBuild user guide</i>.</p>
373 pub fn get_environment_type(&self) -> &::std::option::Option<crate::types::EnvironmentType> {
374 &self.environment_type
375 }
376 /// <p>Information about the compute resources the compute fleet uses. Available values include:</p>
377 /// <ul>
378 /// <li>
379 /// <p><code>ATTRIBUTE_BASED_COMPUTE</code>: Specify the amount of vCPUs, memory, disk space, and the type of machine.</p><note>
380 /// <p>If you use <code>ATTRIBUTE_BASED_COMPUTE</code>, you must define your attributes by using <code>computeConfiguration</code>. CodeBuild will select the cheapest instance that satisfies your specified attributes. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment-reserved-capacity.types">Reserved capacity environment types</a> in the <i>CodeBuild User Guide</i>.</p>
381 /// </note></li>
382 /// <li>
383 /// <p><code>BUILD_GENERAL1_SMALL</code>: Use up to 4 GiB memory and 2 vCPUs for builds.</p></li>
384 /// <li>
385 /// <p><code>BUILD_GENERAL1_MEDIUM</code>: Use up to 8 GiB memory and 4 vCPUs for builds.</p></li>
386 /// <li>
387 /// <p><code>BUILD_GENERAL1_LARGE</code>: Use up to 16 GiB memory and 8 vCPUs for builds, depending on your environment type.</p></li>
388 /// <li>
389 /// <p><code>BUILD_GENERAL1_XLARGE</code>: Use up to 72 GiB memory and 36 vCPUs for builds, depending on your environment type.</p></li>
390 /// <li>
391 /// <p><code>BUILD_GENERAL1_2XLARGE</code>: Use up to 144 GiB memory, 72 vCPUs, and 824 GB of SSD storage for builds. This compute type supports Docker images up to 100 GB uncompressed.</p></li>
392 /// <li>
393 /// <p><code>BUILD_LAMBDA_1GB</code>: Use up to 1 GiB memory for builds. Only available for environment type <code>LINUX_LAMBDA_CONTAINER</code> and <code>ARM_LAMBDA_CONTAINER</code>.</p></li>
394 /// <li>
395 /// <p><code>BUILD_LAMBDA_2GB</code>: Use up to 2 GiB memory for builds. Only available for environment type <code>LINUX_LAMBDA_CONTAINER</code> and <code>ARM_LAMBDA_CONTAINER</code>.</p></li>
396 /// <li>
397 /// <p><code>BUILD_LAMBDA_4GB</code>: Use up to 4 GiB memory for builds. Only available for environment type <code>LINUX_LAMBDA_CONTAINER</code> and <code>ARM_LAMBDA_CONTAINER</code>.</p></li>
398 /// <li>
399 /// <p><code>BUILD_LAMBDA_8GB</code>: Use up to 8 GiB memory for builds. Only available for environment type <code>LINUX_LAMBDA_CONTAINER</code> and <code>ARM_LAMBDA_CONTAINER</code>.</p></li>
400 /// <li>
401 /// <p><code>BUILD_LAMBDA_10GB</code>: Use up to 10 GiB memory for builds. Only available for environment type <code>LINUX_LAMBDA_CONTAINER</code> and <code>ARM_LAMBDA_CONTAINER</code>.</p></li>
402 /// </ul>
403 /// <p>If you use <code>BUILD_GENERAL1_SMALL</code>:</p>
404 /// <ul>
405 /// <li>
406 /// <p>For environment type <code>LINUX_CONTAINER</code>, you can use up to 4 GiB memory and 2 vCPUs for builds.</p></li>
407 /// <li>
408 /// <p>For environment type <code>LINUX_GPU_CONTAINER</code>, you can use up to 16 GiB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.</p></li>
409 /// <li>
410 /// <p>For environment type <code>ARM_CONTAINER</code>, you can use up to 4 GiB memory and 2 vCPUs on ARM-based processors for builds.</p></li>
411 /// </ul>
412 /// <p>If you use <code>BUILD_GENERAL1_LARGE</code>:</p>
413 /// <ul>
414 /// <li>
415 /// <p>For environment type <code>LINUX_CONTAINER</code>, you can use up to 16 GiB memory and 8 vCPUs for builds.</p></li>
416 /// <li>
417 /// <p>For environment type <code>LINUX_GPU_CONTAINER</code>, you can use up to 255 GiB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.</p></li>
418 /// <li>
419 /// <p>For environment type <code>ARM_CONTAINER</code>, you can use up to 16 GiB memory and 8 vCPUs on ARM-based processors for builds.</p></li>
420 /// </ul>
421 /// <p>For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment.types">On-demand environment types</a> in the <i>CodeBuild User Guide.</i></p>
422 /// This field is required.
423 pub fn compute_type(mut self, input: crate::types::ComputeType) -> Self {
424 self.compute_type = ::std::option::Option::Some(input);
425 self
426 }
427 /// <p>Information about the compute resources the compute fleet uses. Available values include:</p>
428 /// <ul>
429 /// <li>
430 /// <p><code>ATTRIBUTE_BASED_COMPUTE</code>: Specify the amount of vCPUs, memory, disk space, and the type of machine.</p><note>
431 /// <p>If you use <code>ATTRIBUTE_BASED_COMPUTE</code>, you must define your attributes by using <code>computeConfiguration</code>. CodeBuild will select the cheapest instance that satisfies your specified attributes. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment-reserved-capacity.types">Reserved capacity environment types</a> in the <i>CodeBuild User Guide</i>.</p>
432 /// </note></li>
433 /// <li>
434 /// <p><code>BUILD_GENERAL1_SMALL</code>: Use up to 4 GiB memory and 2 vCPUs for builds.</p></li>
435 /// <li>
436 /// <p><code>BUILD_GENERAL1_MEDIUM</code>: Use up to 8 GiB memory and 4 vCPUs for builds.</p></li>
437 /// <li>
438 /// <p><code>BUILD_GENERAL1_LARGE</code>: Use up to 16 GiB memory and 8 vCPUs for builds, depending on your environment type.</p></li>
439 /// <li>
440 /// <p><code>BUILD_GENERAL1_XLARGE</code>: Use up to 72 GiB memory and 36 vCPUs for builds, depending on your environment type.</p></li>
441 /// <li>
442 /// <p><code>BUILD_GENERAL1_2XLARGE</code>: Use up to 144 GiB memory, 72 vCPUs, and 824 GB of SSD storage for builds. This compute type supports Docker images up to 100 GB uncompressed.</p></li>
443 /// <li>
444 /// <p><code>BUILD_LAMBDA_1GB</code>: Use up to 1 GiB memory for builds. Only available for environment type <code>LINUX_LAMBDA_CONTAINER</code> and <code>ARM_LAMBDA_CONTAINER</code>.</p></li>
445 /// <li>
446 /// <p><code>BUILD_LAMBDA_2GB</code>: Use up to 2 GiB memory for builds. Only available for environment type <code>LINUX_LAMBDA_CONTAINER</code> and <code>ARM_LAMBDA_CONTAINER</code>.</p></li>
447 /// <li>
448 /// <p><code>BUILD_LAMBDA_4GB</code>: Use up to 4 GiB memory for builds. Only available for environment type <code>LINUX_LAMBDA_CONTAINER</code> and <code>ARM_LAMBDA_CONTAINER</code>.</p></li>
449 /// <li>
450 /// <p><code>BUILD_LAMBDA_8GB</code>: Use up to 8 GiB memory for builds. Only available for environment type <code>LINUX_LAMBDA_CONTAINER</code> and <code>ARM_LAMBDA_CONTAINER</code>.</p></li>
451 /// <li>
452 /// <p><code>BUILD_LAMBDA_10GB</code>: Use up to 10 GiB memory for builds. Only available for environment type <code>LINUX_LAMBDA_CONTAINER</code> and <code>ARM_LAMBDA_CONTAINER</code>.</p></li>
453 /// </ul>
454 /// <p>If you use <code>BUILD_GENERAL1_SMALL</code>:</p>
455 /// <ul>
456 /// <li>
457 /// <p>For environment type <code>LINUX_CONTAINER</code>, you can use up to 4 GiB memory and 2 vCPUs for builds.</p></li>
458 /// <li>
459 /// <p>For environment type <code>LINUX_GPU_CONTAINER</code>, you can use up to 16 GiB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.</p></li>
460 /// <li>
461 /// <p>For environment type <code>ARM_CONTAINER</code>, you can use up to 4 GiB memory and 2 vCPUs on ARM-based processors for builds.</p></li>
462 /// </ul>
463 /// <p>If you use <code>BUILD_GENERAL1_LARGE</code>:</p>
464 /// <ul>
465 /// <li>
466 /// <p>For environment type <code>LINUX_CONTAINER</code>, you can use up to 16 GiB memory and 8 vCPUs for builds.</p></li>
467 /// <li>
468 /// <p>For environment type <code>LINUX_GPU_CONTAINER</code>, you can use up to 255 GiB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.</p></li>
469 /// <li>
470 /// <p>For environment type <code>ARM_CONTAINER</code>, you can use up to 16 GiB memory and 8 vCPUs on ARM-based processors for builds.</p></li>
471 /// </ul>
472 /// <p>For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment.types">On-demand environment types</a> in the <i>CodeBuild User Guide.</i></p>
473 pub fn set_compute_type(mut self, input: ::std::option::Option<crate::types::ComputeType>) -> Self {
474 self.compute_type = input;
475 self
476 }
477 /// <p>Information about the compute resources the compute fleet uses. Available values include:</p>
478 /// <ul>
479 /// <li>
480 /// <p><code>ATTRIBUTE_BASED_COMPUTE</code>: Specify the amount of vCPUs, memory, disk space, and the type of machine.</p><note>
481 /// <p>If you use <code>ATTRIBUTE_BASED_COMPUTE</code>, you must define your attributes by using <code>computeConfiguration</code>. CodeBuild will select the cheapest instance that satisfies your specified attributes. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment-reserved-capacity.types">Reserved capacity environment types</a> in the <i>CodeBuild User Guide</i>.</p>
482 /// </note></li>
483 /// <li>
484 /// <p><code>BUILD_GENERAL1_SMALL</code>: Use up to 4 GiB memory and 2 vCPUs for builds.</p></li>
485 /// <li>
486 /// <p><code>BUILD_GENERAL1_MEDIUM</code>: Use up to 8 GiB memory and 4 vCPUs for builds.</p></li>
487 /// <li>
488 /// <p><code>BUILD_GENERAL1_LARGE</code>: Use up to 16 GiB memory and 8 vCPUs for builds, depending on your environment type.</p></li>
489 /// <li>
490 /// <p><code>BUILD_GENERAL1_XLARGE</code>: Use up to 72 GiB memory and 36 vCPUs for builds, depending on your environment type.</p></li>
491 /// <li>
492 /// <p><code>BUILD_GENERAL1_2XLARGE</code>: Use up to 144 GiB memory, 72 vCPUs, and 824 GB of SSD storage for builds. This compute type supports Docker images up to 100 GB uncompressed.</p></li>
493 /// <li>
494 /// <p><code>BUILD_LAMBDA_1GB</code>: Use up to 1 GiB memory for builds. Only available for environment type <code>LINUX_LAMBDA_CONTAINER</code> and <code>ARM_LAMBDA_CONTAINER</code>.</p></li>
495 /// <li>
496 /// <p><code>BUILD_LAMBDA_2GB</code>: Use up to 2 GiB memory for builds. Only available for environment type <code>LINUX_LAMBDA_CONTAINER</code> and <code>ARM_LAMBDA_CONTAINER</code>.</p></li>
497 /// <li>
498 /// <p><code>BUILD_LAMBDA_4GB</code>: Use up to 4 GiB memory for builds. Only available for environment type <code>LINUX_LAMBDA_CONTAINER</code> and <code>ARM_LAMBDA_CONTAINER</code>.</p></li>
499 /// <li>
500 /// <p><code>BUILD_LAMBDA_8GB</code>: Use up to 8 GiB memory for builds. Only available for environment type <code>LINUX_LAMBDA_CONTAINER</code> and <code>ARM_LAMBDA_CONTAINER</code>.</p></li>
501 /// <li>
502 /// <p><code>BUILD_LAMBDA_10GB</code>: Use up to 10 GiB memory for builds. Only available for environment type <code>LINUX_LAMBDA_CONTAINER</code> and <code>ARM_LAMBDA_CONTAINER</code>.</p></li>
503 /// </ul>
504 /// <p>If you use <code>BUILD_GENERAL1_SMALL</code>:</p>
505 /// <ul>
506 /// <li>
507 /// <p>For environment type <code>LINUX_CONTAINER</code>, you can use up to 4 GiB memory and 2 vCPUs for builds.</p></li>
508 /// <li>
509 /// <p>For environment type <code>LINUX_GPU_CONTAINER</code>, you can use up to 16 GiB memory, 4 vCPUs, and 1 NVIDIA A10G Tensor Core GPU for builds.</p></li>
510 /// <li>
511 /// <p>For environment type <code>ARM_CONTAINER</code>, you can use up to 4 GiB memory and 2 vCPUs on ARM-based processors for builds.</p></li>
512 /// </ul>
513 /// <p>If you use <code>BUILD_GENERAL1_LARGE</code>:</p>
514 /// <ul>
515 /// <li>
516 /// <p>For environment type <code>LINUX_CONTAINER</code>, you can use up to 16 GiB memory and 8 vCPUs for builds.</p></li>
517 /// <li>
518 /// <p>For environment type <code>LINUX_GPU_CONTAINER</code>, you can use up to 255 GiB memory, 32 vCPUs, and 4 NVIDIA Tesla V100 GPUs for builds.</p></li>
519 /// <li>
520 /// <p>For environment type <code>ARM_CONTAINER</code>, you can use up to 16 GiB memory and 8 vCPUs on ARM-based processors for builds.</p></li>
521 /// </ul>
522 /// <p>For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html#environment.types">On-demand environment types</a> in the <i>CodeBuild User Guide.</i></p>
523 pub fn get_compute_type(&self) -> &::std::option::Option<crate::types::ComputeType> {
524 &self.compute_type
525 }
526 /// <p>The compute configuration of the compute fleet. This is only required if <code>computeType</code> is set to <code>ATTRIBUTE_BASED_COMPUTE</code>.</p>
527 pub fn compute_configuration(mut self, input: crate::types::ComputeConfiguration) -> Self {
528 self.compute_configuration = ::std::option::Option::Some(input);
529 self
530 }
531 /// <p>The compute configuration of the compute fleet. This is only required if <code>computeType</code> is set to <code>ATTRIBUTE_BASED_COMPUTE</code>.</p>
532 pub fn set_compute_configuration(mut self, input: ::std::option::Option<crate::types::ComputeConfiguration>) -> Self {
533 self.compute_configuration = input;
534 self
535 }
536 /// <p>The compute configuration of the compute fleet. This is only required if <code>computeType</code> is set to <code>ATTRIBUTE_BASED_COMPUTE</code>.</p>
537 pub fn get_compute_configuration(&self) -> &::std::option::Option<crate::types::ComputeConfiguration> {
538 &self.compute_configuration
539 }
540 /// <p>The scaling configuration of the compute fleet.</p>
541 pub fn scaling_configuration(mut self, input: crate::types::ScalingConfigurationInput) -> Self {
542 self.scaling_configuration = ::std::option::Option::Some(input);
543 self
544 }
545 /// <p>The scaling configuration of the compute fleet.</p>
546 pub fn set_scaling_configuration(mut self, input: ::std::option::Option<crate::types::ScalingConfigurationInput>) -> Self {
547 self.scaling_configuration = input;
548 self
549 }
550 /// <p>The scaling configuration of the compute fleet.</p>
551 pub fn get_scaling_configuration(&self) -> &::std::option::Option<crate::types::ScalingConfigurationInput> {
552 &self.scaling_configuration
553 }
554 /// <p>The compute fleet overflow behavior.</p>
555 /// <ul>
556 /// <li>
557 /// <p>For overflow behavior <code>QUEUE</code>, your overflow builds need to wait on the existing fleet instance to become available.</p></li>
558 /// <li>
559 /// <p>For overflow behavior <code>ON_DEMAND</code>, your overflow builds run on CodeBuild on-demand.</p><note>
560 /// <p>If you choose to set your overflow behavior to on-demand while creating a VPC-connected fleet, make sure that you add the required VPC permissions to your project service role. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-create-vpc-network-interface">Example policy statement to allow CodeBuild access to Amazon Web Services services required to create a VPC network interface</a>.</p>
561 /// </note></li>
562 /// </ul>
563 pub fn overflow_behavior(mut self, input: crate::types::FleetOverflowBehavior) -> Self {
564 self.overflow_behavior = ::std::option::Option::Some(input);
565 self
566 }
567 /// <p>The compute fleet overflow behavior.</p>
568 /// <ul>
569 /// <li>
570 /// <p>For overflow behavior <code>QUEUE</code>, your overflow builds need to wait on the existing fleet instance to become available.</p></li>
571 /// <li>
572 /// <p>For overflow behavior <code>ON_DEMAND</code>, your overflow builds run on CodeBuild on-demand.</p><note>
573 /// <p>If you choose to set your overflow behavior to on-demand while creating a VPC-connected fleet, make sure that you add the required VPC permissions to your project service role. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-create-vpc-network-interface">Example policy statement to allow CodeBuild access to Amazon Web Services services required to create a VPC network interface</a>.</p>
574 /// </note></li>
575 /// </ul>
576 pub fn set_overflow_behavior(mut self, input: ::std::option::Option<crate::types::FleetOverflowBehavior>) -> Self {
577 self.overflow_behavior = input;
578 self
579 }
580 /// <p>The compute fleet overflow behavior.</p>
581 /// <ul>
582 /// <li>
583 /// <p>For overflow behavior <code>QUEUE</code>, your overflow builds need to wait on the existing fleet instance to become available.</p></li>
584 /// <li>
585 /// <p>For overflow behavior <code>ON_DEMAND</code>, your overflow builds run on CodeBuild on-demand.</p><note>
586 /// <p>If you choose to set your overflow behavior to on-demand while creating a VPC-connected fleet, make sure that you add the required VPC permissions to your project service role. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-create-vpc-network-interface">Example policy statement to allow CodeBuild access to Amazon Web Services services required to create a VPC network interface</a>.</p>
587 /// </note></li>
588 /// </ul>
589 pub fn get_overflow_behavior(&self) -> &::std::option::Option<crate::types::FleetOverflowBehavior> {
590 &self.overflow_behavior
591 }
592 /// <p>Information about the VPC configuration that CodeBuild accesses.</p>
593 pub fn vpc_config(mut self, input: crate::types::VpcConfig) -> Self {
594 self.vpc_config = ::std::option::Option::Some(input);
595 self
596 }
597 /// <p>Information about the VPC configuration that CodeBuild accesses.</p>
598 pub fn set_vpc_config(mut self, input: ::std::option::Option<crate::types::VpcConfig>) -> Self {
599 self.vpc_config = input;
600 self
601 }
602 /// <p>Information about the VPC configuration that CodeBuild accesses.</p>
603 pub fn get_vpc_config(&self) -> &::std::option::Option<crate::types::VpcConfig> {
604 &self.vpc_config
605 }
606 /// <p>The proxy configuration of the compute fleet.</p>
607 pub fn proxy_configuration(mut self, input: crate::types::ProxyConfiguration) -> Self {
608 self.proxy_configuration = ::std::option::Option::Some(input);
609 self
610 }
611 /// <p>The proxy configuration of the compute fleet.</p>
612 pub fn set_proxy_configuration(mut self, input: ::std::option::Option<crate::types::ProxyConfiguration>) -> Self {
613 self.proxy_configuration = input;
614 self
615 }
616 /// <p>The proxy configuration of the compute fleet.</p>
617 pub fn get_proxy_configuration(&self) -> &::std::option::Option<crate::types::ProxyConfiguration> {
618 &self.proxy_configuration
619 }
620 /// <p>The Amazon Machine Image (AMI) of the compute fleet.</p>
621 pub fn image_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
622 self.image_id = ::std::option::Option::Some(input.into());
623 self
624 }
625 /// <p>The Amazon Machine Image (AMI) of the compute fleet.</p>
626 pub fn set_image_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
627 self.image_id = input;
628 self
629 }
630 /// <p>The Amazon Machine Image (AMI) of the compute fleet.</p>
631 pub fn get_image_id(&self) -> &::std::option::Option<::std::string::String> {
632 &self.image_id
633 }
634 /// <p>The service role associated with the compute fleet. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-permission-policy-fleet-service-role.html"> Allow a user to add a permission policy for a fleet service role</a> in the <i>CodeBuild User Guide</i>.</p>
635 pub fn fleet_service_role(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
636 self.fleet_service_role = ::std::option::Option::Some(input.into());
637 self
638 }
639 /// <p>The service role associated with the compute fleet. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-permission-policy-fleet-service-role.html"> Allow a user to add a permission policy for a fleet service role</a> in the <i>CodeBuild User Guide</i>.</p>
640 pub fn set_fleet_service_role(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
641 self.fleet_service_role = input;
642 self
643 }
644 /// <p>The service role associated with the compute fleet. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html#customer-managed-policies-example-permission-policy-fleet-service-role.html"> Allow a user to add a permission policy for a fleet service role</a> in the <i>CodeBuild User Guide</i>.</p>
645 pub fn get_fleet_service_role(&self) -> &::std::option::Option<::std::string::String> {
646 &self.fleet_service_role
647 }
648 /// Appends an item to `tags`.
649 ///
650 /// To override the contents of this collection use [`set_tags`](Self::set_tags).
651 ///
652 /// <p>A list of tag key and value pairs associated with this compute fleet.</p>
653 /// <p>These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.</p>
654 pub fn tags(mut self, input: crate::types::Tag) -> Self {
655 let mut v = self.tags.unwrap_or_default();
656 v.push(input);
657 self.tags = ::std::option::Option::Some(v);
658 self
659 }
660 /// <p>A list of tag key and value pairs associated with this compute fleet.</p>
661 /// <p>These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.</p>
662 pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
663 self.tags = input;
664 self
665 }
666 /// <p>A list of tag key and value pairs associated with this compute fleet.</p>
667 /// <p>These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.</p>
668 pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
669 &self.tags
670 }
671 /// Consumes the builder and constructs a [`CreateFleetInput`](crate::operation::create_fleet::CreateFleetInput).
672 pub fn build(self) -> ::std::result::Result<crate::operation::create_fleet::CreateFleetInput, ::aws_smithy_types::error::operation::BuildError> {
673 ::std::result::Result::Ok(crate::operation::create_fleet::CreateFleetInput {
674 name: self.name,
675 base_capacity: self.base_capacity,
676 environment_type: self.environment_type,
677 compute_type: self.compute_type,
678 compute_configuration: self.compute_configuration,
679 scaling_configuration: self.scaling_configuration,
680 overflow_behavior: self.overflow_behavior,
681 vpc_config: self.vpc_config,
682 proxy_configuration: self.proxy_configuration,
683 image_id: self.image_id,
684 fleet_service_role: self.fleet_service_role,
685 tags: self.tags,
686 })
687 }
688}