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
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>Configuration properties of a node.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Node {
/// <p>The unique identifier of the network that the node is on.</p>
pub network_id: ::std::option::Option<::std::string::String>,
/// <p>The unique identifier of the member to which the node belongs.</p>
/// <p>Applies only to Hyperledger Fabric.</p>
pub member_id: ::std::option::Option<::std::string::String>,
/// <p>The unique identifier of the node.</p>
pub id: ::std::option::Option<::std::string::String>,
/// <p>The instance type of the node.</p>
pub instance_type: ::std::option::Option<::std::string::String>,
/// <p>The Availability Zone in which the node exists. Required for Ethereum nodes.</p>
pub availability_zone: ::std::option::Option<::std::string::String>,
/// <p>Attributes of the blockchain framework being used.</p>
pub framework_attributes: ::std::option::Option<crate::types::NodeFrameworkAttributes>,
/// <p>Configuration properties for logging events associated with a peer node on a Hyperledger Fabric network on Managed Blockchain.</p>
pub log_publishing_configuration: ::std::option::Option<crate::types::NodeLogPublishingConfiguration>,
/// <p>The state database that the node uses. Values are <code>LevelDB</code> or <code>CouchDB</code>.</p>
/// <p>Applies only to Hyperledger Fabric.</p>
pub state_db: ::std::option::Option<crate::types::StateDbType>,
/// <p>The status of the node.</p>
/// <ul>
/// <li>
/// <p><code>CREATING</code> - The Amazon Web Services account is in the process of creating a node.</p></li>
/// <li>
/// <p><code>AVAILABLE</code> - The node has been created and can participate in the network.</p></li>
/// <li>
/// <p><code>UNHEALTHY</code> - The node is impaired and might not function as expected. Amazon Managed Blockchain automatically finds nodes in this state and tries to recover them. If a node is recoverable, it returns to <code>AVAILABLE</code>. Otherwise, it moves to <code>FAILED</code> status.</p></li>
/// <li>
/// <p><code>CREATE_FAILED</code> - The Amazon Web Services account attempted to create a node and creation failed.</p></li>
/// <li>
/// <p><code>UPDATING</code> - The node is in the process of being updated.</p></li>
/// <li>
/// <p><code>DELETING</code> - The node is in the process of being deleted.</p></li>
/// <li>
/// <p><code>DELETED</code> - The node can no longer participate on the network.</p></li>
/// <li>
/// <p><code>FAILED</code> - The node is no longer functional, cannot be recovered, and must be deleted.</p></li>
/// <li>
/// <p><code>INACCESSIBLE_ENCRYPTION_KEY</code> - The node is impaired and might not function as expected because it cannot access the specified customer managed key in KMS for encryption at rest. Either the KMS key was disabled or deleted, or the grants on the key were revoked.</p>
/// <p>The effect of disabling or deleting a key or of revoking a grant isn't immediate. It might take some time for the node resource to discover that the key is inaccessible. When a resource is in this state, we recommend deleting and recreating the resource.</p></li>
/// </ul>
pub status: ::std::option::Option<crate::types::NodeStatus>,
/// <p>The date and time that the node was created.</p>
pub creation_date: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>Tags assigned to the node. Each tag consists of a key and optional value.</p>
/// <p>For more information about tags, see <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ethereum-dev/tagging-resources.html">Tagging Resources</a> in the <i>Amazon Managed Blockchain Ethereum Developer Guide</i>, or <a href="https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/tagging-resources.html">Tagging Resources</a> in the <i>Amazon Managed Blockchain Hyperledger Fabric Developer Guide</i>.</p>
pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
/// <p>The Amazon Resource Name (ARN) of the node. For more information about ARNs and their format, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i>.</p>
pub arn: ::std::option::Option<::std::string::String>,
/// <p>The Amazon Resource Name (ARN) of the customer managed key in Key Management Service (KMS) that the node uses for encryption at rest. If the value of this parameter is <code>"AWS Owned KMS Key"</code>, the node uses an Amazon Web Services owned KMS key for encryption. The node inherits this parameter from the member that it belongs to.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/managed-blockchain-encryption-at-rest.html">Encryption at Rest</a> in the <i>Amazon Managed Blockchain Hyperledger Fabric Developer Guide</i>.</p>
/// <p>Applies only to Hyperledger Fabric.</p>
pub kms_key_arn: ::std::option::Option<::std::string::String>,
}
impl Node {
/// <p>The unique identifier of the network that the node is on.</p>
pub fn network_id(&self) -> ::std::option::Option<&str> {
self.network_id.as_deref()
}
/// <p>The unique identifier of the member to which the node belongs.</p>
/// <p>Applies only to Hyperledger Fabric.</p>
pub fn member_id(&self) -> ::std::option::Option<&str> {
self.member_id.as_deref()
}
/// <p>The unique identifier of the node.</p>
pub fn id(&self) -> ::std::option::Option<&str> {
self.id.as_deref()
}
/// <p>The instance type of the node.</p>
pub fn instance_type(&self) -> ::std::option::Option<&str> {
self.instance_type.as_deref()
}
/// <p>The Availability Zone in which the node exists. Required for Ethereum nodes.</p>
pub fn availability_zone(&self) -> ::std::option::Option<&str> {
self.availability_zone.as_deref()
}
/// <p>Attributes of the blockchain framework being used.</p>
pub fn framework_attributes(&self) -> ::std::option::Option<&crate::types::NodeFrameworkAttributes> {
self.framework_attributes.as_ref()
}
/// <p>Configuration properties for logging events associated with a peer node on a Hyperledger Fabric network on Managed Blockchain.</p>
pub fn log_publishing_configuration(&self) -> ::std::option::Option<&crate::types::NodeLogPublishingConfiguration> {
self.log_publishing_configuration.as_ref()
}
/// <p>The state database that the node uses. Values are <code>LevelDB</code> or <code>CouchDB</code>.</p>
/// <p>Applies only to Hyperledger Fabric.</p>
pub fn state_db(&self) -> ::std::option::Option<&crate::types::StateDbType> {
self.state_db.as_ref()
}
/// <p>The status of the node.</p>
/// <ul>
/// <li>
/// <p><code>CREATING</code> - The Amazon Web Services account is in the process of creating a node.</p></li>
/// <li>
/// <p><code>AVAILABLE</code> - The node has been created and can participate in the network.</p></li>
/// <li>
/// <p><code>UNHEALTHY</code> - The node is impaired and might not function as expected. Amazon Managed Blockchain automatically finds nodes in this state and tries to recover them. If a node is recoverable, it returns to <code>AVAILABLE</code>. Otherwise, it moves to <code>FAILED</code> status.</p></li>
/// <li>
/// <p><code>CREATE_FAILED</code> - The Amazon Web Services account attempted to create a node and creation failed.</p></li>
/// <li>
/// <p><code>UPDATING</code> - The node is in the process of being updated.</p></li>
/// <li>
/// <p><code>DELETING</code> - The node is in the process of being deleted.</p></li>
/// <li>
/// <p><code>DELETED</code> - The node can no longer participate on the network.</p></li>
/// <li>
/// <p><code>FAILED</code> - The node is no longer functional, cannot be recovered, and must be deleted.</p></li>
/// <li>
/// <p><code>INACCESSIBLE_ENCRYPTION_KEY</code> - The node is impaired and might not function as expected because it cannot access the specified customer managed key in KMS for encryption at rest. Either the KMS key was disabled or deleted, or the grants on the key were revoked.</p>
/// <p>The effect of disabling or deleting a key or of revoking a grant isn't immediate. It might take some time for the node resource to discover that the key is inaccessible. When a resource is in this state, we recommend deleting and recreating the resource.</p></li>
/// </ul>
pub fn status(&self) -> ::std::option::Option<&crate::types::NodeStatus> {
self.status.as_ref()
}
/// <p>The date and time that the node was created.</p>
pub fn creation_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.creation_date.as_ref()
}
/// <p>Tags assigned to the node. Each tag consists of a key and optional value.</p>
/// <p>For more information about tags, see <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ethereum-dev/tagging-resources.html">Tagging Resources</a> in the <i>Amazon Managed Blockchain Ethereum Developer Guide</i>, or <a href="https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/tagging-resources.html">Tagging Resources</a> in the <i>Amazon Managed Blockchain Hyperledger Fabric Developer Guide</i>.</p>
pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
self.tags.as_ref()
}
/// <p>The Amazon Resource Name (ARN) of the node. For more information about ARNs and their format, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i>.</p>
pub fn arn(&self) -> ::std::option::Option<&str> {
self.arn.as_deref()
}
/// <p>The Amazon Resource Name (ARN) of the customer managed key in Key Management Service (KMS) that the node uses for encryption at rest. If the value of this parameter is <code>"AWS Owned KMS Key"</code>, the node uses an Amazon Web Services owned KMS key for encryption. The node inherits this parameter from the member that it belongs to.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/managed-blockchain-encryption-at-rest.html">Encryption at Rest</a> in the <i>Amazon Managed Blockchain Hyperledger Fabric Developer Guide</i>.</p>
/// <p>Applies only to Hyperledger Fabric.</p>
pub fn kms_key_arn(&self) -> ::std::option::Option<&str> {
self.kms_key_arn.as_deref()
}
}
impl Node {
/// Creates a new builder-style object to manufacture [`Node`](crate::types::Node).
pub fn builder() -> crate::types::builders::NodeBuilder {
crate::types::builders::NodeBuilder::default()
}
}
/// A builder for [`Node`](crate::types::Node).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct NodeBuilder {
pub(crate) network_id: ::std::option::Option<::std::string::String>,
pub(crate) member_id: ::std::option::Option<::std::string::String>,
pub(crate) id: ::std::option::Option<::std::string::String>,
pub(crate) instance_type: ::std::option::Option<::std::string::String>,
pub(crate) availability_zone: ::std::option::Option<::std::string::String>,
pub(crate) framework_attributes: ::std::option::Option<crate::types::NodeFrameworkAttributes>,
pub(crate) log_publishing_configuration: ::std::option::Option<crate::types::NodeLogPublishingConfiguration>,
pub(crate) state_db: ::std::option::Option<crate::types::StateDbType>,
pub(crate) status: ::std::option::Option<crate::types::NodeStatus>,
pub(crate) creation_date: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
pub(crate) arn: ::std::option::Option<::std::string::String>,
pub(crate) kms_key_arn: ::std::option::Option<::std::string::String>,
}
impl NodeBuilder {
/// <p>The unique identifier of the network that the node is on.</p>
pub fn network_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.network_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The unique identifier of the network that the node is on.</p>
pub fn set_network_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.network_id = input;
self
}
/// <p>The unique identifier of the network that the node is on.</p>
pub fn get_network_id(&self) -> &::std::option::Option<::std::string::String> {
&self.network_id
}
/// <p>The unique identifier of the member to which the node belongs.</p>
/// <p>Applies only to Hyperledger Fabric.</p>
pub fn member_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.member_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The unique identifier of the member to which the node belongs.</p>
/// <p>Applies only to Hyperledger Fabric.</p>
pub fn set_member_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.member_id = input;
self
}
/// <p>The unique identifier of the member to which the node belongs.</p>
/// <p>Applies only to Hyperledger Fabric.</p>
pub fn get_member_id(&self) -> &::std::option::Option<::std::string::String> {
&self.member_id
}
/// <p>The unique identifier of the node.</p>
pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.id = ::std::option::Option::Some(input.into());
self
}
/// <p>The unique identifier of the node.</p>
pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.id = input;
self
}
/// <p>The unique identifier of the node.</p>
pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
&self.id
}
/// <p>The instance type of the node.</p>
pub fn instance_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.instance_type = ::std::option::Option::Some(input.into());
self
}
/// <p>The instance type of the node.</p>
pub fn set_instance_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.instance_type = input;
self
}
/// <p>The instance type of the node.</p>
pub fn get_instance_type(&self) -> &::std::option::Option<::std::string::String> {
&self.instance_type
}
/// <p>The Availability Zone in which the node exists. Required for Ethereum nodes.</p>
pub fn availability_zone(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.availability_zone = ::std::option::Option::Some(input.into());
self
}
/// <p>The Availability Zone in which the node exists. Required for Ethereum nodes.</p>
pub fn set_availability_zone(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.availability_zone = input;
self
}
/// <p>The Availability Zone in which the node exists. Required for Ethereum nodes.</p>
pub fn get_availability_zone(&self) -> &::std::option::Option<::std::string::String> {
&self.availability_zone
}
/// <p>Attributes of the blockchain framework being used.</p>
pub fn framework_attributes(mut self, input: crate::types::NodeFrameworkAttributes) -> Self {
self.framework_attributes = ::std::option::Option::Some(input);
self
}
/// <p>Attributes of the blockchain framework being used.</p>
pub fn set_framework_attributes(mut self, input: ::std::option::Option<crate::types::NodeFrameworkAttributes>) -> Self {
self.framework_attributes = input;
self
}
/// <p>Attributes of the blockchain framework being used.</p>
pub fn get_framework_attributes(&self) -> &::std::option::Option<crate::types::NodeFrameworkAttributes> {
&self.framework_attributes
}
/// <p>Configuration properties for logging events associated with a peer node on a Hyperledger Fabric network on Managed Blockchain.</p>
pub fn log_publishing_configuration(mut self, input: crate::types::NodeLogPublishingConfiguration) -> Self {
self.log_publishing_configuration = ::std::option::Option::Some(input);
self
}
/// <p>Configuration properties for logging events associated with a peer node on a Hyperledger Fabric network on Managed Blockchain.</p>
pub fn set_log_publishing_configuration(mut self, input: ::std::option::Option<crate::types::NodeLogPublishingConfiguration>) -> Self {
self.log_publishing_configuration = input;
self
}
/// <p>Configuration properties for logging events associated with a peer node on a Hyperledger Fabric network on Managed Blockchain.</p>
pub fn get_log_publishing_configuration(&self) -> &::std::option::Option<crate::types::NodeLogPublishingConfiguration> {
&self.log_publishing_configuration
}
/// <p>The state database that the node uses. Values are <code>LevelDB</code> or <code>CouchDB</code>.</p>
/// <p>Applies only to Hyperledger Fabric.</p>
pub fn state_db(mut self, input: crate::types::StateDbType) -> Self {
self.state_db = ::std::option::Option::Some(input);
self
}
/// <p>The state database that the node uses. Values are <code>LevelDB</code> or <code>CouchDB</code>.</p>
/// <p>Applies only to Hyperledger Fabric.</p>
pub fn set_state_db(mut self, input: ::std::option::Option<crate::types::StateDbType>) -> Self {
self.state_db = input;
self
}
/// <p>The state database that the node uses. Values are <code>LevelDB</code> or <code>CouchDB</code>.</p>
/// <p>Applies only to Hyperledger Fabric.</p>
pub fn get_state_db(&self) -> &::std::option::Option<crate::types::StateDbType> {
&self.state_db
}
/// <p>The status of the node.</p>
/// <ul>
/// <li>
/// <p><code>CREATING</code> - The Amazon Web Services account is in the process of creating a node.</p></li>
/// <li>
/// <p><code>AVAILABLE</code> - The node has been created and can participate in the network.</p></li>
/// <li>
/// <p><code>UNHEALTHY</code> - The node is impaired and might not function as expected. Amazon Managed Blockchain automatically finds nodes in this state and tries to recover them. If a node is recoverable, it returns to <code>AVAILABLE</code>. Otherwise, it moves to <code>FAILED</code> status.</p></li>
/// <li>
/// <p><code>CREATE_FAILED</code> - The Amazon Web Services account attempted to create a node and creation failed.</p></li>
/// <li>
/// <p><code>UPDATING</code> - The node is in the process of being updated.</p></li>
/// <li>
/// <p><code>DELETING</code> - The node is in the process of being deleted.</p></li>
/// <li>
/// <p><code>DELETED</code> - The node can no longer participate on the network.</p></li>
/// <li>
/// <p><code>FAILED</code> - The node is no longer functional, cannot be recovered, and must be deleted.</p></li>
/// <li>
/// <p><code>INACCESSIBLE_ENCRYPTION_KEY</code> - The node is impaired and might not function as expected because it cannot access the specified customer managed key in KMS for encryption at rest. Either the KMS key was disabled or deleted, or the grants on the key were revoked.</p>
/// <p>The effect of disabling or deleting a key or of revoking a grant isn't immediate. It might take some time for the node resource to discover that the key is inaccessible. When a resource is in this state, we recommend deleting and recreating the resource.</p></li>
/// </ul>
pub fn status(mut self, input: crate::types::NodeStatus) -> Self {
self.status = ::std::option::Option::Some(input);
self
}
/// <p>The status of the node.</p>
/// <ul>
/// <li>
/// <p><code>CREATING</code> - The Amazon Web Services account is in the process of creating a node.</p></li>
/// <li>
/// <p><code>AVAILABLE</code> - The node has been created and can participate in the network.</p></li>
/// <li>
/// <p><code>UNHEALTHY</code> - The node is impaired and might not function as expected. Amazon Managed Blockchain automatically finds nodes in this state and tries to recover them. If a node is recoverable, it returns to <code>AVAILABLE</code>. Otherwise, it moves to <code>FAILED</code> status.</p></li>
/// <li>
/// <p><code>CREATE_FAILED</code> - The Amazon Web Services account attempted to create a node and creation failed.</p></li>
/// <li>
/// <p><code>UPDATING</code> - The node is in the process of being updated.</p></li>
/// <li>
/// <p><code>DELETING</code> - The node is in the process of being deleted.</p></li>
/// <li>
/// <p><code>DELETED</code> - The node can no longer participate on the network.</p></li>
/// <li>
/// <p><code>FAILED</code> - The node is no longer functional, cannot be recovered, and must be deleted.</p></li>
/// <li>
/// <p><code>INACCESSIBLE_ENCRYPTION_KEY</code> - The node is impaired and might not function as expected because it cannot access the specified customer managed key in KMS for encryption at rest. Either the KMS key was disabled or deleted, or the grants on the key were revoked.</p>
/// <p>The effect of disabling or deleting a key or of revoking a grant isn't immediate. It might take some time for the node resource to discover that the key is inaccessible. When a resource is in this state, we recommend deleting and recreating the resource.</p></li>
/// </ul>
pub fn set_status(mut self, input: ::std::option::Option<crate::types::NodeStatus>) -> Self {
self.status = input;
self
}
/// <p>The status of the node.</p>
/// <ul>
/// <li>
/// <p><code>CREATING</code> - The Amazon Web Services account is in the process of creating a node.</p></li>
/// <li>
/// <p><code>AVAILABLE</code> - The node has been created and can participate in the network.</p></li>
/// <li>
/// <p><code>UNHEALTHY</code> - The node is impaired and might not function as expected. Amazon Managed Blockchain automatically finds nodes in this state and tries to recover them. If a node is recoverable, it returns to <code>AVAILABLE</code>. Otherwise, it moves to <code>FAILED</code> status.</p></li>
/// <li>
/// <p><code>CREATE_FAILED</code> - The Amazon Web Services account attempted to create a node and creation failed.</p></li>
/// <li>
/// <p><code>UPDATING</code> - The node is in the process of being updated.</p></li>
/// <li>
/// <p><code>DELETING</code> - The node is in the process of being deleted.</p></li>
/// <li>
/// <p><code>DELETED</code> - The node can no longer participate on the network.</p></li>
/// <li>
/// <p><code>FAILED</code> - The node is no longer functional, cannot be recovered, and must be deleted.</p></li>
/// <li>
/// <p><code>INACCESSIBLE_ENCRYPTION_KEY</code> - The node is impaired and might not function as expected because it cannot access the specified customer managed key in KMS for encryption at rest. Either the KMS key was disabled or deleted, or the grants on the key were revoked.</p>
/// <p>The effect of disabling or deleting a key or of revoking a grant isn't immediate. It might take some time for the node resource to discover that the key is inaccessible. When a resource is in this state, we recommend deleting and recreating the resource.</p></li>
/// </ul>
pub fn get_status(&self) -> &::std::option::Option<crate::types::NodeStatus> {
&self.status
}
/// <p>The date and time that the node was created.</p>
pub fn creation_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.creation_date = ::std::option::Option::Some(input);
self
}
/// <p>The date and time that the node was created.</p>
pub fn set_creation_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.creation_date = input;
self
}
/// <p>The date and time that the node was created.</p>
pub fn get_creation_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.creation_date
}
/// Adds a key-value pair to `tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>Tags assigned to the node. Each tag consists of a key and optional value.</p>
/// <p>For more information about tags, see <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ethereum-dev/tagging-resources.html">Tagging Resources</a> in the <i>Amazon Managed Blockchain Ethereum Developer Guide</i>, or <a href="https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/tagging-resources.html">Tagging Resources</a> in the <i>Amazon Managed Blockchain Hyperledger Fabric Developer Guide</i>.</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>Tags assigned to the node. Each tag consists of a key and optional value.</p>
/// <p>For more information about tags, see <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ethereum-dev/tagging-resources.html">Tagging Resources</a> in the <i>Amazon Managed Blockchain Ethereum Developer Guide</i>, or <a href="https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/tagging-resources.html">Tagging Resources</a> in the <i>Amazon Managed Blockchain Hyperledger Fabric Developer Guide</i>.</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>Tags assigned to the node. Each tag consists of a key and optional value.</p>
/// <p>For more information about tags, see <a href="https://docs.aws.amazon.com/managed-blockchain/latest/ethereum-dev/tagging-resources.html">Tagging Resources</a> in the <i>Amazon Managed Blockchain Ethereum Developer Guide</i>, or <a href="https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/tagging-resources.html">Tagging Resources</a> in the <i>Amazon Managed Blockchain Hyperledger Fabric Developer Guide</i>.</p>
pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
&self.tags
}
/// <p>The Amazon Resource Name (ARN) of the node. For more information about ARNs and their format, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i>.</p>
pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the node. For more information about ARNs and their format, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i>.</p>
pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.arn = input;
self
}
/// <p>The Amazon Resource Name (ARN) of the node. For more information about ARNs and their format, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i>.</p>
pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.arn
}
/// <p>The Amazon Resource Name (ARN) of the customer managed key in Key Management Service (KMS) that the node uses for encryption at rest. If the value of this parameter is <code>"AWS Owned KMS Key"</code>, the node uses an Amazon Web Services owned KMS key for encryption. The node inherits this parameter from the member that it belongs to.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/managed-blockchain-encryption-at-rest.html">Encryption at Rest</a> in the <i>Amazon Managed Blockchain Hyperledger Fabric Developer Guide</i>.</p>
/// <p>Applies only to Hyperledger Fabric.</p>
pub fn kms_key_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.kms_key_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the customer managed key in Key Management Service (KMS) that the node uses for encryption at rest. If the value of this parameter is <code>"AWS Owned KMS Key"</code>, the node uses an Amazon Web Services owned KMS key for encryption. The node inherits this parameter from the member that it belongs to.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/managed-blockchain-encryption-at-rest.html">Encryption at Rest</a> in the <i>Amazon Managed Blockchain Hyperledger Fabric Developer Guide</i>.</p>
/// <p>Applies only to Hyperledger Fabric.</p>
pub fn set_kms_key_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.kms_key_arn = input;
self
}
/// <p>The Amazon Resource Name (ARN) of the customer managed key in Key Management Service (KMS) that the node uses for encryption at rest. If the value of this parameter is <code>"AWS Owned KMS Key"</code>, the node uses an Amazon Web Services owned KMS key for encryption. The node inherits this parameter from the member that it belongs to.</p>
/// <p>For more information, see <a href="https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/managed-blockchain-encryption-at-rest.html">Encryption at Rest</a> in the <i>Amazon Managed Blockchain Hyperledger Fabric Developer Guide</i>.</p>
/// <p>Applies only to Hyperledger Fabric.</p>
pub fn get_kms_key_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.kms_key_arn
}
/// Consumes the builder and constructs a [`Node`](crate::types::Node).
pub fn build(self) -> crate::types::Node {
crate::types::Node {
network_id: self.network_id,
member_id: self.member_id,
id: self.id,
instance_type: self.instance_type,
availability_zone: self.availability_zone,
framework_attributes: self.framework_attributes,
log_publishing_configuration: self.log_publishing_configuration,
state_db: self.state_db,
status: self.status,
creation_date: self.creation_date,
tags: self.tags,
arn: self.arn,
kms_key_arn: self.kms_key_arn,
}
}
}