pub struct Builder { /* private fields */ }
Expand description

A builder for MutableClusterInfo.

Implementations§

Appends an item to broker_ebs_volume_info.

To override the contents of this collection use set_broker_ebs_volume_info.

Specifies the size of the EBS volume and the ID of the associated broker.

Specifies the size of the EBS volume and the ID of the associated broker.

Examples found in repository?
src/json_deser.rs (lines 4168-4170)
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
pub(crate) fn deser_structure_crate_model_mutable_cluster_info<'a, I>(
    tokens: &mut std::iter::Peekable<I>,
) -> Result<
    Option<crate::model::MutableClusterInfo>,
    aws_smithy_json::deserialize::error::DeserializeError,
>
where
    I: Iterator<
        Item = Result<
            aws_smithy_json::deserialize::Token<'a>,
            aws_smithy_json::deserialize::error::DeserializeError,
        >,
    >,
{
    match tokens.next().transpose()? {
        Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
        Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
            #[allow(unused_mut)]
            let mut builder = crate::model::mutable_cluster_info::Builder::default();
            loop {
                match tokens.next().transpose()? {
                    Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
                    Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                        match key.to_unescaped()?.as_ref() {
                            "brokerEBSVolumeInfo" => {
                                builder = builder.set_broker_ebs_volume_info(
                                    crate::json_deser::deser_list_com_amazonaws_kafka___list_of_broker_ebs_volume_info(tokens)?
                                );
                            }
                            "configurationInfo" => {
                                builder = builder.set_configuration_info(
                                    crate::json_deser::deser_structure_crate_model_configuration_info(tokens)?
                                );
                            }
                            "numberOfBrokerNodes" => {
                                builder = builder.set_number_of_broker_nodes(
                                    aws_smithy_json::deserialize::token::expect_number_or_null(
                                        tokens.next(),
                                    )?
                                    .map(i32::try_from)
                                    .transpose()?,
                                );
                            }
                            "enhancedMonitoring" => {
                                builder = builder.set_enhanced_monitoring(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| {
                                        s.to_unescaped().map(|u| {
                                            crate::model::EnhancedMonitoring::from(u.as_ref())
                                        })
                                    })
                                    .transpose()?,
                                );
                            }
                            "openMonitoring" => {
                                builder = builder.set_open_monitoring(
                                    crate::json_deser::deser_structure_crate_model_open_monitoring(
                                        tokens,
                                    )?,
                                );
                            }
                            "kafkaVersion" => {
                                builder = builder.set_kafka_version(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                                    .transpose()?,
                                );
                            }
                            "loggingInfo" => {
                                builder = builder.set_logging_info(
                                    crate::json_deser::deser_structure_crate_model_logging_info(
                                        tokens,
                                    )?,
                                );
                            }
                            "instanceType" => {
                                builder = builder.set_instance_type(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                                    .transpose()?,
                                );
                            }
                            "clientAuthentication" => {
                                builder = builder.set_client_authentication(
                                    crate::json_deser::deser_structure_crate_model_client_authentication(tokens)?
                                );
                            }
                            "encryptionInfo" => {
                                builder = builder.set_encryption_info(
                                    crate::json_deser::deser_structure_crate_model_encryption_info(
                                        tokens,
                                    )?,
                                );
                            }
                            "connectivityInfo" => {
                                builder = builder.set_connectivity_info(
                                    crate::json_deser::deser_structure_crate_model_connectivity_info(tokens)?
                                );
                            }
                            _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                        }
                    }
                    other => {
                        return Err(
                            aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                                "expected object key or end object, found: {:?}",
                                other
                            )),
                        )
                    }
                }
            }
            Ok(Some(builder.build()))
        }
        _ => Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "expected start object or null",
            ),
        ),
    }
}

Information about the changes in the configuration of the brokers.

Information about the changes in the configuration of the brokers.

Examples found in repository?
src/json_deser.rs (lines 4173-4175)
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
pub(crate) fn deser_structure_crate_model_mutable_cluster_info<'a, I>(
    tokens: &mut std::iter::Peekable<I>,
) -> Result<
    Option<crate::model::MutableClusterInfo>,
    aws_smithy_json::deserialize::error::DeserializeError,
