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
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
//! Types for the `Cassandra` service.
/// The [`AWS::Cassandra::Keyspace`](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cassandra-keyspace.html) resource type.
#[derive(Debug, Default)]
pub struct Keyspace {
properties: KeyspaceProperties
}
/// Properties for the `Keyspace` resource.
#[derive(Debug, Default)]
pub struct KeyspaceProperties {
/// Property [`KeyspaceName`](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cassandra-keyspace.html#cfn-cassandra-keyspace-keyspacename).
///
/// Update type: _Immutable_.
/// AWS CloudFormation replaces the resource when you change this property.
pub keyspace_name: Option<::Value<String>>,
/// Property [`Tags`](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cassandra-keyspace.html#cfn-cassandra-keyspace-tags).
///
/// Update type: _Mutable_.
/// AWS CloudFormation doesn't replace the resource when you change this property.
pub tags: Option<::ValueList<::Tag>>,
}
impl ::serde::Serialize for KeyspaceProperties {
fn serialize<S: ::serde::Serializer>(&self, s: S) -> Result<S::Ok, S::Error> {
let mut map = ::serde::Serializer::serialize_map(s, None)?;
if let Some(ref keyspace_name) = self.keyspace_name {
::serde::ser::SerializeMap::serialize_entry(&mut map, "KeyspaceName", keyspace_name)?;
}
if let Some(ref tags) = self.tags {
::serde::ser::SerializeMap::serialize_entry(&mut map, "Tags", tags)?;
}
::serde::ser::SerializeMap::end(map)
}
}
impl<'de> ::serde::Deserialize<'de> for KeyspaceProperties {
fn deserialize<D: ::serde::Deserializer<'de>>(d: D) -> Result<KeyspaceProperties, D::Error> {
struct Visitor;
impl<'de> ::serde::de::Visitor<'de> for Visitor {
type Value = KeyspaceProperties;
fn expecting(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
write!(f, "a struct of type KeyspaceProperties")
}
fn visit_map<A: ::serde::de::MapAccess<'de>>(self, mut map: A) -> Result<Self::Value, A::Error> {
let mut keyspace_name: Option<::Value<String>> = None;
let mut tags: Option<::ValueList<::Tag>> = None;
while let Some(__cfn_key) = ::serde::de::MapAccess::next_key::<String>(&mut map)? {
match __cfn_key.as_ref() {
"KeyspaceName" => {
keyspace_name = ::serde::de::MapAccess::next_value(&mut map)?;
}
"Tags" => {
tags = ::serde::de::MapAccess::next_value(&mut map)?;
}
_ => {}
}
}
Ok(KeyspaceProperties {
keyspace_name: keyspace_name,
tags: tags,
})
}
}
d.deserialize_map(Visitor)
}
}
impl ::Resource for Keyspace {
type Properties = KeyspaceProperties;
const TYPE: &'static str = "AWS::Cassandra::Keyspace";
fn properties(&self) -> &KeyspaceProperties {
&self.properties
}
fn properties_mut(&mut self) -> &mut KeyspaceProperties {
&mut self.properties
}
}
impl ::private::Sealed for Keyspace {}
impl From<KeyspaceProperties> for Keyspace {
fn from(properties: KeyspaceProperties) -> Keyspace {
Keyspace { properties }
}
}
/// The [`AWS::Cassandra::Table`](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cassandra-table.html) resource type.
#[derive(Debug, Default)]
pub struct Table {
properties: TableProperties
}
/// Properties for the `Table` resource.
#[derive(Debug, Default)]
pub struct TableProperties {
/// Property [`BillingMode`](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cassandra-table.html#cfn-cassandra-table-billingmode).
///
/// Update type: _Mutable_.
/// AWS CloudFormation doesn't replace the resource when you change this property.
pub billing_mode: Option<::Value<self::table::BillingMode>>,
/// Property [`ClusteringKeyColumns`](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cassandra-table.html#cfn-cassandra-table-clusteringkeycolumns).
///
/// Update type: _Immutable_.
/// AWS CloudFormation replaces the resource when you change this property.
pub clustering_key_columns: Option<::ValueList<self::table::ClusteringKeyColumn>>,
/// Property [`KeyspaceName`](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cassandra-table.html#cfn-cassandra-table-keyspacename).
///
/// Update type: _Immutable_.
/// AWS CloudFormation replaces the resource when you change this property.
pub keyspace_name: ::Value<String>,
/// Property [`PartitionKeyColumns`](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cassandra-table.html#cfn-cassandra-table-partitionkeycolumns).
///
/// Update type: _Immutable_.
/// AWS CloudFormation replaces the resource when you change this property.
pub partition_key_columns: ::ValueList<self::table::Column>,
/// Property [`PointInTimeRecoveryEnabled`](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cassandra-table.html#cfn-cassandra-table-pointintimerecoveryenabled).
///
/// Update type: _Mutable_.
/// AWS CloudFormation doesn't replace the resource when you change this property.
pub point_in_time_recovery_enabled: Option<::Value<bool>>,
/// Property [`RegularColumns`](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cassandra-table.html#cfn-cassandra-table-regularcolumns).
///
/// Update type: _Mutable_.
/// AWS CloudFormation doesn't replace the resource when you change this property.
pub regular_columns: Option<::ValueList<self::table::Column>>,
/// Property [`TableName`](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cassandra-table.html#cfn-cassandra-table-tablename).
///
/// Update type: _Immutable_.
/// AWS CloudFormation replaces the resource when you change this property.
pub table_name: Option<::Value<String>>,
/// Property [`Tags`](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cassandra-table.html#cfn-cassandra-table-tags).
///
/// Update type: _Mutable_.
/// AWS CloudFormation doesn't replace the resource when you change this property.
pub tags: Option<::ValueList<::Tag>>,
}
impl ::serde::Serialize for TableProperties {
fn serialize<S: ::serde::Serializer>(&self, s: S) -> Result<S::Ok, S::Error> {
let mut map = ::serde::Serializer::serialize_map(s, None)?;
if let Some(ref billing_mode) = self.billing_mode {
::serde::ser::SerializeMap::serialize_entry(&mut map, "BillingMode", billing_mode)?;
}
if let Some(ref clustering_key_columns) = self.clustering_key_columns {
::serde::ser::SerializeMap::serialize_entry(&mut map, "ClusteringKeyColumns", clustering_key_columns)?;
}
::serde::ser::SerializeMap::serialize_entry(&mut map, "KeyspaceName", &self.keyspace_name)?;
::serde::ser::SerializeMap::serialize_entry(&mut map, "PartitionKeyColumns", &self.partition_key_columns)?;
if let Some(ref point_in_time_recovery_enabled) = self.point_in_time_recovery_enabled {
::serde::ser::SerializeMap::serialize_entry(&mut map, "PointInTimeRecoveryEnabled", point_in_time_recovery_enabled)?;
}
if let Some(ref regular_columns) = self.regular_columns {
::serde::ser::SerializeMap::serialize_entry(&mut map, "RegularColumns", regular_columns)?;
}
if let Some(ref table_name) = self.table_name {
::serde::ser::SerializeMap::serialize_entry(&mut map, "TableName", table_name)?;
}
if let Some(ref tags) = self.tags {
::serde::ser::SerializeMap::serialize_entry(&mut map, "Tags", tags)?;
}
::serde::ser::SerializeMap::end(map)
}
}
impl<'de> ::serde::Deserialize<'de> for TableProperties {
fn deserialize<D: ::serde::Deserializer<'de>>(d: D) -> Result<TableProperties, D::Error> {
struct Visitor;
impl<'de> ::serde::de::Visitor<'de> for Visitor {
type Value = TableProperties;
fn expecting(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
write!(f, "a struct of type TableProperties")
}
fn visit_map<A: ::serde::de::MapAccess<'de>>(self, mut map: A) -> Result<Self::Value, A::Error> {
let mut billing_mode: Option<::Value<self::table::BillingMode>> = None;
let mut clustering_key_columns: Option<::ValueList<self::table::ClusteringKeyColumn>> = None;
let mut keyspace_name: Option<::Value<String>> = None;
let mut partition_key_columns: Option<::ValueList<self::table::Column>> = None;
let mut point_in_time_recovery_enabled: Option<::Value<bool>> = None;
let mut regular_columns: Option<::ValueList<self::table::Column>> = None;
let mut table_name: Option<::Value<String>> = None;
let mut tags: Option<::ValueList<::Tag>> = None;
while let Some(__cfn_key) = ::serde::de::MapAccess::next_key::<String>(&mut map)? {
match __cfn_key.as_ref() {
"BillingMode" => {
billing_mode = ::serde::de::MapAccess::next_value(&mut map)?;
}
"ClusteringKeyColumns" => {
clustering_key_columns = ::serde::de::MapAccess::next_value(&mut map)?;
}
"KeyspaceName" => {
keyspace_name = ::serde::de::MapAccess::next_value(&mut map)?;
}
"PartitionKeyColumns" => {
partition_key_columns = ::serde::de::MapAccess::next_value(&mut map)?;
}
"PointInTimeRecoveryEnabled" => {
point_in_time_recovery_enabled = ::serde::de::MapAccess::next_value(&mut map)?;
}
"RegularColumns" => {
regular_columns = ::serde::de::MapAccess::next_value(&mut map)?;
}
"TableName" => {
table_name = ::serde::de::MapAccess::next_value(&mut map)?;
}
"Tags" => {
tags = ::serde::de::MapAccess::next_value(&mut map)?;
}
_ => {}
}
}
Ok(TableProperties {
billing_mode: billing_mode,
clustering_key_columns: clustering_key_columns,
keyspace_name: keyspace_name.ok_or(::serde::de::Error::missing_field("KeyspaceName"))?,
partition_key_columns: partition_key_columns.ok_or(::serde::de::Error::missing_field("PartitionKeyColumns"))?,
point_in_time_recovery_enabled: point_in_time_recovery_enabled,
regular_columns: regular_columns,
table_name: table_name,
tags: tags,
})
}
}
d.deserialize_map(Visitor)
}
}
impl ::Resource for Table {
type Properties = TableProperties;
const TYPE: &'static str = "AWS::Cassandra::Table";
fn properties(&self) -> &TableProperties {
&self.properties
}
fn properties_mut(&mut self) -> &mut TableProperties {
&mut self.properties
}
}
impl ::private::Sealed for Table {}
impl From<TableProperties> for Table {
fn from(properties: TableProperties) -> Table {
Table { properties }
}
}
pub mod table {
//! Property types for the `Table` resource.
/// The [`AWS::Cassandra::Table.BillingMode`](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cassandra-table-billingmode.html) property type.
#[derive(Debug, Default)]
pub struct BillingMode {
/// Property [`Mode`](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cassandra-table-billingmode.html#cfn-cassandra-table-billingmode-mode).
///
/// Update type: _Mutable_.
/// AWS CloudFormation doesn't replace the resource when you change this property.
pub mode: ::Value<String>,
/// Property [`ProvisionedThroughput`](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cassandra-table-billingmode.html#cfn-cassandra-table-billingmode-provisionedthroughput).
///
/// Update type: _Mutable_.
/// AWS CloudFormation doesn't replace the resource when you change this property.
pub provisioned_throughput: Option<::Value<ProvisionedThroughput>>,
}
impl ::codec::SerializeValue for BillingMode {
fn serialize<S: ::serde::Serializer>(&self, s: S) -> Result<S::Ok, S::Error> {
let mut map = ::serde::Serializer::serialize_map(s, None)?;
::serde::ser::SerializeMap::serialize_entry(&mut map, "Mode", &self.mode)?;
if let Some(ref provisioned_throughput) = self.provisioned_throughput {
::serde::ser::SerializeMap::serialize_entry(&mut map, "ProvisionedThroughput", provisioned_throughput)?;
}
::serde::ser::SerializeMap::end(map)
}
}
impl ::codec::DeserializeValue for BillingMode {
fn deserialize<'de, D: ::serde::Deserializer<'de>>(d: D) -> Result<BillingMode, D::Error> {
struct Visitor;
impl<'de> ::serde::de::Visitor<'de> for Visitor {
type Value = BillingMode;
fn expecting(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
write!(f, "a struct of type BillingMode")
}
fn visit_map<A: ::serde::de::MapAccess<'de>>(self, mut map: A) -> Result<Self::Value, A::Error> {
let mut mode: Option<::Value<String>> = None;
let mut provisioned_throughput: Option<::Value<ProvisionedThroughput>> = None;
while let Some(__cfn_key) = ::serde::de::MapAccess::next_key::<String>(&mut map)? {
match __cfn_key.as_ref() {
"Mode" => {
mode = ::serde::de::MapAccess::next_value(&mut map)?;
}
"ProvisionedThroughput" => {
provisioned_throughput = ::serde::de::MapAccess::next_value(&mut map)?;
}
_ => {}
}
}
Ok(BillingMode {
mode: mode.ok_or(::serde::de::Error::missing_field("Mode"))?,
provisioned_throughput: provisioned_throughput,
})
}
}
d.deserialize_map(Visitor)
}
}
/// The [`AWS::Cassandra::Table.ClusteringKeyColumn`](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cassandra-table-clusteringkeycolumn.html) property type.
#[derive(Debug, Default)]
pub struct ClusteringKeyColumn {
/// Property [`Column`](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cassandra-table-clusteringkeycolumn.html#cfn-cassandra-table-clusteringkeycolumn-column).
///
/// Update type: _Immutable_.
/// AWS CloudFormation replaces the resource when you change this property.
pub column: ::Value<Column>,
/// Property [`OrderBy`](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cassandra-table-clusteringkeycolumn.html#cfn-cassandra-table-clusteringkeycolumn-orderby).
///
/// Update type: _Immutable_.
/// AWS CloudFormation replaces the resource when you change this property.
pub order_by: Option<::Value<String>>,
}
impl ::codec::SerializeValue for ClusteringKeyColumn {
fn serialize<S: ::serde::Serializer>(&self, s: S) -> Result<S::Ok, S::Error> {
let mut map = ::serde::Serializer::serialize_map(s, None)?;
::serde::ser::SerializeMap::serialize_entry(&mut map, "Column", &self.column)?;
if let Some(ref order_by) = self.order_by {
::serde::ser::SerializeMap::serialize_entry(&mut map, "OrderBy", order_by)?;
}
::serde::ser::SerializeMap::end(map)
}
}
impl ::codec::DeserializeValue for ClusteringKeyColumn {
fn deserialize<'de, D: ::serde::Deserializer<'de>>(d: D) -> Result<ClusteringKeyColumn, D::Error> {
struct Visitor;
impl<'de> ::serde::de::Visitor<'de> for Visitor {
type Value = ClusteringKeyColumn;
fn expecting(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
write!(f, "a struct of type ClusteringKeyColumn")
}
fn visit_map<A: ::serde::de::MapAccess<'de>>(self, mut map: A) -> Result<Self::Value, A::Error> {
let mut column: Option<::Value<Column>> = None;
let mut order_by: Option<::Value<String>> = None;
while let Some(__cfn_key) = ::serde::de::MapAccess::next_key::<String>(&mut map)? {
match __cfn_key.as_ref() {
"Column" => {
column = ::serde::de::MapAccess::next_value(&mut map)?;
}
"OrderBy" => {
order_by = ::serde::de::MapAccess::next_value(&mut map)?;
}
_ => {}
}
}
Ok(ClusteringKeyColumn {
column: column.ok_or(::serde::de::Error::missing_field("Column"))?,
order_by: order_by,
})
}
}
d.deserialize_map(Visitor)
}
}
/// The [`AWS::Cassandra::Table.Column`](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cassandra-table-column.html) property type.
#[derive(Debug, Default)]
pub struct Column {
/// Property [`ColumnName`](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cassandra-table-column.html#cfn-cassandra-table-column-columnname).
///
/// Update type: _Mutable_.
/// AWS CloudFormation doesn't replace the resource when you change this property.
pub column_name: ::Value<String>,
/// Property [`ColumnType`](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cassandra-table-column.html#cfn-cassandra-table-column-columntype).
///
/// Update type: _Mutable_.
/// AWS CloudFormation doesn't replace the resource when you change this property.
pub column_type: ::Value<String>,
}
impl ::codec::SerializeValue for Column {
fn serialize<S: ::serde::Serializer>(&self, s: S) -> Result<S::Ok, S::Error> {
let mut map = ::serde::Serializer::serialize_map(s, None)?;
::serde::ser::SerializeMap::serialize_entry(&mut map, "ColumnName", &self.column_name)?;
::serde::ser::SerializeMap::serialize_entry(&mut map, "ColumnType", &self.column_type)?;
::serde::ser::SerializeMap::end(map)
}
}
impl ::codec::DeserializeValue for Column {
fn deserialize<'de, D: ::serde::Deserializer<'de>>(d: D) -> Result<Column, D::Error> {
struct Visitor;
impl<'de> ::serde::de::Visitor<'de> for Visitor {
type Value = Column;
fn expecting(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
write!(f, "a struct of type Column")
}
fn visit_map<A: ::serde::de::MapAccess<'de>>(self, mut map: A) -> Result<Self::Value, A::Error> {
let mut column_name: Option<::Value<String>> = None;
let mut column_type: Option<::Value<String>> = None;
while let Some(__cfn_key) = ::serde::de::MapAccess::next_key::<String>(&mut map)? {
match __cfn_key.as_ref() {
"ColumnName" => {
column_name = ::serde::de::MapAccess::next_value(&mut map)?;
}
"ColumnType" => {
column_type = ::serde::de::MapAccess::next_value(&mut map)?;
}
_ => {}
}
}
Ok(Column {
column_name: column_name.ok_or(::serde::de::Error::missing_field("ColumnName"))?,
column_type: column_type.ok_or(::serde::de::Error::missing_field("ColumnType"))?,
})
}
}
d.deserialize_map(Visitor)
}
}
/// The [`AWS::Cassandra::Table.ProvisionedThroughput`](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cassandra-table-provisionedthroughput.html) property type.
#[derive(Debug, Default)]
pub struct ProvisionedThroughput {
/// Property [`ReadCapacityUnits`](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cassandra-table-provisionedthroughput.html#cfn-cassandra-table-provisionedthroughput-readcapacityunits).
///
/// Update type: _Mutable_.
/// AWS CloudFormation doesn't replace the resource when you change this property.
pub read_capacity_units: ::Value<u32>,
/// Property [`WriteCapacityUnits`](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cassandra-table-provisionedthroughput.html#cfn-cassandra-table-provisionedthroughput-writecapacityunits).
///
/// Update type: _Mutable_.
/// AWS CloudFormation doesn't replace the resource when you change this property.
pub write_capacity_units: ::Value<u32>,
}
impl ::codec::SerializeValue for ProvisionedThroughput {
fn serialize<S: ::serde::Serializer>(&self, s: S) -> Result<S::Ok, S::Error> {
let mut map = ::serde::Serializer::serialize_map(s, None)?;
::serde::ser::SerializeMap::serialize_entry(&mut map, "ReadCapacityUnits", &self.read_capacity_units)?;
::serde::ser::SerializeMap::serialize_entry(&mut map, "WriteCapacityUnits", &self.write_capacity_units)?;
::serde::ser::SerializeMap::end(map)
}
}
impl ::codec::DeserializeValue for ProvisionedThroughput {
fn deserialize<'de, D: ::serde::Deserializer<'de>>(d: D) -> Result<ProvisionedThroughput, D::Error> {
struct Visitor;
impl<'de> ::serde::de::Visitor<'de> for Visitor {
type Value = ProvisionedThroughput;
fn expecting(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
write!(f, "a struct of type ProvisionedThroughput")
}
fn visit_map<A: ::serde::de::MapAccess<'de>>(self, mut map: A) -> Result<Self::Value, A::Error> {
let mut read_capacity_units: Option<::Value<u32>> = None;
let mut write_capacity_units: Option<::Value<u32>> = None;
while let Some(__cfn_key) = ::serde::de::MapAccess::next_key::<String>(&mut map)? {
match __cfn_key.as_ref() {
"ReadCapacityUnits" => {
read_capacity_units = ::serde::de::MapAccess::next_value(&mut map)?;
}
"WriteCapacityUnits" => {
write_capacity_units = ::serde::de::MapAccess::next_value(&mut map)?;
}
_ => {}
}
}
Ok(ProvisionedThroughput {
read_capacity_units: read_capacity_units.ok_or(::serde::de::Error::missing_field("ReadCapacityUnits"))?,
write_capacity_units: write_capacity_units.ok_or(::serde::de::Error::missing_field("WriteCapacityUnits"))?,
})
}
}
d.deserialize_map(Visitor)
}
}
}