#[non_exhaustive]pub struct ListDistributionsByWebAclIdInput { /* private fields */ }
Expand description
The request to list distributions that are associated with a specified WAF web ACL.
Implementations§
source§impl ListDistributionsByWebAclIdInput
impl ListDistributionsByWebAclIdInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ListDistributionsByWebACLId, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ListDistributionsByWebACLId, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ListDistributionsByWebACLId
>
Examples found in repository?
7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ListDistributionsByWebACLId,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ListDistributionsByWebACLIdError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::ListDistributionsByWebAclIdOutput,
aws_smithy_http::result::SdkError<crate::error::ListDistributionsByWebACLIdError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ListDistributionsByWebAclIdInput
.
source§impl ListDistributionsByWebAclIdInput
impl ListDistributionsByWebAclIdInput
sourcepub fn marker(&self) -> Option<&str>
pub fn marker(&self) -> Option<&str>
Use Marker
and MaxItems
to control pagination of results. If you have more than MaxItems
distributions that satisfy the request, the response includes a NextMarker
element. To get the next page of results, submit another request. For the value of Marker
, specify the value of NextMarker
from the last response. (For the first request, omit Marker
.)
sourcepub fn max_items(&self) -> Option<i32>
pub fn max_items(&self) -> Option<i32>
The maximum number of distributions that you want CloudFront to return in the response body. The maximum and default values are both 100.
sourcepub fn web_acl_id(&self) -> Option<&str>
pub fn web_acl_id(&self) -> Option<&str>
The ID of the WAF web ACL that you want to list the associated distributions. If you specify "null" for the ID, the request returns a list of the distributions that aren't associated with a web ACL.
Trait Implementations§
source§impl Clone for ListDistributionsByWebAclIdInput
impl Clone for ListDistributionsByWebAclIdInput
source§fn clone(&self) -> ListDistributionsByWebAclIdInput
fn clone(&self) -> ListDistributionsByWebAclIdInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more