>
where
    I: Iterator<
        Item = Result<
            aws_smithy_json::deserialize::Token<'a>,
            aws_smithy_json::deserialize::error::DeserializeError,
        >,
    >,
{
    match tokens.next().transpose()? {
        Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
        Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
            #[allow(unused_mut)]
            let mut builder = crate::model::mutable_cluster_info::Builder::default();
            loop {
                match tokens.next().transpose()? {
                    Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
                    Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                        match key.to_unescaped()?.as_ref() {
                            "brokerEBSVolumeInfo" => {
                                builder = builder.set_broker_ebs_volume_info(
                                    crate::json_deser::deser_list_com_amazonaws_kafka___list_of_broker_ebs_volume_info(tokens)?
                                );
                            }
                            "configurationInfo" => {
                                builder = builder.set_configuration_info(
                                    crate::json_deser::deser_structure_crate_model_configuration_info(tokens)?
                                );
                            }
                            "numberOfBrokerNodes" => {
                                builder = builder.set_number_of_broker_nodes(
                                    aws_smithy_json::deserialize::token::expect_number_or_null(
                                        tokens.next(),
                                    )?
                                    .map(i32::try_from)
                                    .transpose()?,
                                );
                            }
                            "enhancedMonitoring" => {
                                builder = builder.set_enhanced_monitoring(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| {
                                        s.to_unescaped().map(|u| {
                                            crate::model::EnhancedMonitoring::from(u.as_ref())
                                        })
                                    })
                                    .transpose()?,
                                );
                            }
                            "openMonitoring" => {
                                builder = builder.set_open_monitoring(
                                    crate::json_deser::deser_structure_crate_model_open_monitoring(
                                        tokens,
                                    )?,
                                );
                            }
                            "kafkaVersion" => {
                                builder = builder.set_kafka_version(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                                    .transpose()?,
                                );
                            }
                            "loggingInfo" => {
                                builder = builder.set_logging_info(
                                    crate::json_deser::deser_structure_crate_model_logging_info(
                                        tokens,
                                    )?,
                                );
                            }
                            "instanceType" => {
                                builder = builder.set_instance_type(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                                    .transpose()?,
                                );
                            }
                            "clientAuthentication" => {
                                builder = builder.set_client_authentication(
                                    crate::json_deser::deser_structure_crate_model_client_authentication(tokens)?
                                );
                            }
                            "encryptionInfo" => {
                                builder = builder.set_encryption_info(
                                    crate::json_deser::deser_structure_crate_model_encryption_info(
                                        tokens,
                                    )?,
                                );
                            }
                            "connectivityInfo" => {
                                builder = builder.set_connectivity_info(
                                    crate::json_deser::deser_structure_crate_model_connectivity_info(tokens)?
                                );
                            }
                            _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                        }
                    }
                    other => {
                        return Err(
                            aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                                "expected object key or end object, found: {:?}",
                                other
                            )),
                        )
                    }
                }
            }
            Ok(Some(builder.build()))
        }
        _ => Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "expected start object or null",
            ),
        ),
    }
}

The number of broker nodes in the cluster.

The number of broker nodes in the cluster.

Examples found in repository?
src/json_deser.rs (lines 4178-4184)
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
pub(crate) fn deser_structure_crate_model_mutable_cluster_info<'a, I>(
    tokens: &mut std::iter::Peekable<I>,
) -> Result<
    Option<crate::model::MutableClusterInfo>,
    aws_smithy_json::deserialize::error::DeserializeError,
>
where
    I: Iterator<
        Item = Result<
            aws_smithy_json::deserialize::Token<'a>,
            aws_smithy_json::deserialize::error::DeserializeError,
        >,
    >,
{
    match tokens.next().transpose()? {
        Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
        Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
            #[allow(unused_mut)]
            let mut builder = crate::model::mutable_cluster_info::Builder::default();
            loop {
                match tokens.next().transpose()? {
                    Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
                    Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                        match key.to_unescaped()?.as_ref() {
                            "brokerEBSVolumeInfo" => {
                                builder = builder.set_broker_ebs_volume_info(
                                    crate::json_deser::deser_list_com_amazonaws_kafka___list_of_broker_ebs_volume_info(tokens)?
                                );
                            }
                            "configurationInfo" => {
                                builder = builder.set_configuration_info(
                                    crate::json_deser::deser_structure_crate_model_configuration_info(tokens)?
                                );
                            }
                            "numberOfBrokerNodes" => {
                                builder = builder.set_number_of_broker_nodes(
                                    aws_smithy_json::deserialize::token::expect_number_or_null(
                                        tokens.next(),
                                    )?
                                    .map(i32::try_from)
                                    .transpose()?,
                                );
                            }
                            "enhancedMonitoring" => {
                                builder = builder.set_enhanced_monitoring(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| {
                                        s.to_unescaped().map(|u| {
                                            crate::model::EnhancedMonitoring::from(u.as_ref())
                                        })
                                    })
                                    .transpose()?,
                                );
                            }
                            "openMonitoring" => {
                                builder = builder.set_open_monitoring(
                                    crate::json_deser::deser_structure_crate_model_open_monitoring(
                                        tokens,
                                    )?,
                                );
                            }
                            "kafkaVersion" => {
                                builder = builder.set_kafka_version(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                                    .transpose()?,
                                );
                            }
                            "loggingInfo" => {
                                builder = builder.set_logging_info(
                                    crate::json_deser::deser_structure_crate_model_logging_info(
                                        tokens,
                                    )?,
                                );
                            }
                            "instanceType" => {
                                builder = builder.set_instance_type(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                                    .transpose()?,
                                );
                            }
                            "clientAuthentication" => {
                                builder = builder.set_client_authentication(
                                    crate::json_deser::deser_structure_crate_model_client_authentication(tokens)?
                                );
                            }
                            "encryptionInfo" => {
                                builder = builder.set_encryption_info(
                                    crate::json_deser::deser_structure_crate_model_encryption_info(
                                        tokens,
                                    )?,
                                );
                            }
                            "connectivityInfo" => {
                                builder = builder.set_connectivity_info(
                                    crate::json_deser::deser_structure_crate_model_connectivity_info(tokens)?
                                );
                            }
                            _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                        }
                    }
                    other => {
                        return Err(
                            aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                                "expected object key or end object, found: {:?}",
                                other
                            )),
                        )
                    }
                }
            }
            Ok(Some(builder.build()))
        }
        _ => Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "expected start object or null",
            ),
        ),
    }
}

