amazonka-route53-1.5.0: Amazon Route 53 SDK.

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

Network.AWS.Route53.CreateTrafficPolicyVersion

Contents

Description

Creates a new version of an existing traffic policy. When you create a new version of a traffic policy, you specify the ID of the traffic policy that you want to update and a JSON-formatted document that describes the new version. You use traffic policies to create multiple DNS resource record sets for one domain name (such as example.com) or one subdomain name (such as www.example.com). You can create a maximum of 1000 versions of a traffic policy. If you reach the limit and need to create another version, you'll need to start a new traffic policy.

Synopsis

Creating a Request

createTrafficPolicyVersion Source #

Creates a value of CreateTrafficPolicyVersion with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • ctpvComment - The comment that you specified in the CreateTrafficPolicyVersion request, if any.
  • ctpvId - The ID of the traffic policy for which you want to create a new version.
  • ctpvDocument - The definition of this version of the traffic policy, in JSON format. You specified the JSON in the CreateTrafficPolicyVersion request. For more information about the JSON format, see CreateTrafficPolicy .

data CreateTrafficPolicyVersion Source #

A complex type that contains information about the traffic policy that you want to create a new version for.

See: createTrafficPolicyVersion smart constructor.

Instances

Eq CreateTrafficPolicyVersion Source # 
Data CreateTrafficPolicyVersion Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateTrafficPolicyVersion -> c CreateTrafficPolicyVersion #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateTrafficPolicyVersion #

toConstr :: CreateTrafficPolicyVersion -> Constr #

dataTypeOf :: CreateTrafficPolicyVersion -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateTrafficPolicyVersion) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateTrafficPolicyVersion) #

gmapT :: (forall b. Data b => b -> b) -> CreateTrafficPolicyVersion -> CreateTrafficPolicyVersion #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateTrafficPolicyVersion -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateTrafficPolicyVersion -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateTrafficPolicyVersion -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateTrafficPolicyVersion -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateTrafficPolicyVersion -> m CreateTrafficPolicyVersion #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateTrafficPolicyVersion -> m CreateTrafficPolicyVersion #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateTrafficPolicyVersion -> m CreateTrafficPolicyVersion #

Read CreateTrafficPolicyVersion Source # 
Show CreateTrafficPolicyVersion Source # 
Generic CreateTrafficPolicyVersion Source # 
Hashable CreateTrafficPolicyVersion Source # 
NFData CreateTrafficPolicyVersion Source # 
AWSRequest CreateTrafficPolicyVersion Source # 
ToElement CreateTrafficPolicyVersion Source # 
ToXML CreateTrafficPolicyVersion Source # 
ToQuery CreateTrafficPolicyVersion Source # 
ToPath CreateTrafficPolicyVersion Source # 
ToHeaders CreateTrafficPolicyVersion Source # 
type Rep CreateTrafficPolicyVersion Source # 
type Rep CreateTrafficPolicyVersion = D1 (MetaData "CreateTrafficPolicyVersion" "Network.AWS.Route53.CreateTrafficPolicyVersion" "amazonka-route53-1.5.0-A9em4xt2RK07uc01kiXLe0" False) (C1 (MetaCons "CreateTrafficPolicyVersion'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ctpvComment") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_ctpvId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_ctpvDocument") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs CreateTrafficPolicyVersion Source # 

Request Lenses

ctpvComment :: Lens' CreateTrafficPolicyVersion (Maybe Text) Source #

The comment that you specified in the CreateTrafficPolicyVersion request, if any.

ctpvId :: Lens' CreateTrafficPolicyVersion Text Source #

The ID of the traffic policy for which you want to create a new version.

ctpvDocument :: Lens' CreateTrafficPolicyVersion Text Source #

The definition of this version of the traffic policy, in JSON format. You specified the JSON in the CreateTrafficPolicyVersion request. For more information about the JSON format, see CreateTrafficPolicy .

Destructuring the Response

createTrafficPolicyVersionResponse Source #

Creates a value of CreateTrafficPolicyVersionResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateTrafficPolicyVersionResponse Source #

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

See: createTrafficPolicyVersionResponse smart constructor.

Instances

Eq CreateTrafficPolicyVersionResponse Source # 
Data CreateTrafficPolicyVersionResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateTrafficPolicyVersionResponse -> c CreateTrafficPolicyVersionResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateTrafficPolicyVersionResponse #

toConstr :: CreateTrafficPolicyVersionResponse -> Constr #

dataTypeOf :: CreateTrafficPolicyVersionResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateTrafficPolicyVersionResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateTrafficPolicyVersionResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateTrafficPolicyVersionResponse -> CreateTrafficPolicyVersionResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateTrafficPolicyVersionResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateTrafficPolicyVersionResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateTrafficPolicyVersionResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateTrafficPolicyVersionResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateTrafficPolicyVersionResponse -> m CreateTrafficPolicyVersionResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateTrafficPolicyVersionResponse -> m CreateTrafficPolicyVersionResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateTrafficPolicyVersionResponse -> m CreateTrafficPolicyVersionResponse #

Read CreateTrafficPolicyVersionResponse Source # 
Show CreateTrafficPolicyVersionResponse Source # 
Generic CreateTrafficPolicyVersionResponse Source # 
NFData CreateTrafficPolicyVersionResponse Source # 
type Rep CreateTrafficPolicyVersionResponse Source # 
type Rep CreateTrafficPolicyVersionResponse = D1 (MetaData "CreateTrafficPolicyVersionResponse" "Network.AWS.Route53.CreateTrafficPolicyVersion" "amazonka-route53-1.5.0-A9em4xt2RK07uc01kiXLe0" False) (C1 (MetaCons "CreateTrafficPolicyVersionResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ctpvrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)) ((:*:) (S1 (MetaSel (Just Symbol "_ctpvrsTrafficPolicy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 TrafficPolicy)) (S1 (MetaSel (Just Symbol "_ctpvrsLocation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))

Response Lenses

ctpvrsTrafficPolicy :: Lens' CreateTrafficPolicyVersionResponse TrafficPolicy Source #

A complex type that contains settings for the new version of the traffic policy.

ctpvrsLocation :: Lens' CreateTrafficPolicyVersionResponse Text Source #

A unique URL that represents a new traffic policy version.