Struct aws_sdk_shield::client::fluent_builders::DescribeProtection
source · [−]pub struct DescribeProtection { /* private fields */ }
Expand description
Fluent builder constructing a request to DescribeProtection
.
Lists the details of a Protection
object.
Implementations
sourceimpl DescribeProtection
impl DescribeProtection
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<DescribeProtection, AwsResponseRetryClassifier>, SdkError<DescribeProtectionError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<DescribeProtection, AwsResponseRetryClassifier>, SdkError<DescribeProtectionError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<DescribeProtectionOutput, SdkError<DescribeProtectionError>>
pub async fn send(
self
) -> Result<DescribeProtectionOutput, SdkError<DescribeProtectionError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn protection_id(self, input: impl Into<String>) -> Self
pub fn protection_id(self, input: impl Into<String>) -> Self
The unique identifier (ID) for the Protection
object to describe. You must provide either the ResourceArn
of the protected resource or the ProtectionID
of the protection, but not both.
sourcepub fn set_protection_id(self, input: Option<String>) -> Self
pub fn set_protection_id(self, input: Option<String>) -> Self
The unique identifier (ID) for the Protection
object to describe. You must provide either the ResourceArn
of the protected resource or the ProtectionID
of the protection, but not both.
sourcepub fn resource_arn(self, input: impl Into<String>) -> Self
pub fn resource_arn(self, input: impl Into<String>) -> Self
The ARN (Amazon Resource Name) of the protected Amazon Web Services resource. You must provide either the ResourceArn
of the protected resource or the ProtectionID
of the protection, but not both.
sourcepub fn set_resource_arn(self, input: Option<String>) -> Self
pub fn set_resource_arn(self, input: Option<String>) -> Self
The ARN (Amazon Resource Name) of the protected Amazon Web Services resource. You must provide either the ResourceArn
of the protected resource or the ProtectionID
of the protection, but not both.
Trait Implementations
sourceimpl Clone for DescribeProtection
impl Clone for DescribeProtection
sourcefn clone(&self) -> DescribeProtection
fn clone(&self) -> DescribeProtection
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more