libZSservicesZSamazonka-route53ZSamazonka-route53
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq CreateTrafficPolicyInstance Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyInstance

Read CreateTrafficPolicyInstance Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyInstance

Show 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 #

NFData CreateTrafficPolicyInstance Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyInstance

Hashable CreateTrafficPolicyInstance Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyInstance

AWSRequest CreateTrafficPolicyInstance Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyInstance

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

type Rep CreateTrafficPolicyInstance Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyInstance

type Rep CreateTrafficPolicyInstance = D1 ('MetaData "CreateTrafficPolicyInstance" "Amazonka.Route53.CreateTrafficPolicyInstance" "libZSservicesZSamazonka-route53ZSamazonka-route53" '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)))))
type AWSResponse CreateTrafficPolicyInstance Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyInstance

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:

$sel:hostedZoneId: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.

$sel:name: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.

$sel:ttl: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.

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

$sel:trafficPolicyVersion: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
Eq 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

Generic CreateTrafficPolicyInstanceResponse Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyInstance

NFData 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" "libZSservicesZSamazonka-route53ZSamazonka-route53" '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.