Specifies which Apache Kafka metrics Amazon MSK gathers and sends to Amazon CloudWatch for this cluster.

Specifies which Apache Kafka metrics Amazon MSK gathers and sends to Amazon CloudWatch for this cluster.

Examples found in repository?
src/json_deser.rs (lines 4187-4197)
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
pub(crate) fn deser_structure_crate_model_mutable_cluster_info<'a, I>(
    tokens: &mut std::iter::Peekable<I>,
) -> Result<
    Option<crate::model::MutableClusterInfo>,
    aws_smithy_json::deserialize::error::DeserializeError,
>
where
    I: Iterator<
        Item = Result<
            aws_smithy_json::deserialize::Token<'a>,
            aws_smithy_json::deserialize::error::DeserializeError,
        >,
    >,
{
    match tokens.next().transpose()? {
        Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
        Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
            #[allow(unused_mut)]
            let mut builder = crate::model::mutable_cluster_info::Builder::default();
            loop {
                match tokens.next().transpose()? {
                    Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
                    Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                        match key.to_unescaped()?.as_ref() {
                            "brokerEBSVolumeInfo" => {
                                builder = builder.set_broker_ebs_volume_info(
                                    crate::json_deser::deser_list_com_amazonaws_kafka___list_of_broker_ebs_volume_info(tokens)?
                                );
                            }
                            "configurationInfo" => {
                                builder = builder.set_configuration_info(
                                    crate::json_deser::deser_structure_crate_model_configuration_info(tokens)?
                                );
                            }
                            "numberOfBrokerNodes" => {
                                builder = builder.set_number_of_broker_nodes(
                                    aws_smithy_json::deserialize::token::expect_number_or_null(
                                        tokens.next(),
                                    )?
                                    .map(i32::try_from)
                                    .transpose()?,
                                );
                            }
                            "enhancedMonitoring" => {
                                builder = builder.set_enhanced_monitoring(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| {
                                        s.to_unescaped().map(|u| {
                                            crate::model::EnhancedMonitoring::from(u.as_ref())
                                        })
                                    })
                                    .transpose()?,
                                );
                            }
                            "openMonitoring" => {
                                builder = builder.set_open_monitoring(
                                    crate::json_deser::deser_structure_crate_model_open_monitoring(
                                        tokens,
                                    )?,
                                );
                            }
                            "kafkaVersion" => {
                                builder = builder.set_kafka_version(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                                    .transpose()?,
                                );
                            }
                            "loggingInfo" => {
                                builder = builder.set_logging_info(
                                    crate::json_deser::deser_structure_crate_model_logging_info(
                                        tokens,
                                    )?,
                                );
                            }
                            "instanceType" => {
                                builder = builder.set_instance_type(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                                    .transpose()?,
                                );
                            }
                            "clientAuthentication" => {
                                builder = builder.set_client_authentication(
                                    crate::json_deser::deser_structure_crate_model_client_authentication(tokens)?
                                );
                            }
                            "encryptionInfo" => {
                                builder = builder.set_encryption_info(
                                    crate::json_deser::deser_structure_crate_model_encryption_info(
                                        tokens,
                                    )?,
                                );
                            }
                            "connectivityInfo" => {
                                builder = builder.set_connectivity_info(
                                    crate::json_deser::deser_structure_crate_model_connectivity_info(tokens)?
                                );
                            }
                            _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                        }
                    }
                    other => {
                        return Err(
                            aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                                "expected object key or end object, found: {:?}",
                                other
                            )),
                        )
                    }
                }
            }
            Ok(Some(builder.build()))
        }
        _ => Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "expected start object or null",
            ),
        ),
    }
}

The settings for open monitoring.

The settings for open monitoring.

Examples found in repository?
src/json_deser.rs (lines 4200-4204)
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
pub(crate) fn deser_structure_crate_model_mutable_cluster_info<'a, I>(
    tokens: &mut std::iter::Peekable<I>,
) -> Result<
    Option<crate::model::MutableClusterInfo>,
    aws_smithy_json::deserialize::error::DeserializeError,
