Struct aws_sdk_cloudfront::input::ListCachePoliciesInput
source · #[non_exhaustive]pub struct ListCachePoliciesInput { /* private fields */ }Implementations§
source§impl ListCachePoliciesInput
impl ListCachePoliciesInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ListCachePolicies, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ListCachePolicies, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ListCachePolicies>
Examples found in repository?
src/client.rs (line 6118)
6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ListCachePolicies,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ListCachePoliciesError>,
> {
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::ListCachePoliciesOutput,
aws_smithy_http::result::SdkError<crate::error::ListCachePoliciesError>,
> {
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 ListCachePoliciesInput.
source§impl ListCachePoliciesInput
impl ListCachePoliciesInput
sourcepub fn type(&self) -> Option<&CachePolicyType>
pub fn type(&self) -> Option<&CachePolicyType>
A filter to return only the specified kinds of cache policies. Valid values are:
-
managed– Returns only the managed policies created by Amazon Web Services. -
custom– Returns only the custom policies created in your Amazon Web Services account.
sourcepub fn marker(&self) -> Option<&str>
pub fn marker(&self) -> Option<&str>
Use this field when paginating results to indicate where to begin in your list of cache policies. The response includes cache policies in the list that occur after the marker. To get the next page of the list, set this field’s value to the value of NextMarker from the current page’s response.
Trait Implementations§
source§impl Clone for ListCachePoliciesInput
impl Clone for ListCachePoliciesInput
source§fn clone(&self) -> ListCachePoliciesInput
fn clone(&self) -> ListCachePoliciesInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more