// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`UpdateChapCredentials`](crate::operation::update_chap_credentials::builders::UpdateChapCredentialsFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`target_arn(impl Into<String>)`](crate::operation::update_chap_credentials::builders::UpdateChapCredentialsFluentBuilder::target_arn) / [`set_target_arn(Option<String>)`](crate::operation::update_chap_credentials::builders::UpdateChapCredentialsFluentBuilder::set_target_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the iSCSI volume target. Use the <code>DescribeStorediSCSIVolumes</code> operation to return the TargetARN for specified VolumeARN.</p><br>
/// - [`secret_to_authenticate_initiator(impl Into<String>)`](crate::operation::update_chap_credentials::builders::UpdateChapCredentialsFluentBuilder::secret_to_authenticate_initiator) / [`set_secret_to_authenticate_initiator(Option<String>)`](crate::operation::update_chap_credentials::builders::UpdateChapCredentialsFluentBuilder::set_secret_to_authenticate_initiator):<br>required: **true**<br><p>The secret key that the initiator (for example, the Windows client) must provide to participate in mutual CHAP with the target.</p><note> <p>The secret key must be between 12 and 16 bytes when encoded in UTF-8.</p> </note><br>
/// - [`initiator_name(impl Into<String>)`](crate::operation::update_chap_credentials::builders::UpdateChapCredentialsFluentBuilder::initiator_name) / [`set_initiator_name(Option<String>)`](crate::operation::update_chap_credentials::builders::UpdateChapCredentialsFluentBuilder::set_initiator_name):<br>required: **true**<br><p>The iSCSI initiator that connects to the target.</p><br>
/// - [`secret_to_authenticate_target(impl Into<String>)`](crate::operation::update_chap_credentials::builders::UpdateChapCredentialsFluentBuilder::secret_to_authenticate_target) / [`set_secret_to_authenticate_target(Option<String>)`](crate::operation::update_chap_credentials::builders::UpdateChapCredentialsFluentBuilder::set_secret_to_authenticate_target):<br>required: **false**<br><p>The secret key that the target must provide to participate in mutual CHAP with the initiator (e.g. Windows client).</p> <p>Byte constraints: Minimum bytes of 12. Maximum bytes of 16.</p><note> <p>The secret key must be between 12 and 16 bytes when encoded in UTF-8.</p> </note><br>
/// - On success, responds with [`UpdateChapCredentialsOutput`](crate::operation::update_chap_credentials::UpdateChapCredentialsOutput) with field(s):
/// - [`target_arn(Option<String>)`](crate::operation::update_chap_credentials::UpdateChapCredentialsOutput::target_arn): <p>The Amazon Resource Name (ARN) of the target. This is the same target specified in the request.</p>
/// - [`initiator_name(Option<String>)`](crate::operation::update_chap_credentials::UpdateChapCredentialsOutput::initiator_name): <p>The iSCSI initiator that connects to the target. This is the same initiator name specified in the request.</p>
/// - On failure, responds with [`SdkError<UpdateChapCredentialsError>`](crate::operation::update_chap_credentials::UpdateChapCredentialsError)
pub fn update_chap_credentials(&self) -> crate::operation::update_chap_credentials::builders::UpdateChapCredentialsFluentBuilder {
crate::operation::update_chap_credentials::builders::UpdateChapCredentialsFluentBuilder::new(self.handle.clone())
}
}