// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`DescribeProtection`](crate::operation::describe_protection::builders::DescribeProtectionFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`protection_id(impl Into<String>)`](crate::operation::describe_protection::builders::DescribeProtectionFluentBuilder::protection_id) / [`set_protection_id(Option<String>)`](crate::operation::describe_protection::builders::DescribeProtectionFluentBuilder::set_protection_id):<br>required: **false**<br><p>The unique identifier (ID) for the <code>Protection</code> object to describe. You must provide either the <code>ResourceArn</code> of the protected resource or the <code>ProtectionID</code> of the protection, but not both.</p><br>
/// - [`resource_arn(impl Into<String>)`](crate::operation::describe_protection::builders::DescribeProtectionFluentBuilder::resource_arn) / [`set_resource_arn(Option<String>)`](crate::operation::describe_protection::builders::DescribeProtectionFluentBuilder::set_resource_arn):<br>required: **false**<br><p>The ARN (Amazon Resource Name) of the protected Amazon Web Services resource. You must provide either the <code>ResourceArn</code> of the protected resource or the <code>ProtectionID</code> of the protection, but not both.</p><br>
/// - On success, responds with [`DescribeProtectionOutput`](crate::operation::describe_protection::DescribeProtectionOutput) with field(s):
/// - [`protection(Option<Protection>)`](crate::operation::describe_protection::DescribeProtectionOutput::protection): <p>The <code>Protection</code> that you requested.</p>
/// - On failure, responds with [`SdkError<DescribeProtectionError>`](crate::operation::describe_protection::DescribeProtectionError)
pub fn describe_protection(&self) -> crate::operation::describe_protection::builders::DescribeProtectionFluentBuilder {
crate::operation::describe_protection::builders::DescribeProtectionFluentBuilder::new(self.handle.clone())
}
}