amazonka-lightsail-2.0: Amazon Lightsail SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Lightsail.Types.LightsailDistribution

Description

 
Synopsis

Documentation

data LightsailDistribution Source #

Describes an Amazon Lightsail content delivery network (CDN) distribution.

See: newLightsailDistribution smart constructor.

Constructors

LightsailDistribution' 

Fields

Instances

Instances details
FromJSON LightsailDistribution Source # 
Instance details

Defined in Amazonka.Lightsail.Types.LightsailDistribution

Generic LightsailDistribution Source # 
Instance details

Defined in Amazonka.Lightsail.Types.LightsailDistribution

Associated Types

type Rep LightsailDistribution :: Type -> Type #

Read LightsailDistribution Source # 
Instance details

Defined in Amazonka.Lightsail.Types.LightsailDistribution

Show LightsailDistribution Source # 
Instance details

Defined in Amazonka.Lightsail.Types.LightsailDistribution

NFData LightsailDistribution Source # 
Instance details

Defined in Amazonka.Lightsail.Types.LightsailDistribution

Methods

rnf :: LightsailDistribution -> () #

Eq LightsailDistribution Source # 
Instance details

Defined in Amazonka.Lightsail.Types.LightsailDistribution

Hashable LightsailDistribution Source # 
Instance details

Defined in Amazonka.Lightsail.Types.LightsailDistribution

type Rep LightsailDistribution Source # 
Instance details

Defined in Amazonka.Lightsail.Types.LightsailDistribution

type Rep LightsailDistribution = D1 ('MetaData "LightsailDistribution" "Amazonka.Lightsail.Types.LightsailDistribution" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "LightsailDistribution'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "ableToUpdateBundle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "alternativeDomainNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "bundleId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "cacheBehaviorSettings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CacheSettings))))) :*: ((S1 ('MetaSel ('Just "cacheBehaviors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [CacheBehaviorPerPath])) :*: S1 ('MetaSel ('Just "certificateName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "createdAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "defaultCacheBehavior") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CacheBehavior)) :*: S1 ('MetaSel ('Just "domainName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))) :*: (((S1 ('MetaSel ('Just "ipAddressType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe IpAddressType)) :*: S1 ('MetaSel ('Just "isEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ResourceLocation)) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "origin") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Origin))))) :*: ((S1 ('MetaSel ('Just "originPublicDNS") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "resourceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ResourceType))) :*: (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "supportCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag]))))))))

newLightsailDistribution :: LightsailDistribution Source #

Create a value of LightsailDistribution with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:ableToUpdateBundle:LightsailDistribution', lightsailDistribution_ableToUpdateBundle - 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.

$sel:alternativeDomainNames:LightsailDistribution', lightsailDistribution_alternativeDomainNames - The alternate domain names of the distribution.

$sel:arn:LightsailDistribution', lightsailDistribution_arn - The Amazon Resource Name (ARN) of the distribution.

$sel:bundleId:LightsailDistribution', lightsailDistribution_bundleId - The ID of the bundle currently applied to the distribution.

$sel:cacheBehaviorSettings:LightsailDistribution', lightsailDistribution_cacheBehaviorSettings - An object that describes the cache behavior settings of the distribution.

$sel:cacheBehaviors:LightsailDistribution', lightsailDistribution_cacheBehaviors - An array of objects that describe the per-path cache behavior of the distribution.

$sel:certificateName:LightsailDistribution', lightsailDistribution_certificateName - The name of the SSL/TLS certificate attached to the distribution, if any.

$sel:createdAt:LightsailDistribution', lightsailDistribution_createdAt - The timestamp when the distribution was created.

$sel:defaultCacheBehavior:LightsailDistribution', lightsailDistribution_defaultCacheBehavior - An object that describes the default cache behavior of the distribution.

$sel:domainName:LightsailDistribution', lightsailDistribution_domainName - The domain name of the distribution.

$sel:ipAddressType:LightsailDistribution', lightsailDistribution_ipAddressType - The IP address type of the distribution.

The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.

$sel:isEnabled:LightsailDistribution', lightsailDistribution_isEnabled - Indicates whether the distribution is enabled.

$sel:location:LightsailDistribution', lightsailDistribution_location - 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.

LightsailDistribution, lightsailDistribution_name - The name of the distribution.

$sel:origin:LightsailDistribution', lightsailDistribution_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.

$sel:originPublicDNS:LightsailDistribution', lightsailDistribution_originPublicDNS - The public DNS of the origin.

LightsailDistribution, lightsailDistribution_resourceType - The Lightsail resource type (e.g., Distribution).

$sel:status:LightsailDistribution', lightsailDistribution_status - The status of the distribution.

$sel:supportCode:LightsailDistribution', lightsailDistribution_supportCode - 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.

$sel:tags:LightsailDistribution', lightsailDistribution_tags - The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

lightsailDistribution_ableToUpdateBundle :: Lens' LightsailDistribution (Maybe Bool) Source #

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.

lightsailDistribution_alternativeDomainNames :: Lens' LightsailDistribution (Maybe [Text]) Source #

The alternate domain names of the distribution.

lightsailDistribution_arn :: Lens' LightsailDistribution (Maybe Text) Source #

The Amazon Resource Name (ARN) of the distribution.

lightsailDistribution_bundleId :: Lens' LightsailDistribution (Maybe Text) Source #

The ID of the bundle currently applied to the distribution.

lightsailDistribution_cacheBehaviorSettings :: Lens' LightsailDistribution (Maybe CacheSettings) Source #

An object that describes the cache behavior settings of the distribution.

lightsailDistribution_cacheBehaviors :: Lens' LightsailDistribution (Maybe [CacheBehaviorPerPath]) Source #

An array of objects that describe the per-path cache behavior of the distribution.

lightsailDistribution_certificateName :: Lens' LightsailDistribution (Maybe Text) Source #

The name of the SSL/TLS certificate attached to the distribution, if any.

lightsailDistribution_createdAt :: Lens' LightsailDistribution (Maybe UTCTime) Source #

The timestamp when the distribution was created.

lightsailDistribution_defaultCacheBehavior :: Lens' LightsailDistribution (Maybe CacheBehavior) Source #

An object that describes the default cache behavior of the distribution.

lightsailDistribution_ipAddressType :: Lens' LightsailDistribution (Maybe IpAddressType) Source #

The IP address type of the distribution.

The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.

lightsailDistribution_isEnabled :: Lens' LightsailDistribution (Maybe Bool) Source #

Indicates whether the distribution is enabled.

lightsailDistribution_location :: Lens' LightsailDistribution (Maybe ResourceLocation) Source #

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.

lightsailDistribution_origin :: Lens' LightsailDistribution (Maybe Origin) Source #

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.

lightsailDistribution_resourceType :: Lens' LightsailDistribution (Maybe ResourceType) Source #

The Lightsail resource type (e.g., Distribution).

lightsailDistribution_supportCode :: Lens' LightsailDistribution (Maybe Text) Source #

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.

lightsailDistribution_tags :: Lens' LightsailDistribution (Maybe [Tag]) Source #

The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.