>
where
    I: Iterator<
        Item = Result<
            aws_smithy_json::deserialize::Token<'a>,
            aws_smithy_json::deserialize::error::DeserializeError,
        >,
    >,
{
    match tokens.next().transpose()? {
        Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
        Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
            #[allow(unused_mut)]
            let mut builder = crate::model::mutable_cluster_info::Builder::default();
            loop {
                match tokens.next().transpose()? {
                    Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
                    Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                        match key.to_unescaped()?.as_ref() {
                            "brokerEBSVolumeInfo" => {
                                builder = builder.set_broker_ebs_volume_info(
                                    crate::json_deser::deser_list_com_amazonaws_kafka___list_of_broker_ebs_volume_info(tokens)?
                                );
                            }
                            "configurationInfo" => {
                                builder = builder.set_configuration_info(
                                    crate::json_deser::deser_structure_crate_model_configuration_info(tokens)?
                                );
                            }
                            "numberOfBrokerNodes" => {
                                builder = builder.set_number_of_broker_nodes(
                                    aws_smithy_json::deserialize::token::expect_number_or_null(
                                        tokens.next(),
                                    )?
                                    .map(i32::try_from)
                                    .transpose()?,
                                );
                            }
                            "enhancedMonitoring" => {
                                builder = builder.set_enhanced_monitoring(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| {
                                        s.to_unescaped().map(|u| {
                                            crate::model::EnhancedMonitoring::from(u.as_ref())
                                        })
                                    })
                                    .transpose()?,
                                );
                            }
                            "openMonitoring" => {
                                builder = builder.set_open_monitoring(
                                    crate::json_deser::deser_structure_crate_model_open_monitoring(
                                        tokens,
                                    )?,
                                );
                            }
                            "kafkaVersion" => {
                                builder = builder.set_kafka_version(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                                    .transpose()?,
                                );
                            }
                            "loggingInfo" => {
                                builder = builder.set_logging_info(
                                    crate::json_deser::deser_structure_crate_model_logging_info(
                                        tokens,
                                    )?,
                                );
                            }
                            "instanceType" => {
                                builder = builder.set_instance_type(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                                    .transpose()?,
                                );
                            }
                            "clientAuthentication" => {
                                builder = builder.set_client_authentication(
                                    crate::json_deser::deser_structure_crate_model_client_authentication(tokens)?
                                );
                            }
                            "encryptionInfo" => {
                                builder = builder.set_encryption_info(
                                    crate::json_deser::deser_structure_crate_model_encryption_info(
                                        tokens,
                                    )?,
                                );
                            }
                            "connectivityInfo" => {
                                builder = builder.set_connectivity_info(
                                    crate::json_deser::deser_structure_crate_model_connectivity_info(tokens)?
                                );
                            }
                            _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                        }
                    }
                    other => {
                        return Err(
                            aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                                "expected object key or end object, found: {:?}",
                                other
                            )),
                        )
                    }
                }
            }
            Ok(Some(builder.build()))
        }
        _ => Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "expected start object or null",
            ),
        ),
    }
}

The Apache Kafka version.

The Apache Kafka version.

Examples found in repository?
src/json_deser.rs (lines 4207-4213)
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
pub(crate) fn deser_structure_crate_model_mutable_cluster_info<'a, I>(
    tokens: &mut std::iter::Peekable<I>,
) -> Result<
    Option<crate::model::MutableClusterInfo>,
    aws_smithy_json::deserialize::error::DeserializeError,
>
where
    I: Iterator<
        Item = Result<
            aws_smithy_json::deserialize::Token<'a>,
            aws_smithy_json::deserialize::error::DeserializeError,
        >,
    >,
{
    match tokens.next().transpose()? {
        Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
        Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
            #[allow(unused_mut)]
            let mut builder = crate::model::mutable_cluster_info::Builder::default();
            loop {
                match tokens.next().transpose()? {
                    Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
                    Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                        match key.to_unescaped()?.as_ref() {
                            "brokerEBSVolumeInfo" => {
                                builder = builder.set_broker_ebs_volume_info(
                                    crate::json_deser::deser_list_com_amazonaws_kafka___list_of_broker_ebs_volume_info(tokens)?
                                );
                            }
                            "configurationInfo" => {
                                builder = builder.set_configuration_info(
                                    crate::json_deser::deser_structure_crate_model_configuration_info(tokens)?
                                );
                            }
                            "numberOfBrokerNodes" => {
                                builder = builder.set_number_of_broker_nodes(
                                    aws_smithy_json::deserialize::token::expect_number_or_null(
                                        tokens.next(),
                                    )?
                                    .map(i32::try_from)
                                    .transpose()?,
                                );
                            }
                            "enhancedMonitoring" => {
                                builder = builder.set_enhanced_monitoring(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| {
                                        s.to_unescaped().map(|u| {
                                            crate::model::EnhancedMonitoring::from(u.as_ref())
                                        })
                                    })
                                    .transpose()?,
                                );
                            }
                            "openMonitoring" => {
                                builder = builder.set_open_monitoring(
                                    crate::json_deser::deser_structure_crate_model_open_monitoring(
                                        tokens,
                                    )?,
                                );
                            }
                            "kafkaVersion" => {
                                builder = builder.set_kafka_version(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                                    .transpose()?,
                                );
                            }
                            "loggingInfo" => {
                                builder = builder.set_logging_info(
                                    crate::json_deser::deser_structure_crate_model_logging_info(
                                        tokens,
                                    )?,
                                );
                            }
                            "instanceType" => {
                                builder = builder.set_instance_type(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                                    .transpose()?,
                                );
                            }
                            "clientAuthentication" => {
                                builder = builder.set_client_authentication(
                                    crate::json_deser::deser_structure_crate_model_client_authentication(tokens)?
                                );
                            }
                            "encryptionInfo" => {
                                builder = builder.set_encryption_info(
                                    crate::json_deser::deser_structure_crate_model_encryption_info(
                                        tokens,
                                    )?,
                                );
                            }
                            "connectivityInfo" => {
                                builder = builder.set_connectivity_info(
                                    crate::json_deser::deser_structure_crate_model_connectivity_info(tokens)?
                                );
                            }
                            _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                        }
                    }
                    other => {
                        return Err(
                            aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                                "expected object key or end object, found: {:?}",
                                other
                            )),
                        )
                    }
                }
            }
            Ok(Some(builder.build()))
        }
        _ => Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "expected start object or null",
            ),
        ),
    }
}

