1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateInfrastructureConfigurationInput {
/// <p>The name of the infrastructure configuration.</p>
pub name: ::std::option::Option<::std::string::String>,
/// <p>The description of the infrastructure configuration.</p>
pub description: ::std::option::Option<::std::string::String>,
/// <p>The instance types of the infrastructure configuration. You can specify one or more instance types to use for this build. The service will pick one of these instance types based on availability.</p>
pub instance_types: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <p>The instance profile to associate with the instance used to customize your Amazon EC2 AMI.</p>
pub instance_profile_name: ::std::option::Option<::std::string::String>,
/// <p>The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.</p>
pub security_group_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <p>The subnet ID in which to place the instance used to customize your Amazon EC2 AMI.</p>
pub subnet_id: ::std::option::Option<::std::string::String>,
/// <p>The logging configuration of the infrastructure configuration.</p>
pub logging: ::std::option::Option<crate::types::Logging>,
/// <p>The key pair of the infrastructure configuration. You can use this to log on to and debug the instance used to create your image.</p>
pub key_pair: ::std::option::Option<::std::string::String>,
/// <p>The terminate instance on failure setting of the infrastructure configuration. Set to false if you want Image Builder to retain the instance used to configure your AMI if the build or test phase of your workflow fails.</p>
pub terminate_instance_on_failure: ::std::option::Option<bool>,
/// <p>The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.</p><note>
/// <p>EC2 Image Builder is unable to send notifications to SNS topics that are encrypted using keys from other accounts. The key that is used to encrypt the SNS topic must reside in the account that the Image Builder service runs under.</p>
/// </note>
pub sns_topic_arn: ::std::option::Option<::std::string::String>,
/// <p>The metadata tags to assign to the Amazon EC2 instance that Image Builder launches during the build process. Tags are formatted as key value pairs.</p>
pub resource_tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
/// <p>The instance metadata options that you can set for the HTTP requests that pipeline builds use to launch EC2 build and test instances.</p>
pub instance_metadata_options: ::std::option::Option<crate::types::InstanceMetadataOptions>,
/// <p>The metadata tags to assign to the infrastructure configuration resource that Image Builder creates as output. Tags are formatted as key value pairs.</p>
pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
/// <p>The instance placement settings that define where the instances that are launched from your image will run.</p>
pub placement: ::std::option::Option<crate::types::Placement>,
/// <p>Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency</a> in the <i>Amazon EC2 API Reference</i>.</p>
pub client_token: ::std::option::Option<::std::string::String>,
}
impl CreateInfrastructureConfigurationInput {
/// <p>The name of the infrastructure configuration.</p>
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
/// <p>The description of the infrastructure configuration.</p>
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
/// <p>The instance types of the infrastructure configuration. You can specify one or more instance types to use for this build. The service will pick one of these instance types based on availability.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.instance_types.is_none()`.
pub fn instance_types(&self) -> &[::std::string::String] {
self.instance_types.as_deref().unwrap_or_default()
}
/// <p>The instance profile to associate with the instance used to customize your Amazon EC2 AMI.</p>
pub fn instance_profile_name(&self) -> ::std::option::Option<&str> {
self.instance_profile_name.as_deref()
}
/// <p>The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.security_group_ids.is_none()`.
pub fn security_group_ids(&self) -> &[::std::string::String] {
self.security_group_ids.as_deref().unwrap_or_default()
}
/// <p>The subnet ID in which to place the instance used to customize your Amazon EC2 AMI.</p>
pub fn subnet_id(&self) -> ::std::option::Option<&str> {
self.subnet_id.as_deref()
}
/// <p>The logging configuration of the infrastructure configuration.</p>
pub fn logging(&self) -> ::std::option::Option<&crate::types::Logging> {
self.logging.as_ref()
}
/// <p>The key pair of the infrastructure configuration. You can use this to log on to and debug the instance used to create your image.</p>
pub fn key_pair(&self) -> ::std::option::Option<&str> {
self.key_pair.as_deref()
}
/// <p>The terminate instance on failure setting of the infrastructure configuration. Set to false if you want Image Builder to retain the instance used to configure your AMI if the build or test phase of your workflow fails.</p>
pub fn terminate_instance_on_failure(&self) -> ::std::option::Option<bool> {
self.terminate_instance_on_failure
}
/// <p>The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.</p><note>
/// <p>EC2 Image Builder is unable to send notifications to SNS topics that are encrypted using keys from other accounts. The key that is used to encrypt the SNS topic must reside in the account that the Image Builder service runs under.</p>
/// </note>
pub fn sns_topic_arn(&self) -> ::std::option::Option<&str> {
self.sns_topic_arn.as_deref()
}
/// <p>The metadata tags to assign to the Amazon EC2 instance that Image Builder launches during the build process. Tags are formatted as key value pairs.</p>
pub fn resource_tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
self.resource_tags.as_ref()
}
/// <p>The instance metadata options that you can set for the HTTP requests that pipeline builds use to launch EC2 build and test instances.</p>
pub fn instance_metadata_options(&self) -> ::std::option::Option<&crate::types::InstanceMetadataOptions> {
self.instance_metadata_options.as_ref()
}
/// <p>The metadata tags to assign to the infrastructure configuration resource that Image Builder creates as output. Tags are formatted as key value pairs.</p>
pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
self.tags.as_ref()
}
/// <p>The instance placement settings that define where the instances that are launched from your image will run.</p>
pub fn placement(&self) -> ::std::option::Option<&crate::types::Placement> {
self.placement.as_ref()
}
/// <p>Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency</a> in the <i>Amazon EC2 API Reference</i>.</p>
pub fn client_token(&self) -> ::std::option::Option<&str> {
self.client_token.as_deref()
}
}
impl CreateInfrastructureConfigurationInput {
/// Creates a new builder-style object to manufacture [`CreateInfrastructureConfigurationInput`](crate::operation::create_infrastructure_configuration::CreateInfrastructureConfigurationInput).
pub fn builder() -> crate::operation::create_infrastructure_configuration::builders::CreateInfrastructureConfigurationInputBuilder {
crate::operation::create_infrastructure_configuration::builders::CreateInfrastructureConfigurationInputBuilder::default()
}
}
/// A builder for [`CreateInfrastructureConfigurationInput`](crate::operation::create_infrastructure_configuration::CreateInfrastructureConfigurationInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateInfrastructureConfigurationInputBuilder {
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) instance_types: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) instance_profile_name: ::std::option::Option<::std::string::String>,
pub(crate) security_group_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) subnet_id: ::std::option::Option<::std::string::String>,
pub(crate) logging: ::std::option::Option<crate::types::Logging>,
pub(crate) key_pair: ::std::option::Option<::std::string::String>,
pub(crate) terminate_instance_on_failure: ::std::option::Option<bool>,
pub(crate) sns_topic_arn: ::std::option::Option<::std::string::String>,
pub(crate) resource_tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
pub(crate) instance_metadata_options: ::std::option::Option<crate::types::InstanceMetadataOptions>,
pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
pub(crate) placement: ::std::option::Option<crate::types::Placement>,
pub(crate) client_token: ::std::option::Option<::std::string::String>,
}
impl CreateInfrastructureConfigurationInputBuilder {
/// <p>The name of the infrastructure configuration.</p>
/// This field is required.
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the infrastructure configuration.</p>
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
/// <p>The name of the infrastructure configuration.</p>
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
/// <p>The description of the infrastructure configuration.</p>
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
/// <p>The description of the infrastructure configuration.</p>
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
/// <p>The description of the infrastructure configuration.</p>
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
/// Appends an item to `instance_types`.
///
/// To override the contents of this collection use [`set_instance_types`](Self::set_instance_types).
///
/// <p>The instance types of the infrastructure configuration. You can specify one or more instance types to use for this build. The service will pick one of these instance types based on availability.</p>
pub fn instance_types(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.instance_types.unwrap_or_default();
v.push(input.into());
self.instance_types = ::std::option::Option::Some(v);
self
}
/// <p>The instance types of the infrastructure configuration. You can specify one or more instance types to use for this build. The service will pick one of these instance types based on availability.</p>
pub fn set_instance_types(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.instance_types = input;
self
}
/// <p>The instance types of the infrastructure configuration. You can specify one or more instance types to use for this build. The service will pick one of these instance types based on availability.</p>
pub fn get_instance_types(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.instance_types
}
/// <p>The instance profile to associate with the instance used to customize your Amazon EC2 AMI.</p>
/// This field is required.
pub fn instance_profile_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.instance_profile_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The instance profile to associate with the instance used to customize your Amazon EC2 AMI.</p>
pub fn set_instance_profile_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.instance_profile_name = input;
self
}
/// <p>The instance profile to associate with the instance used to customize your Amazon EC2 AMI.</p>
pub fn get_instance_profile_name(&self) -> &::std::option::Option<::std::string::String> {
&self.instance_profile_name
}
/// Appends an item to `security_group_ids`.
///
/// To override the contents of this collection use [`set_security_group_ids`](Self::set_security_group_ids).
///
/// <p>The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.</p>
pub fn security_group_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.security_group_ids.unwrap_or_default();
v.push(input.into());
self.security_group_ids = ::std::option::Option::Some(v);
self
}
/// <p>The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.</p>
pub fn set_security_group_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.security_group_ids = input;
self
}
/// <p>The security group IDs to associate with the instance used to customize your Amazon EC2 AMI.</p>
pub fn get_security_group_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.security_group_ids
}
/// <p>The subnet ID in which to place the instance used to customize your Amazon EC2 AMI.</p>
pub fn subnet_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.subnet_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The subnet ID in which to place the instance used to customize your Amazon EC2 AMI.</p>
pub fn set_subnet_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.subnet_id = input;
self
}
/// <p>The subnet ID in which to place the instance used to customize your Amazon EC2 AMI.</p>
pub fn get_subnet_id(&self) -> &::std::option::Option<::std::string::String> {
&self.subnet_id
}
/// <p>The logging configuration of the infrastructure configuration.</p>
pub fn logging(mut self, input: crate::types::Logging) -> Self {
self.logging = ::std::option::Option::Some(input);
self
}
/// <p>The logging configuration of the infrastructure configuration.</p>
pub fn set_logging(mut self, input: ::std::option::Option<crate::types::Logging>) -> Self {
self.logging = input;
self
}
/// <p>The logging configuration of the infrastructure configuration.</p>
pub fn get_logging(&self) -> &::std::option::Option<crate::types::Logging> {
&self.logging
}
/// <p>The key pair of the infrastructure configuration. You can use this to log on to and debug the instance used to create your image.</p>
pub fn key_pair(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.key_pair = ::std::option::Option::Some(input.into());
self
}
/// <p>The key pair of the infrastructure configuration. You can use this to log on to and debug the instance used to create your image.</p>
pub fn set_key_pair(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.key_pair = input;
self
}
/// <p>The key pair of the infrastructure configuration. You can use this to log on to and debug the instance used to create your image.</p>
pub fn get_key_pair(&self) -> &::std::option::Option<::std::string::String> {
&self.key_pair
}
/// <p>The terminate instance on failure setting of the infrastructure configuration. Set to false if you want Image Builder to retain the instance used to configure your AMI if the build or test phase of your workflow fails.</p>
pub fn terminate_instance_on_failure(mut self, input: bool) -> Self {
self.terminate_instance_on_failure = ::std::option::Option::Some(input);
self
}
/// <p>The terminate instance on failure setting of the infrastructure configuration. Set to false if you want Image Builder to retain the instance used to configure your AMI if the build or test phase of your workflow fails.</p>
pub fn set_terminate_instance_on_failure(mut self, input: ::std::option::Option<bool>) -> Self {
self.terminate_instance_on_failure = input;
self
}
/// <p>The terminate instance on failure setting of the infrastructure configuration. Set to false if you want Image Builder to retain the instance used to configure your AMI if the build or test phase of your workflow fails.</p>
pub fn get_terminate_instance_on_failure(&self) -> &::std::option::Option<bool> {
&self.terminate_instance_on_failure
}
/// <p>The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.</p><note>
/// <p>EC2 Image Builder is unable to send notifications to SNS topics that are encrypted using keys from other accounts. The key that is used to encrypt the SNS topic must reside in the account that the Image Builder service runs under.</p>
/// </note>
pub fn sns_topic_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.sns_topic_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.</p><note>
/// <p>EC2 Image Builder is unable to send notifications to SNS topics that are encrypted using keys from other accounts. The key that is used to encrypt the SNS topic must reside in the account that the Image Builder service runs under.</p>
/// </note>
pub fn set_sns_topic_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.sns_topic_arn = input;
self
}
/// <p>The Amazon Resource Name (ARN) for the SNS topic to which we send image build event notifications.</p><note>
/// <p>EC2 Image Builder is unable to send notifications to SNS topics that are encrypted using keys from other accounts. The key that is used to encrypt the SNS topic must reside in the account that the Image Builder service runs under.</p>
/// </note>
pub fn get_sns_topic_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.sns_topic_arn
}
/// Adds a key-value pair to `resource_tags`.
///
/// To override the contents of this collection use [`set_resource_tags`](Self::set_resource_tags).
///
/// <p>The metadata tags to assign to the Amazon EC2 instance that Image Builder launches during the build process. Tags are formatted as key value pairs.</p>
pub fn resource_tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut hash_map = self.resource_tags.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.resource_tags = ::std::option::Option::Some(hash_map);
self
}
/// <p>The metadata tags to assign to the Amazon EC2 instance that Image Builder launches during the build process. Tags are formatted as key value pairs.</p>
pub fn set_resource_tags(
mut self,
input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
) -> Self {
self.resource_tags = input;
self
}
/// <p>The metadata tags to assign to the Amazon EC2 instance that Image Builder launches during the build process. Tags are formatted as key value pairs.</p>
pub fn get_resource_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
&self.resource_tags
}
/// <p>The instance metadata options that you can set for the HTTP requests that pipeline builds use to launch EC2 build and test instances.</p>
pub fn instance_metadata_options(mut self, input: crate::types::InstanceMetadataOptions) -> Self {
self.instance_metadata_options = ::std::option::Option::Some(input);
self
}
/// <p>The instance metadata options that you can set for the HTTP requests that pipeline builds use to launch EC2 build and test instances.</p>
pub fn set_instance_metadata_options(mut self, input: ::std::option::Option<crate::types::InstanceMetadataOptions>) -> Self {
self.instance_metadata_options = input;
self
}
/// <p>The instance metadata options that you can set for the HTTP requests that pipeline builds use to launch EC2 build and test instances.</p>
pub fn get_instance_metadata_options(&self) -> &::std::option::Option<crate::types::InstanceMetadataOptions> {
&self.instance_metadata_options
}
/// Adds a key-value pair to `tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>The metadata tags to assign to the infrastructure configuration resource that Image Builder creates as output. Tags are formatted as key value pairs.</p>
pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut hash_map = self.tags.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.tags = ::std::option::Option::Some(hash_map);
self
}
/// <p>The metadata tags to assign to the infrastructure configuration resource that Image Builder creates as output. Tags are formatted as key value pairs.</p>
pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
self.tags = input;
self
}
/// <p>The metadata tags to assign to the infrastructure configuration resource that Image Builder creates as output. Tags are formatted as key value pairs.</p>
pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
&self.tags
}
/// <p>The instance placement settings that define where the instances that are launched from your image will run.</p>
pub fn placement(mut self, input: crate::types::Placement) -> Self {
self.placement = ::std::option::Option::Some(input);
self
}
/// <p>The instance placement settings that define where the instances that are launched from your image will run.</p>
pub fn set_placement(mut self, input: ::std::option::Option<crate::types::Placement>) -> Self {
self.placement = input;
self
}
/// <p>The instance placement settings that define where the instances that are launched from your image will run.</p>
pub fn get_placement(&self) -> &::std::option::Option<crate::types::Placement> {
&self.placement
}
/// <p>Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency</a> in the <i>Amazon EC2 API Reference</i>.</p>
/// This field is required.
pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.client_token = ::std::option::Option::Some(input.into());
self
}
/// <p>Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency</a> in the <i>Amazon EC2 API Reference</i>.</p>
pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.client_token = input;
self
}
/// <p>Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency</a> in the <i>Amazon EC2 API Reference</i>.</p>
pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
&self.client_token
}
/// Consumes the builder and constructs a [`CreateInfrastructureConfigurationInput`](crate::operation::create_infrastructure_configuration::CreateInfrastructureConfigurationInput).
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::create_infrastructure_configuration::CreateInfrastructureConfigurationInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(
crate::operation::create_infrastructure_configuration::CreateInfrastructureConfigurationInput {
name: self.name,
description: self.description,
instance_types: self.instance_types,
instance_profile_name: self.instance_profile_name,
security_group_ids: self.security_group_ids,
subnet_id: self.subnet_id,
logging: self.logging,
key_pair: self.key_pair,
terminate_instance_on_failure: self.terminate_instance_on_failure,
sns_topic_arn: self.sns_topic_arn,
resource_tags: self.resource_tags,
instance_metadata_options: self.instance_metadata_options,
tags: self.tags,
placement: self.placement,
client_token: self.client_token,
},
)
}
}