#[non_exhaustive]pub struct ListOriginRequestPoliciesInput { /* private fields */ }Implementations§
source§impl ListOriginRequestPoliciesInput
impl ListOriginRequestPoliciesInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ListOriginRequestPolicies, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ListOriginRequestPolicies, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ListOriginRequestPolicies>
Examples found in repository?
src/client.rs (line 7655)
7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ListOriginRequestPolicies,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ListOriginRequestPoliciesError>,
> {
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::ListOriginRequestPoliciesOutput,
aws_smithy_http::result::SdkError<crate::error::ListOriginRequestPoliciesError>,
> {
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 ListOriginRequestPoliciesInput.
source§impl ListOriginRequestPoliciesInput
impl ListOriginRequestPoliciesInput
sourcepub fn type(&self) -> Option<&OriginRequestPolicyType>
pub fn type(&self) -> Option<&OriginRequestPolicyType>
A filter to return only the specified kinds of origin request 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 origin request policies. The response includes origin request 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 ListOriginRequestPoliciesInput
impl Clone for ListOriginRequestPoliciesInput
source§fn clone(&self) -> ListOriginRequestPoliciesInput
fn clone(&self) -> ListOriginRequestPoliciesInput
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