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.Origin

Description

 
Synopsis

Documentation

data Origin Source #

Describes the origin resource of an Amazon Lightsail content delivery network (CDN) distribution.

An origin can be a Lightsail instance, bucket, or load balancer. A distribution pulls content from an origin, caches it, and serves it to viewers via a worldwide network of edge servers.

See: newOrigin smart constructor.

Constructors

Origin' 

Fields

Instances

Instances details
FromJSON Origin Source # 
Instance details

Defined in Amazonka.Lightsail.Types.Origin

Generic Origin Source # 
Instance details

Defined in Amazonka.Lightsail.Types.Origin

Associated Types

type Rep Origin :: Type -> Type #

Methods

from :: Origin -> Rep Origin x #

to :: Rep Origin x -> Origin #

Read Origin Source # 
Instance details

Defined in Amazonka.Lightsail.Types.Origin

Show Origin Source # 
Instance details

Defined in Amazonka.Lightsail.Types.Origin

NFData Origin Source # 
Instance details

Defined in Amazonka.Lightsail.Types.Origin

Methods

rnf :: Origin -> () #

Eq Origin Source # 
Instance details

Defined in Amazonka.Lightsail.Types.Origin

Methods

(==) :: Origin -> Origin -> Bool #

(/=) :: Origin -> Origin -> Bool #

Hashable Origin Source # 
Instance details

Defined in Amazonka.Lightsail.Types.Origin

Methods

hashWithSalt :: Int -> Origin -> Int #

hash :: Origin -> Int #

type Rep Origin Source # 
Instance details

Defined in Amazonka.Lightsail.Types.Origin

type Rep Origin = D1 ('MetaData "Origin" "Amazonka.Lightsail.Types.Origin" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "Origin'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "protocolPolicy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe OriginProtocolPolicyEnum))) :*: (S1 ('MetaSel ('Just "regionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RegionName)) :*: S1 ('MetaSel ('Just "resourceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ResourceType)))))

newOrigin :: Origin Source #

Create a value of Origin 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:name:Origin', origin_name - The name of the origin resource.

$sel:protocolPolicy:Origin', origin_protocolPolicy - The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull content.

$sel:regionName:Origin', origin_regionName - The AWS Region name of the origin resource.

$sel:resourceType:Origin', origin_resourceType - The resource type of the origin resource (e.g., Instance).

origin_name :: Lens' Origin (Maybe Text) Source #

The name of the origin resource.

origin_protocolPolicy :: Lens' Origin (Maybe OriginProtocolPolicyEnum) Source #

The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull content.

origin_regionName :: Lens' Origin (Maybe RegionName) Source #

The AWS Region name of the origin resource.

origin_resourceType :: Lens' Origin (Maybe ResourceType) Source #

The resource type of the origin resource (e.g., Instance).