#[non_exhaustive]pub struct LightsailDistributionBuilder { /* private fields */ }
Expand description
A builder for LightsailDistribution
.
Implementations§
source§impl LightsailDistributionBuilder
impl LightsailDistributionBuilder
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the distribution.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the distribution.
sourcepub fn support_code(self, input: impl Into<String>) -> Self
pub fn support_code(self, input: impl Into<String>) -> Self
The support code. Include this code in your email to support when you have questions about your Lightsail distribution. This code enables our support team to look up your Lightsail information more easily.
sourcepub fn set_support_code(self, input: Option<String>) -> Self
pub fn set_support_code(self, input: Option<String>) -> Self
The support code. Include this code in your email to support when you have questions about your Lightsail distribution. This code enables our support team to look up your Lightsail information more easily.
sourcepub fn get_support_code(&self) -> &Option<String>
pub fn get_support_code(&self) -> &Option<String>
The support code. Include this code in your email to support when you have questions about your Lightsail distribution. This code enables our support team to look up your Lightsail information more easily.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The timestamp when the distribution was created.
sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The timestamp when the distribution was created.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The timestamp when the distribution was created.
sourcepub fn location(self, input: ResourceLocation) -> Self
pub fn location(self, input: ResourceLocation) -> Self
An object that describes the location of the distribution, such as the Amazon Web Services Region and Availability Zone.
Lightsail distributions are global resources that can reference an origin in any Amazon Web Services Region, and distribute its content globally. However, all distributions are located in the us-east-1
Region.
sourcepub fn set_location(self, input: Option<ResourceLocation>) -> Self
pub fn set_location(self, input: Option<ResourceLocation>) -> Self
An object that describes the location of the distribution, such as the Amazon Web Services Region and Availability Zone.
Lightsail distributions are global resources that can reference an origin in any Amazon Web Services Region, and distribute its content globally. However, all distributions are located in the us-east-1
Region.
sourcepub fn get_location(&self) -> &Option<ResourceLocation>
pub fn get_location(&self) -> &Option<ResourceLocation>
An object that describes the location of the distribution, such as the Amazon Web Services Region and Availability Zone.
Lightsail distributions are global resources that can reference an origin in any Amazon Web Services Region, and distribute its content globally. However, all distributions are located in the us-east-1
Region.
sourcepub fn resource_type(self, input: ResourceType) -> Self
pub fn resource_type(self, input: ResourceType) -> Self
The Lightsail resource type (Distribution
).
sourcepub fn set_resource_type(self, input: Option<ResourceType>) -> Self
pub fn set_resource_type(self, input: Option<ResourceType>) -> Self
The Lightsail resource type (Distribution
).
sourcepub fn get_resource_type(&self) -> &Option<ResourceType>
pub fn get_resource_type(&self) -> &Option<ResourceType>
The Lightsail resource type (Distribution
).
sourcepub fn alternative_domain_names(self, input: impl Into<String>) -> Self
pub fn alternative_domain_names(self, input: impl Into<String>) -> Self
Appends an item to alternative_domain_names
.
To override the contents of this collection use set_alternative_domain_names
.
The alternate domain names of the distribution.
sourcepub fn set_alternative_domain_names(self, input: Option<Vec<String>>) -> Self
pub fn set_alternative_domain_names(self, input: Option<Vec<String>>) -> Self
The alternate domain names of the distribution.
sourcepub fn get_alternative_domain_names(&self) -> &Option<Vec<String>>
pub fn get_alternative_domain_names(&self) -> &Option<Vec<String>>
The alternate domain names of the distribution.
sourcepub fn set_status(self, input: Option<String>) -> Self
pub fn set_status(self, input: Option<String>) -> Self
The status of the distribution.
sourcepub fn get_status(&self) -> &Option<String>
pub fn get_status(&self) -> &Option<String>
The status of the distribution.
sourcepub fn is_enabled(self, input: bool) -> Self
pub fn is_enabled(self, input: bool) -> Self
Indicates whether the distribution is enabled.
sourcepub fn set_is_enabled(self, input: Option<bool>) -> Self
pub fn set_is_enabled(self, input: Option<bool>) -> Self
Indicates whether the distribution is enabled.
sourcepub fn get_is_enabled(&self) -> &Option<bool>
pub fn get_is_enabled(&self) -> &Option<bool>
Indicates whether the distribution is enabled.
sourcepub fn domain_name(self, input: impl Into<String>) -> Self
pub fn domain_name(self, input: impl Into<String>) -> Self
The domain name of the distribution.
sourcepub fn set_domain_name(self, input: Option<String>) -> Self
pub fn set_domain_name(self, input: Option<String>) -> Self
The domain name of the distribution.
sourcepub fn get_domain_name(&self) -> &Option<String>
pub fn get_domain_name(&self) -> &Option<String>
The domain name of the distribution.
sourcepub fn bundle_id(self, input: impl Into<String>) -> Self
pub fn bundle_id(self, input: impl Into<String>) -> Self
The ID of the bundle currently applied to the distribution.
sourcepub fn set_bundle_id(self, input: Option<String>) -> Self
pub fn set_bundle_id(self, input: Option<String>) -> Self
The ID of the bundle currently applied to the distribution.
sourcepub fn get_bundle_id(&self) -> &Option<String>
pub fn get_bundle_id(&self) -> &Option<String>
The ID of the bundle currently applied to the distribution.
sourcepub fn certificate_name(self, input: impl Into<String>) -> Self
pub fn certificate_name(self, input: impl Into<String>) -> Self
The name of the SSL/TLS certificate attached to the distribution, if any.
sourcepub fn set_certificate_name(self, input: Option<String>) -> Self
pub fn set_certificate_name(self, input: Option<String>) -> Self
The name of the SSL/TLS certificate attached to the distribution, if any.
sourcepub fn get_certificate_name(&self) -> &Option<String>
pub fn get_certificate_name(&self) -> &Option<String>
The name of the SSL/TLS certificate attached to the distribution, if any.
sourcepub fn origin(self, input: Origin) -> Self
pub fn origin(self, input: Origin) -> Self
An object that describes the origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer.
The distribution pulls, caches, and serves content from the origin.
sourcepub fn set_origin(self, input: Option<Origin>) -> Self
pub fn set_origin(self, input: Option<Origin>) -> Self
An object that describes the origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer.
The distribution pulls, caches, and serves content from the origin.
sourcepub fn get_origin(&self) -> &Option<Origin>
pub fn get_origin(&self) -> &Option<Origin>
An object that describes the origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer.
The distribution pulls, caches, and serves content from the origin.
sourcepub fn origin_public_dns(self, input: impl Into<String>) -> Self
pub fn origin_public_dns(self, input: impl Into<String>) -> Self
The public DNS of the origin.
sourcepub fn set_origin_public_dns(self, input: Option<String>) -> Self
pub fn set_origin_public_dns(self, input: Option<String>) -> Self
The public DNS of the origin.
sourcepub fn get_origin_public_dns(&self) -> &Option<String>
pub fn get_origin_public_dns(&self) -> &Option<String>
The public DNS of the origin.
sourcepub fn default_cache_behavior(self, input: CacheBehavior) -> Self
pub fn default_cache_behavior(self, input: CacheBehavior) -> Self
An object that describes the default cache behavior of the distribution.
sourcepub fn set_default_cache_behavior(self, input: Option<CacheBehavior>) -> Self
pub fn set_default_cache_behavior(self, input: Option<CacheBehavior>) -> Self
An object that describes the default cache behavior of the distribution.
sourcepub fn get_default_cache_behavior(&self) -> &Option<CacheBehavior>
pub fn get_default_cache_behavior(&self) -> &Option<CacheBehavior>
An object that describes the default cache behavior of the distribution.
sourcepub fn cache_behavior_settings(self, input: CacheSettings) -> Self
pub fn cache_behavior_settings(self, input: CacheSettings) -> Self
An object that describes the cache behavior settings of the distribution.
sourcepub fn set_cache_behavior_settings(self, input: Option<CacheSettings>) -> Self
pub fn set_cache_behavior_settings(self, input: Option<CacheSettings>) -> Self
An object that describes the cache behavior settings of the distribution.
sourcepub fn get_cache_behavior_settings(&self) -> &Option<CacheSettings>
pub fn get_cache_behavior_settings(&self) -> &Option<CacheSettings>
An object that describes the cache behavior settings of the distribution.
sourcepub fn cache_behaviors(self, input: CacheBehaviorPerPath) -> Self
pub fn cache_behaviors(self, input: CacheBehaviorPerPath) -> Self
Appends an item to cache_behaviors
.
To override the contents of this collection use set_cache_behaviors
.
An array of objects that describe the per-path cache behavior of the distribution.
sourcepub fn set_cache_behaviors(
self,
input: Option<Vec<CacheBehaviorPerPath>>
) -> Self
pub fn set_cache_behaviors( self, input: Option<Vec<CacheBehaviorPerPath>> ) -> Self
An array of objects that describe the per-path cache behavior of the distribution.
sourcepub fn get_cache_behaviors(&self) -> &Option<Vec<CacheBehaviorPerPath>>
pub fn get_cache_behaviors(&self) -> &Option<Vec<CacheBehaviorPerPath>>
An array of objects that describe the per-path cache behavior of the distribution.
sourcepub fn able_to_update_bundle(self, input: bool) -> Self
pub fn able_to_update_bundle(self, input: bool) -> Self
Indicates whether the bundle that is currently applied to your distribution, specified using the distributionName
parameter, can be changed to another bundle.
Use the UpdateDistributionBundle
action to change your distribution's bundle.
sourcepub fn set_able_to_update_bundle(self, input: Option<bool>) -> Self
pub fn set_able_to_update_bundle(self, input: Option<bool>) -> Self
Indicates whether the bundle that is currently applied to your distribution, specified using the distributionName
parameter, can be changed to another bundle.
Use the UpdateDistributionBundle
action to change your distribution's bundle.
sourcepub fn get_able_to_update_bundle(&self) -> &Option<bool>
pub fn get_able_to_update_bundle(&self) -> &Option<bool>
Indicates whether the bundle that is currently applied to your distribution, specified using the distributionName
parameter, can be changed to another bundle.
Use the UpdateDistributionBundle
action to change your distribution's bundle.
sourcepub fn ip_address_type(self, input: IpAddressType) -> Self
pub fn ip_address_type(self, input: IpAddressType) -> Self
The IP address type of the distribution.
The possible values are ipv4
for IPv4 only, and dualstack
for IPv4 and IPv6.
sourcepub fn set_ip_address_type(self, input: Option<IpAddressType>) -> Self
pub fn set_ip_address_type(self, input: Option<IpAddressType>) -> Self
The IP address type of the distribution.
The possible values are ipv4
for IPv4 only, and dualstack
for IPv4 and IPv6.
sourcepub fn get_ip_address_type(&self) -> &Option<IpAddressType>
pub fn get_ip_address_type(&self) -> &Option<IpAddressType>
The IP address type of the distribution.
The possible values are ipv4
for IPv4 only, and dualstack
for IPv4 and IPv6.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
sourcepub fn viewer_minimum_tls_protocol_version(
self,
input: impl Into<String>
) -> Self
pub fn viewer_minimum_tls_protocol_version( self, input: impl Into<String> ) -> Self
The minimum TLS protocol version that the distribution can use to communicate with viewers.
sourcepub fn set_viewer_minimum_tls_protocol_version(
self,
input: Option<String>
) -> Self
pub fn set_viewer_minimum_tls_protocol_version( self, input: Option<String> ) -> Self
The minimum TLS protocol version that the distribution can use to communicate with viewers.
sourcepub fn get_viewer_minimum_tls_protocol_version(&self) -> &Option<String>
pub fn get_viewer_minimum_tls_protocol_version(&self) -> &Option<String>
The minimum TLS protocol version that the distribution can use to communicate with viewers.
sourcepub fn build(self) -> LightsailDistribution
pub fn build(self) -> LightsailDistribution
Consumes the builder and constructs a LightsailDistribution
.
Trait Implementations§
source§impl Clone for LightsailDistributionBuilder
impl Clone for LightsailDistributionBuilder
source§fn clone(&self) -> LightsailDistributionBuilder
fn clone(&self) -> LightsailDistributionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LightsailDistributionBuilder
impl Debug for LightsailDistributionBuilder
source§impl Default for LightsailDistributionBuilder
impl Default for LightsailDistributionBuilder
source§fn default() -> LightsailDistributionBuilder
fn default() -> LightsailDistributionBuilder
source§impl PartialEq for LightsailDistributionBuilder
impl PartialEq for LightsailDistributionBuilder
source§fn eq(&self, other: &LightsailDistributionBuilder) -> bool
fn eq(&self, other: &LightsailDistributionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LightsailDistributionBuilder
Auto Trait Implementations§
impl Freeze for LightsailDistributionBuilder
impl RefUnwindSafe for LightsailDistributionBuilder
impl Send for LightsailDistributionBuilder
impl Sync for LightsailDistributionBuilder
impl Unpin for LightsailDistributionBuilder
impl UnwindSafe for LightsailDistributionBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more