amazonka-route53-2.0: Amazon Route 53 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.Route53.CreateTrafficPolicyInstance

Description

Creates resource record sets in a specified hosted zone based on the settings in a specified traffic policy version. In addition, CreateTrafficPolicyInstance associates the resource record sets with a specified domain name (such as example.com) or subdomain name (such as www.example.com). Amazon Route 53 responds to DNS queries for the domain or subdomain name by using the resource record sets that CreateTrafficPolicyInstance created.

Synopsis

Creating a Request

data CreateTrafficPolicyInstance Source #

A complex type that contains information about the resource record sets that you want to create based on a specified traffic policy.

See: newCreateTrafficPolicyInstance smart constructor.

Constructors

CreateTrafficPolicyInstance' 

Fields

  • hostedZoneId :: ResourceId

    The ID of the hosted zone that you want Amazon Route 53 to create resource record sets in by using the configuration in a traffic policy.

  • name :: Text

    The domain name (such as example.com) or subdomain name (such as www.example.com) for which Amazon Route 53 responds to DNS queries by using the resource record sets that Route 53 creates for this traffic policy instance.

  • ttl :: Natural

    (Optional) The TTL that you want Amazon Route 53 to assign to all of the resource record sets that it creates in the specified hosted zone.

  • trafficPolicyId :: Text

    The ID of the traffic policy that you want to use to create resource record sets in the specified hosted zone.

  • trafficPolicyVersion :: Natural

    The version of the traffic policy that you want to use to create resource record sets in the specified hosted zone.

Instances

Instances details
ToHeaders CreateTrafficPolicyInstance Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyInstance

ToPath CreateTrafficPolicyInstance Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyInstance

ToQuery CreateTrafficPolicyInstance Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyInstance

ToElement CreateTrafficPolicyInstance Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyInstance

ToXML CreateTrafficPolicyInstance Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyInstance

AWSRequest CreateTrafficPolicyInstance Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyInstance

Generic CreateTrafficPolicyInstance Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyInstance

Associated Types

type Rep CreateTrafficPolicyInstance :: Type -> Type #

Read CreateTrafficPolicyInstance Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyInstance

Show CreateTrafficPolicyInstance Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyInstance

NFData CreateTrafficPolicyInstance Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyInstance

Eq CreateTrafficPolicyInstance Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyInstance

Hashable CreateTrafficPolicyInstance Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyInstance

type AWSResponse CreateTrafficPolicyInstance Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyInstance

type Rep CreateTrafficPolicyInstance Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyInstance

type Rep CreateTrafficPolicyInstance = D1 ('MetaData "CreateTrafficPolicyInstance" "Amazonka.Route53.CreateTrafficPolicyInstance" "amazonka-route53-2.0-8wP357MyuPX6rh87d4wklb" 'False) (C1 ('MetaCons "CreateTrafficPolicyInstance'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "hostedZoneId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ResourceId) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "ttl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural) :*: (S1 ('MetaSel ('Just "trafficPolicyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "trafficPolicyVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural)))))

newCreateTrafficPolicyInstance Source #

Create a value of CreateTrafficPolicyInstance 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:

CreateTrafficPolicyInstance, createTrafficPolicyInstance_hostedZoneId - The ID of the hosted zone that you want Amazon Route 53 to create resource record sets in by using the configuration in a traffic policy.

CreateTrafficPolicyInstance, createTrafficPolicyInstance_name - The domain name (such as example.com) or subdomain name (such as www.example.com) for which Amazon Route 53 responds to DNS queries by using the resource record sets that Route 53 creates for this traffic policy instance.

CreateTrafficPolicyInstance, createTrafficPolicyInstance_ttl - (Optional) The TTL that you want Amazon Route 53 to assign to all of the resource record sets that it creates in the specified hosted zone.

CreateTrafficPolicyInstance, createTrafficPolicyInstance_trafficPolicyId - The ID of the traffic policy that you want to use to create resource record sets in the specified hosted zone.

CreateTrafficPolicyInstance, createTrafficPolicyInstance_trafficPolicyVersion - The version of the traffic policy that you want to use to create resource record sets in the specified hosted zone.

Request Lenses

createTrafficPolicyInstance_hostedZoneId :: Lens' CreateTrafficPolicyInstance ResourceId Source #

The ID of the hosted zone that you want Amazon Route 53 to create resource record sets in by using the configuration in a traffic policy.

createTrafficPolicyInstance_name :: Lens' CreateTrafficPolicyInstance Text Source #

The domain name (such as example.com) or subdomain name (such as www.example.com) for which Amazon Route 53 responds to DNS queries by using the resource record sets that Route 53 creates for this traffic policy instance.

createTrafficPolicyInstance_ttl :: Lens' CreateTrafficPolicyInstance Natural Source #

(Optional) The TTL that you want Amazon Route 53 to assign to all of the resource record sets that it creates in the specified hosted zone.

createTrafficPolicyInstance_trafficPolicyId :: Lens' CreateTrafficPolicyInstance Text Source #

The ID of the traffic policy that you want to use to create resource record sets in the specified hosted zone.

createTrafficPolicyInstance_trafficPolicyVersion :: Lens' CreateTrafficPolicyInstance Natural Source #

The version of the traffic policy that you want to use to create resource record sets in the specified hosted zone.

Destructuring the Response

data CreateTrafficPolicyInstanceResponse Source #

A complex type that contains the response information for the CreateTrafficPolicyInstance request.

See: newCreateTrafficPolicyInstanceResponse smart constructor.

Constructors

CreateTrafficPolicyInstanceResponse' 

Fields

Instances

Instances details
Generic CreateTrafficPolicyInstanceResponse Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyInstance

Read CreateTrafficPolicyInstanceResponse Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyInstance

Show CreateTrafficPolicyInstanceResponse Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyInstance

NFData CreateTrafficPolicyInstanceResponse Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyInstance

Eq CreateTrafficPolicyInstanceResponse Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyInstance

type Rep CreateTrafficPolicyInstanceResponse Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyInstance

type Rep CreateTrafficPolicyInstanceResponse = D1 ('MetaData "CreateTrafficPolicyInstanceResponse" "Amazonka.Route53.CreateTrafficPolicyInstance" "amazonka-route53-2.0-8wP357MyuPX6rh87d4wklb" 'False) (C1 ('MetaCons "CreateTrafficPolicyInstanceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "trafficPolicyInstance") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TrafficPolicyInstance) :*: S1 ('MetaSel ('Just "location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

Response Lenses

createTrafficPolicyInstanceResponse_location :: Lens' CreateTrafficPolicyInstanceResponse Text Source #

A unique URL that represents a new traffic policy instance.