You can configure your MSK cluster to send broker logs to different destination types. This is a container for the configuration details related to broker logs.

You can configure your MSK cluster to send broker logs to different destination types. This is a container for the configuration details related to broker logs.

Examples found in repository?
src/json_deser.rs (lines 4216-4220)
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
pub(crate) fn deser_structure_crate_model_mutable_cluster_info<'a, I>(
    tokens: &mut std::iter::Peekable<I>,
) -> Result<
    Option<crate::model::MutableClusterInfo>,
    aws_smithy_json::deserialize::error::DeserializeError,
>
where
    I: Iterator<
        Item = Result<
            aws_smithy_json::deserialize::Token<'a>,
            aws_smithy_json::deserialize::error::DeserializeError,
        >,
    >,
{
    match tokens.next().transpose()? {
        Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
        Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
            #[allow(unused_mut)]
            let mut builder = crate::model::mutable_cluster_info::Builder::default();
            loop {
                match tokens.next().transpose()? {
                    Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
                    Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                        match key.to_unescaped()?.as_ref() {
                            "brokerEBSVolumeInfo" => {
                                builder = builder.set_broker_ebs_volume_info(
                                    crate::json_deser::deser_list_com_amazonaws_kafka___list_of_broker_ebs_volume_info(tokens)?
                                );
                            }
                            "configurationInfo" => {
                                builder = builder.set_configuration_info(
                                    crate::json_deser::deser_structure_crate_model_configuration_info(tokens)?
                                );
                            }
                            "numberOfBrokerNodes" => {
                                builder = builder.set_number_of_broker_nodes(
                                    aws_smithy_json::deserialize::token::expect_number_or_null(
                                        tokens.next(),
                                    )?
                                    .map(i32::try_from)
                                    .transpose()?,
                                );
                            }
                            "enhancedMonitoring" => {
                                builder = builder.set_enhanced_monitoring(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| {
                                        s.to_unescaped().map(|u| {
                                            crate::model::EnhancedMonitoring::from(u.as_ref())
                                        })
                                    })
                                    .transpose()?,
                                );
                            }
                            "openMonitoring" => {
                                builder = builder.set_open_monitoring(
                                    crate::json_deser::deser_structure_crate_model_open_monitoring(
                                        tokens,
                                    )?,
                                );
                            }
                            "kafkaVersion" => {
                                builder = builder.set_kafka_version(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                                    .transpose()?,
                                );
                            }
                            "loggingInfo" => {
                                builder = builder.set_logging_info(
                                    crate::json_deser::deser_structure_crate_model_logging_info(
                                        tokens,
                                    )?,
                                );
                            }
                            "instanceType" => {
                                builder = builder.set_instance_type(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                                    .transpose()?,
                                );
                            }
                            "clientAuthentication" => {
                                builder = builder.set_client_authentication(
                                    crate::json_deser::deser_structure_crate_model_client_authentication(tokens)?
                                );
                            }
                            "encryptionInfo" => {
                                builder = builder.set_encryption_info(
                                    crate::json_deser::deser_structure_crate_model_encryption_info(
                                        tokens,
                                    )?,
                                );
                            }
                            "connectivityInfo" => {
                                builder = builder.set_connectivity_info(
                                    crate::json_deser::deser_structure_crate_model_connectivity_info(tokens)?
                                );
                            }
                            _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                        }
                    }
                    other => {
                        return Err(
                            aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                                "expected object key or end object, found: {:?}",
                                other
                            )),
                        )
                    }
                }
            }
            Ok(Some(builder.build()))
        }
        _ => Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "expected start object or null",
            ),
        ),
    }
}

Information about the Amazon MSK broker type.

Information about the Amazon MSK broker type.

Examples found in repository?
src/json_deser.rs (lines 4223-4229)
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
pub(crate) fn deser_structure_crate_model_mutable_cluster_info<'a, I>(
    tokens: &mut std::iter::Peekable<I>,
) -> Result<
    Option<crate::model::MutableClusterInfo>,
    aws_smithy_json::deserialize::error::DeserializeError,
