#[non_exhaustive]pub struct GetOriginRequestPolicyConfigInput { /* private fields */ }
Implementations§
source§impl GetOriginRequestPolicyConfigInput
impl GetOriginRequestPolicyConfigInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetOriginRequestPolicyConfig, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetOriginRequestPolicyConfig, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<GetOriginRequestPolicyConfig
>
Examples found in repository?
src/client.rs (line 5515)
5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::GetOriginRequestPolicyConfig,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::GetOriginRequestPolicyConfigError>,
> {
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::GetOriginRequestPolicyConfigOutput,
aws_smithy_http::result::SdkError<crate::error::GetOriginRequestPolicyConfigError>,
> {
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 GetOriginRequestPolicyConfigInput
.
source§impl GetOriginRequestPolicyConfigInput
impl GetOriginRequestPolicyConfigInput
sourcepub fn id(&self) -> Option<&str>
pub fn id(&self) -> Option<&str>
The unique identifier for the origin request policy. If the origin request policy is attached to a distribution’s cache behavior, you can get the policy’s identifier using ListDistributions
or GetDistribution
. If the origin request policy is not attached to a cache behavior, you can get the identifier using ListOriginRequestPolicies
.
Trait Implementations§
source§impl Clone for GetOriginRequestPolicyConfigInput
impl Clone for GetOriginRequestPolicyConfigInput
source§fn clone(&self) -> GetOriginRequestPolicyConfigInput
fn clone(&self) -> GetOriginRequestPolicyConfigInput
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