Struct aws_sdk_cloudfront::client::fluent_builders::UpdateOriginRequestPolicy [−][src]
pub struct UpdateOriginRequestPolicy<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to UpdateOriginRequestPolicy
.
Updates an origin request policy configuration.
When you update an origin request policy configuration, all the fields are updated with the values provided in the request. You cannot update some fields independent of others. To update an origin request policy configuration:
-
Use
GetOriginRequestPolicyConfig
to get the current configuration. -
Locally modify the fields in the origin request policy configuration that you want to update.
-
Call
UpdateOriginRequestPolicy
by providing the entire origin request policy configuration, including the fields that you modified and those that you didn’t.
Implementations
impl<C, M, R> UpdateOriginRequestPolicy<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> UpdateOriginRequestPolicy<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<UpdateOriginRequestPolicyOutput, SdkError<UpdateOriginRequestPolicyError>> where
R::Policy: SmithyRetryPolicy<UpdateOriginRequestPolicyInputOperationOutputAlias, UpdateOriginRequestPolicyOutput, UpdateOriginRequestPolicyError, UpdateOriginRequestPolicyInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<UpdateOriginRequestPolicyOutput, SdkError<UpdateOriginRequestPolicyError>> where
R::Policy: SmithyRetryPolicy<UpdateOriginRequestPolicyInputOperationOutputAlias, UpdateOriginRequestPolicyOutput, UpdateOriginRequestPolicyError, UpdateOriginRequestPolicyInputOperationRetryAlias>,
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, which can be set when configuring the client.
An origin request policy configuration.
pub fn set_origin_request_policy_config(
self,
input: Option<OriginRequestPolicyConfig>
) -> Self
pub fn set_origin_request_policy_config(
self,
input: Option<OriginRequestPolicyConfig>
) -> Self
An origin request policy configuration.
The unique identifier for the origin request policy that you are updating. The identifier is
returned in a cache behavior’s OriginRequestPolicyId
field in the response
to GetDistributionConfig
.
The unique identifier for the origin request policy that you are updating. The identifier is
returned in a cache behavior’s OriginRequestPolicyId
field in the response
to GetDistributionConfig
.
The version of the origin request policy that you are updating. The version is returned in
the origin request policy’s ETag
field in the response to
GetOriginRequestPolicyConfig
.
The version of the origin request policy that you are updating. The version is returned in
the origin request policy’s ETag
field in the response to
GetOriginRequestPolicyConfig
.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for UpdateOriginRequestPolicy<C, M, R>
impl<C, M, R> Send for UpdateOriginRequestPolicy<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for UpdateOriginRequestPolicy<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for UpdateOriginRequestPolicy<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for UpdateOriginRequestPolicy<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more