>
where
    I: Iterator<
        Item = Result<
            aws_smithy_json::deserialize::Token<'a>,
            aws_smithy_json::deserialize::error::DeserializeError,
        >,
    >,
{
    match tokens.next().transpose()? {
        Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
        Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
            #[allow(unused_mut)]
            let mut builder = crate::model::mutable_cluster_info::Builder::default();
            loop {
                match tokens.next().transpose()? {
                    Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
                    Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                        match key.to_unescaped()?.as_ref() {
                            "brokerEBSVolumeInfo" => {
                                builder = builder.set_broker_ebs_volume_info(
                                    crate::json_deser::deser_list_com_amazonaws_kafka___list_of_broker_ebs_volume_info(tokens)?
                                );
                            }
                            "configurationInfo" => {
                                builder = builder.set_configuration_info(
                                    crate::json_deser::deser_structure_crate_model_configuration_info(tokens)?
                                );
                            }
                            "numberOfBrokerNodes" => {
                                builder = builder.set_number_of_broker_nodes(
                                    aws_smithy_json::deserialize::token::expect_number_or_null(
                                        tokens.next(),
                                    )?
                                    .map(i32::try_from)
                                    .transpose()?,
                                );
                            }
                            "enhancedMonitoring" => {
                                builder = builder.set_enhanced_monitoring(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| {
                                        s.to_unescaped().map(|u| {
                                            crate::model::EnhancedMonitoring::from(u.as_ref())
                                        })
                                    })
                                    .transpose()?,
                                );
                            }
                            "openMonitoring" => {
                                builder = builder.set_open_monitoring(
                                    crate::json_deser::deser_structure_crate_model_open_monitoring(
                                        tokens,
                                    )?,
                                );
                            }
                            "kafkaVersion" => {
                                builder = builder.set_kafka_version(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                                    .transpose()?,
                                );
                            }
                            "loggingInfo" => {
                                builder = builder.set_logging_info(
                                    crate::json_deser::deser_structure_crate_model_logging_info(
                                        tokens,
                                    )?,
                                );
                            }
                            "instanceType" => {
                                builder = builder.set_instance_type(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                                    .transpose()?,
                                );
                            }
                            "clientAuthentication" => {
                                builder = builder.set_client_authentication(
                                    crate::json_deser::deser_structure_crate_model_client_authentication(tokens)?
                                );
                            }
                            "encryptionInfo" => {
                                builder = builder.set_encryption_info(
                                    crate::json_deser::deser_structure_crate_model_encryption_info(
                                        tokens,
                                    )?,
                                );
                            }
                            "connectivityInfo" => {
                                builder = builder.set_connectivity_info(
                                    crate::json_deser::deser_structure_crate_model_connectivity_info(tokens)?
                                );
                            }
                            _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                        }
                    }
                    other => {
                        return Err(
                            aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                                "expected object key or end object, found: {:?}",
                                other
                            )),
                        )
                    }
                }
            }
            Ok(Some(builder.build()))
        }
        _ => Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "expected start object or null",
            ),
        ),
    }
}

Includes all client authentication information.

Includes all client authentication information.

Examples found in repository?
src/json_deser.rs (lines 4232-4234)
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
pub(crate) fn deser_structure_crate_model_mutable_cluster_info<'a, I>(
    tokens: &mut std::iter::Peekable<I>,
) -> Result<
    Option<crate::model::MutableClusterInfo>,
    aws_smithy_json::deserialize::error::DeserializeError,
>
where
    I: Iterator<
        Item = Result<
            aws_smithy_json::deserialize::Token<'a>,
            aws_smithy_json::deserialize::error::DeserializeError,
        >,
    >,
{
    match tokens.next().transpose()? {
        Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
        Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
            #[allow(unused_mut)]
            let mut builder = crate::model::mutable_cluster_info::Builder::default();
            loop {
                match tokens.next().transpose()? {
                    Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
                    Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                        match key.to_unescaped()?.as_ref() {
                            "brokerEBSVolumeInfo" => {
                                builder = builder.set_broker_ebs_volume_info(
                                    crate::json_deser::deser_list_com_amazonaws_kafka___list_of_broker_ebs_volume_info(tokens)?
                                );
                            }
                            "configurationInfo" => {
                                builder = builder.set_configuration_info(
                                    crate::json_deser::deser_structure_crate_model_configuration_info(tokens)?
                                );
                            }
                            "numberOfBrokerNodes" => {
                                builder = builder.set_number_of_broker_nodes(
                                    aws_smithy_json::deserialize::token::expect_number_or_null(
                                        tokens.next(),
                                    )?
                                    .map(i32::try_from)
                                    .transpose()?,
                                );
                            }
                            "enhancedMonitoring" => {
                                builder = builder.set_enhanced_monitoring(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| {
                                        s.to_unescaped().map(|u| {
                                            crate::model::EnhancedMonitoring::from(u.as_ref())
                                        })
                                    })
                                    .transpose()?,
                                );
                            }
                            "openMonitoring" => {
                                builder = builder.set_open_monitoring(
                                    crate::json_deser::deser_structure_crate_model_open_monitoring(
                                        tokens,
                                    )?,
                                );
                            }
                            "kafkaVersion" => {
                                builder = builder.set_kafka_version(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                                    .transpose()?,
                                );
                            }
                            "loggingInfo" => {
                                builder = builder.set_logging_info(
                                    crate::json_deser::deser_structure_crate_model_logging_info(
                                        tokens,
                                    )?,
                                );
                            }
                            "instanceType" => {
                                builder = builder.set_instance_type(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                                    .transpose()?,
                                );
                            }
                            "clientAuthentication" => {
                                builder = builder.set_client_authentication(
                                    crate::json_deser::deser_structure_crate_model_client_authentication(tokens)?
                                );
                            }
                            "encryptionInfo" => {
                                builder = builder.set_encryption_info(
                                    crate::json_deser::deser_structure_crate_model_encryption_info(
                                        tokens,
                                    )?,
                                );
                            }
                            "connectivityInfo" => {
                                builder = builder.set_connectivity_info(
                                    crate::json_deser::deser_structure_crate_model_connectivity_info(tokens)?
                                );
                            }
                            _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                        }
                    }
                    other => {
                        return Err(
                            aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                                "expected object key or end object, found: {:?}",
                                other
                            )),
                        )
                    }
                }
            }
            Ok(Some(builder.build()))
        }
        _ => Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "expected start object or null",
            ),
        ),
    }
}

Includes all encryption-related information.

