#[non_exhaustive]pub struct ListDistributionsByOriginRequestPolicyIdInput { /* private fields */ }
Implementations§
source§impl ListDistributionsByOriginRequestPolicyIdInput
impl ListDistributionsByOriginRequestPolicyIdInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ListDistributionsByOriginRequestPolicyId, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ListDistributionsByOriginRequestPolicyId, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ListDistributionsByOriginRequestPolicyId
>
Examples found in repository?
src/client.rs (line 6712)
6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ListDistributionsByOriginRequestPolicyId,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::error::ListDistributionsByOriginRequestPolicyIdError,
>,
> {
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::ListDistributionsByOriginRequestPolicyIdOutput,
aws_smithy_http::result::SdkError<
crate::error::ListDistributionsByOriginRequestPolicyIdError,
>,
> {
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 ListDistributionsByOriginRequestPolicyIdInput
.
source§impl ListDistributionsByOriginRequestPolicyIdInput
impl ListDistributionsByOriginRequestPolicyIdInput
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 distribution IDs. The response includes distribution IDs 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.
sourcepub fn max_items(&self) -> Option<i32>
pub fn max_items(&self) -> Option<i32>
The maximum number of distribution IDs that you want in the response.
sourcepub fn origin_request_policy_id(&self) -> Option<&str>
pub fn origin_request_policy_id(&self) -> Option<&str>
The ID of the origin request policy whose associated distribution IDs you want to list.
Trait Implementations§
source§impl Clone for ListDistributionsByOriginRequestPolicyIdInput
impl Clone for ListDistributionsByOriginRequestPolicyIdInput
source§fn clone(&self) -> ListDistributionsByOriginRequestPolicyIdInput
fn clone(&self) -> ListDistributionsByOriginRequestPolicyIdInput
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