aws_sdk_shield/client/
describe_protection.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`DescribeProtection`](crate::operation::describe_protection::builders::DescribeProtectionFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`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>
7    ///   - [`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>
8    /// - On success, responds with [`DescribeProtectionOutput`](crate::operation::describe_protection::DescribeProtectionOutput) with field(s):
9    ///   - [`protection(Option<Protection>)`](crate::operation::describe_protection::DescribeProtectionOutput::protection): <p>The <code>Protection</code> that you requested.</p>
10    /// - On failure, responds with [`SdkError<DescribeProtectionError>`](crate::operation::describe_protection::DescribeProtectionError)
11    pub fn describe_protection(&self) -> crate::operation::describe_protection::builders::DescribeProtectionFluentBuilder {
12        crate::operation::describe_protection::builders::DescribeProtectionFluentBuilder::new(self.handle.clone())
13    }
14}