Struct aws_sdk_lightsail::client::fluent_builders::CreateDistribution [−][src]
pub struct CreateDistribution<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to CreateDistribution
.
Creates an Amazon Lightsail content delivery network (CDN) distribution.
A distribution is a globally distributed network of caching servers that improve the performance of your website or web application hosted on a Lightsail instance. For more information, see Content delivery networks in Amazon Lightsail.
Implementations
impl<C, M, R> CreateDistribution<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateDistribution<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateDistributionOutput, SdkError<CreateDistributionError>> where
R::Policy: SmithyRetryPolicy<CreateDistributionInputOperationOutputAlias, CreateDistributionOutput, CreateDistributionError, CreateDistributionInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateDistributionOutput, SdkError<CreateDistributionError>> where
R::Policy: SmithyRetryPolicy<CreateDistributionInputOperationOutputAlias, CreateDistributionOutput, CreateDistributionError, CreateDistributionInputOperationRetryAlias>,
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 for the distribution.
The name for the distribution.
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.
An object that describes the cache behavior settings for the distribution.
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.
The bundle ID to use for the distribution.
A distribution bundle describes the specifications of your distribution, such as the monthly cost and monthly network transfer quota.
Use the GetDistributionBundles
action to get a list of distribution bundle IDs that you can specify.
The bundle ID to use for the distribution.
A distribution bundle describes the specifications of your distribution, such as the monthly cost and monthly network transfer quota.
Use the GetDistributionBundles
action to get a list of distribution bundle IDs that you can specify.
The IP address type for the distribution.
The possible values are ipv4
for IPv4 only, and dualstack
for IPv4 and IPv6.
The default value is dualstack
.
The IP address type for the distribution.
The possible values are ipv4
for IPv4 only, and dualstack
for IPv4 and IPv6.
The default value is dualstack
.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The tag keys and optional values to add to the distribution during create.
Use the TagResource
action to tag a resource after it's created.
The tag keys and optional values to add to the distribution during create.
Use the TagResource
action to tag a resource after it's created.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for CreateDistribution<C, M, R>
impl<C, M, R> Send for CreateDistribution<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateDistribution<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateDistribution<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for CreateDistribution<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