Includes all encryption-related information.

Examples found in repository?
src/json_deser.rs (lines 4237-4241)
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
pub(crate) fn deser_structure_crate_model_mutable_cluster_info<'a, I>(
    tokens: &mut std::iter::Peekable<I>,
) -> Result<
    Option<crate::model::MutableClusterInfo>,
    aws_smithy_json::deserialize::error::DeserializeError,
>
where
    I: Iterator<
        Item = Result<
            aws_smithy_json::deserialize::Token<'a>,
            aws_smithy_json::deserialize::error::DeserializeError,
        >,
    >,
{
    match tokens.next().transpose()? {
        Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
        Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
            #[allow(unused_mut)]
            let mut builder = crate::model::mutable_cluster_info::Builder::default();
            loop {
                match tokens.next().transpose()? {
                    Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
                    Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                        match key.to_unescaped()?.as_ref() {
                            "brokerEBSVolumeInfo" => {
                                builder = builder.set_broker_ebs_volume_info(
                                    crate::json_deser::deser_list_com_amazonaws_kafka___list_of_broker_ebs_volume_info(tokens)?
                                );
                            }
                            "configurationInfo" => {
                                builder = builder.set_configuration_info(
                                    crate::json_deser::deser_structure_crate_model_configuration_info(tokens)?
                                );
                            }
                            "numberOfBrokerNodes" => {
                                builder = builder.set_number_of_broker_nodes(
                                    aws_smithy_json::deserialize::token::expect_number_or_null(
                                        tokens.next(),
                                    )?
                                    .map(i32::try_from)
                                    .transpose()?,
                                );
                            }
                            "enhancedMonitoring" => {
                                builder = builder.set_enhanced_monitoring(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| {
                                        s.to_unescaped().map(|u| {
                                            crate::model::EnhancedMonitoring::from(u.as_ref())
                                        })
                                    })
                                    .transpose()?,
                                );
                            }
                            "openMonitoring" => {
                                builder = builder.set_open_monitoring(
                                    crate::json_deser::deser_structure_crate_model_open_monitoring(
                                        tokens,
                                    )?,
                                );
                            }
                            "kafkaVersion" => {
                                builder = builder.set_kafka_version(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                                    .transpose()?,
                                );
                            }
                            "loggingInfo" => {
                                builder = builder.set_logging_info(
                                    crate::json_deser::deser_structure_crate_model_logging_info(
                                        tokens,
                                    )?,
                                );
                            }
                            "instanceType" => {
                                builder = builder.set_instance_type(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                                    .transpose()?,
                                );
                            }
                            "clientAuthentication" => {
                                builder = builder.set_client_authentication(
                                    crate::json_deser::deser_structure_crate_model_client_authentication(tokens)?
                                );
                            }
                            "encryptionInfo" => {
                                builder = builder.set_encryption_info(
                                    crate::json_deser::deser_structure_crate_model_encryption_info(
                                        tokens,
                                    )?,
                                );
                            }
                            "connectivityInfo" => {
                                builder = builder.set_connectivity_info(
                                    crate::json_deser::deser_structure_crate_model_connectivity_info(tokens)?
                                );
                            }
                            _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                        }
                    }
                    other => {
                        return Err(
                            aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                                "expected object key or end object, found: {:?}",
                                other
                            )),
                        )
                    }
                }
            }
            Ok(Some(builder.build()))
        }
        _ => Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "expected start object or null",
            ),
        ),
    }
}

Information about the broker access configuration.

Information about the broker access configuration.

Examples found in repository?
src/json_deser.rs (lines 4244-4246)
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
pub(crate) fn deser_structure_crate_model_mutable_cluster_info<'a, I>(
    tokens: &mut std::iter::Peekable<I>,
) -> Result<
    Option<crate::model::MutableClusterInfo>,
    aws_smithy_json::deserialize::error::DeserializeError,
