Struct aws_sdk_lightsail::client::fluent_builders::UpdateDistribution [−][src]
pub struct UpdateDistribution<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to UpdateDistribution
.
Updates an existing Amazon Lightsail content delivery network (CDN) distribution.
Use this action to update the configuration of your existing distribution.
Implementations
impl<C, M, R> UpdateDistribution<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> UpdateDistribution<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<UpdateDistributionOutput, SdkError<UpdateDistributionError>> where
R::Policy: SmithyRetryPolicy<UpdateDistributionInputOperationOutputAlias, UpdateDistributionOutput, UpdateDistributionError, UpdateDistributionInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<UpdateDistributionOutput, SdkError<UpdateDistributionError>> where
R::Policy: SmithyRetryPolicy<UpdateDistributionInputOperationOutputAlias, UpdateDistributionOutput, UpdateDistributionError, UpdateDistributionInputOperationRetryAlias>,
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.
The name of the distribution to update.
Use the GetDistributions
action to get a list of distribution names that you
can specify.
The name of the distribution to update.
Use the GetDistributions
action to get a list of distribution names that you
can specify.
An object that describes the origin resource for the distribution, such as a Lightsail instance or load balancer.
The distribution pulls, caches, and serves content from the origin.
An object that describes the origin resource for the distribution, such as a Lightsail instance or load balancer.
The distribution pulls, caches, and serves content from the origin.
An object that describes the default cache behavior for the distribution.
An object that describes the default cache behavior for the distribution.
An object that describes the cache behavior settings for the distribution.
The cacheBehaviorSettings
specified in your
UpdateDistributionRequest
will replace your distribution's existing
settings.
An object that describes the cache behavior settings for the distribution.
The cacheBehaviorSettings
specified in your
UpdateDistributionRequest
will replace your distribution's existing
settings.
Appends an item to cacheBehaviors
.
To override the contents of this collection use set_cache_behaviors
.
An array of objects that describe the per-path cache behavior for the distribution.
An array of objects that describe the per-path cache behavior for the distribution.
Indicates whether to enable the distribution.
Indicates whether to enable the distribution.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for UpdateDistribution<C, M, R>
impl<C, M, R> Send for UpdateDistribution<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for UpdateDistribution<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for UpdateDistribution<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for UpdateDistribution<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