>
where
    I: Iterator<
        Item = Result<
            aws_smithy_json::deserialize::Token<'a>,
            aws_smithy_json::deserialize::error::DeserializeError,
        >,
    >,
{
    match tokens.next().transpose()? {
        Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
        Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
            #[allow(unused_mut)]
            let mut builder = crate::model::mutable_cluster_info::Builder::default();
            loop {
                match tokens.next().transpose()? {
                    Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
                    Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                        match key.to_unescaped()?.as_ref() {
                            "brokerEBSVolumeInfo" => {
                                builder = builder.set_broker_ebs_volume_info(
                                    crate::json_deser::deser_list_com_amazonaws_kafka___list_of_broker_ebs_volume_info(tokens)?
                                );
                            }
                            "configurationInfo" => {
                                builder = builder.set_configuration_info(
                                    crate::json_deser::deser_structure_crate_model_configuration_info(tokens)?
                                );
                            }
                            "numberOfBrokerNodes" => {
                                builder = builder.set_number_of_broker_nodes(
                                    aws_smithy_json::deserialize::token::expect_number_or_null(
                                        tokens.next(),
                                    )?
                                    .map(i32::try_from)
                                    .transpose()?,
                                );
                            }
                            "enhancedMonitoring" => {
                                builder = builder.set_enhanced_monitoring(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| {
                                        s.to_unescaped().map(|u| {
                                            crate::model::EnhancedMonitoring::from(u.as_ref())
                                        })
                                    })
                                    .transpose()?,
                                );
                            }
                            "openMonitoring" => {
                                builder = builder.set_open_monitoring(
                                    crate::json_deser::deser_structure_crate_model_open_monitoring(
                                        tokens,
                                    )?,
                                );
                            }
                            "kafkaVersion" => {
                                builder = builder.set_kafka_version(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                                    .transpose()?,
                                );
                            }
                            "loggingInfo" => {
                                builder = builder.set_logging_info(
                                    crate::json_deser::deser_structure_crate_model_logging_info(
                                        tokens,
                                    )?,
                                );
                            }
                            "instanceType" => {
                                builder = builder.set_instance_type(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                                    .transpose()?,
                                );
                            }
                            "clientAuthentication" => {
                                builder = builder.set_client_authentication(
                                    crate::json_deser::deser_structure_crate_model_client_authentication(tokens)?
                                );
                            }
                            "encryptionInfo" => {
                                builder = builder.set_encryption_info(
                                    crate::json_deser::deser_structure_crate_model_encryption_info(
                                        tokens,
                                    )?,
                                );
                            }
                            "connectivityInfo" => {
                                builder = builder.set_connectivity_info(
                                    crate::json_deser::deser_structure_crate_model_connectivity_info(tokens)?
                                );
                            }
                            _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                        }
                    }
                    other => {
                        return Err(
                            aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                                "expected object key or end object, found: {:?}",
                                other
                            )),
                        )
                    }
                }
            }
            Ok(Some(builder.build()))
        }
        _ => Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "expected start object or null",
            ),
        ),
    }
}

Consumes the builder and constructs a MutableClusterInfo.

Examples found in repository?
src/json_deser.rs (line 4261)
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
pub(crate) fn deser_structure_crate_model_mutable_cluster_info<'a, I>(
    tokens: &mut std::iter::Peekable<I>,
) -> Result<
    Option<crate::model::MutableClusterInfo>,
    aws_smithy_json::deserialize::error::DeserializeError,
>
where
    I: Iterator<
        Item = Result<
            aws_smithy_json::deserialize::Token<'a>,
            aws_smithy_json::deserialize::error::DeserializeError,
        >,
    >,
{
    match tokens.next().transpose()? {
        Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
        Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
            #[allow(unused_mut)]
            let mut builder = crate::model::mutable_cluster_info::Builder::default();
            loop {
                match tokens.next().transpose()? {
                    Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
                    Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
                        match key.to_unescaped()?.as_ref() {
                            "brokerEBSVolumeInfo" => {
                                builder = builder.set_broker_ebs_volume_info(
                                    crate::json_deser::deser_list_com_amazonaws_kafka___list_of_broker_ebs_volume_info(tokens)?
                                );
                            }
                            "configurationInfo" => {
                                builder = builder.set_configuration_info(
                                    crate::json_deser::deser_structure_crate_model_configuration_info(tokens)?
                                );
                            }
                            "numberOfBrokerNodes" => {
                                builder = builder.set_number_of_broker_nodes(
                                    aws_smithy_json::deserialize::token::expect_number_or_null(
                                        tokens.next(),
                                    )?
                                    .map(i32::try_from)
                                    .transpose()?,
                                );
                            }
                            "enhancedMonitoring" => {
                                builder = builder.set_enhanced_monitoring(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| {
                                        s.to_unescaped().map(|u| {
                                            crate::model::EnhancedMonitoring::from(u.as_ref())
                                        })
                                    })
                                    .transpose()?,
                                );
                            }
                            "openMonitoring" => {
                                builder = builder.set_open_monitoring(
                                    crate::json_deser::deser_structure_crate_model_open_monitoring(
                                        tokens,
                                    )?,
                                );
                            }
                            "kafkaVersion" => {
                                builder = builder.set_kafka_version(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                                    .transpose()?,
                                );
                            }
                            "loggingInfo" => {
                                builder = builder.set_logging_info(
                                    crate::json_deser::deser_structure_crate_model_logging_info(
                                        tokens,
                                    )?,
                                );
                            }
                            "instanceType" => {
                                builder = builder.set_instance_type(
                                    aws_smithy_json::deserialize::token::expect_string_or_null(
                                        tokens.next(),
                                    )?
                                    .map(|s| s.to_unescaped().map(|u| u.into_owned()))
                                    .transpose()?,
                                );
                            }
                            "clientAuthentication" => {
                                builder = builder.set_client_authentication(
                                    crate::json_deser::deser_structure_crate_model_client_authentication(tokens)?
                                );
                            }
                            "encryptionInfo" => {
                                builder = builder.set_encryption_info(
                                    crate::json_deser::deser_structure_crate_model_encryption_info(
                                        tokens,
                                    )?,
                                );
                            }
                            "connectivityInfo" => {
                                builder = builder.set_connectivity_info(
                                    crate::json_deser::deser_structure_crate_model_connectivity_info(tokens)?
                                );
                            }
                            _ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
                        }
                    }
                    other => {
                        return Err(
                            aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
                                "expected object key or end object, found: {:?}",
                                other
                            )),
                        )
                    }
                }
            }
            Ok(Some(builder.build()))
        }
        _ => Err(
            aws_smithy_json::deserialize::error::DeserializeError::custom(
                "expected start object or null",
            ),
        ),
    }
}

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more