amazonka-route53-autonaming-1.6.1: Amazon Route 53 Auto Naming SDK.

Copyright(c) 2013-2018 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.Route53AutoNaming.CreateService

Contents

Description

Creates a service, which defines the configuration for the following entities:

  • Up to three records (A, AAAA, and SRV) or one CNAME record
  • Optionally, a health check

After you create the service, you can submit a RegisterInstance request, and Amazon Route 53 uses the values in the configuration to create the specified entities.

For the current limit on the number of instances that you can register using the same namespace and using the same service, see Limits on Auto Naming in the Route 53 Developer Guide .

Synopsis

Creating a Request

createService Source #

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

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

  • csHealthCheckConfig - Public DNS namespaces only. A complex type that contains settings for an optional health check. If you specify settings for a health check, Route 53 associates the health check with all the records that you specify in DnsConfig . For information about the charges for health checks, see Route 53 Pricing .
  • csCreatorRequestId - A unique string that identifies the request and that allows failed CreateService requests to be retried without the risk of executing the operation twice. CreatorRequestId can be any unique string, for example, a date/time stamp.
  • csHealthCheckCustomConfig - Undocumented member.
  • csDescription - A description for the service.
  • csName - The name that you want to assign to the service.
  • csDNSConfig - A complex type that contains information about the records that you want Route 53 to create when you register an instance.

data CreateService Source #

See: createService smart constructor.

Instances
Eq CreateService Source # 
Instance details

Defined in Network.AWS.Route53AutoNaming.CreateService

Data CreateService Source # 
Instance details

Defined in Network.AWS.Route53AutoNaming.CreateService

Methods

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

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

toConstr :: CreateService -> Constr #

dataTypeOf :: CreateService -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateService Source # 
Instance details

Defined in Network.AWS.Route53AutoNaming.CreateService

Show CreateService Source # 
Instance details

Defined in Network.AWS.Route53AutoNaming.CreateService

Generic CreateService Source # 
Instance details

Defined in Network.AWS.Route53AutoNaming.CreateService

Associated Types

type Rep CreateService :: Type -> Type #

Hashable CreateService Source # 
Instance details

Defined in Network.AWS.Route53AutoNaming.CreateService

ToJSON CreateService Source # 
Instance details

Defined in Network.AWS.Route53AutoNaming.CreateService

AWSRequest CreateService Source # 
Instance details

Defined in Network.AWS.Route53AutoNaming.CreateService

Associated Types

type Rs CreateService :: Type #

ToHeaders CreateService Source # 
Instance details

Defined in Network.AWS.Route53AutoNaming.CreateService

ToPath CreateService Source # 
Instance details

Defined in Network.AWS.Route53AutoNaming.CreateService

ToQuery CreateService Source # 
Instance details

Defined in Network.AWS.Route53AutoNaming.CreateService

NFData CreateService Source # 
Instance details

Defined in Network.AWS.Route53AutoNaming.CreateService

Methods

rnf :: CreateService -> () #

type Rep CreateService Source # 
Instance details

Defined in Network.AWS.Route53AutoNaming.CreateService

type Rep CreateService = D1 (MetaData "CreateService" "Network.AWS.Route53AutoNaming.CreateService" "amazonka-route53-autonaming-1.6.1-6b8id7oIY1vC1CYd7O7Vs3" False) (C1 (MetaCons "CreateService'" PrefixI True) ((S1 (MetaSel (Just "_csHealthCheckConfig") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe HealthCheckConfig)) :*: (S1 (MetaSel (Just "_csCreatorRequestId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_csHealthCheckCustomConfig") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe HealthCheckCustomConfig)))) :*: (S1 (MetaSel (Just "_csDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_csName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_csDNSConfig") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 DNSConfig)))))
type Rs CreateService Source # 
Instance details

Defined in Network.AWS.Route53AutoNaming.CreateService

Request Lenses

csHealthCheckConfig :: Lens' CreateService (Maybe HealthCheckConfig) Source #

Public DNS namespaces only. A complex type that contains settings for an optional health check. If you specify settings for a health check, Route 53 associates the health check with all the records that you specify in DnsConfig . For information about the charges for health checks, see Route 53 Pricing .

csCreatorRequestId :: Lens' CreateService (Maybe Text) Source #

A unique string that identifies the request and that allows failed CreateService requests to be retried without the risk of executing the operation twice. CreatorRequestId can be any unique string, for example, a date/time stamp.

csDescription :: Lens' CreateService (Maybe Text) Source #

A description for the service.

csName :: Lens' CreateService Text Source #

The name that you want to assign to the service.

csDNSConfig :: Lens' CreateService DNSConfig Source #

A complex type that contains information about the records that you want Route 53 to create when you register an instance.

Destructuring the Response

createServiceResponse Source #

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

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

data CreateServiceResponse Source #

See: createServiceResponse smart constructor.

Instances
Eq CreateServiceResponse Source # 
Instance details

Defined in Network.AWS.Route53AutoNaming.CreateService

Data CreateServiceResponse Source # 
Instance details

Defined in Network.AWS.Route53AutoNaming.CreateService

Methods

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

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

toConstr :: CreateServiceResponse -> Constr #

dataTypeOf :: CreateServiceResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateServiceResponse Source # 
Instance details

Defined in Network.AWS.Route53AutoNaming.CreateService

Show CreateServiceResponse Source # 
Instance details

Defined in Network.AWS.Route53AutoNaming.CreateService

Generic CreateServiceResponse Source # 
Instance details

Defined in Network.AWS.Route53AutoNaming.CreateService

Associated Types

type Rep CreateServiceResponse :: Type -> Type #

NFData CreateServiceResponse Source # 
Instance details

Defined in Network.AWS.Route53AutoNaming.CreateService

Methods

rnf :: CreateServiceResponse -> () #

type Rep CreateServiceResponse Source # 
Instance details

Defined in Network.AWS.Route53AutoNaming.CreateService

type Rep CreateServiceResponse = D1 (MetaData "CreateServiceResponse" "Network.AWS.Route53AutoNaming.CreateService" "amazonka-route53-autonaming-1.6.1-6b8id7oIY1vC1CYd7O7Vs3" False) (C1 (MetaCons "CreateServiceResponse'" PrefixI True) (S1 (MetaSel (Just "_csrsService") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ServiceInfo)) :*: S1 (MetaSel (Just "_csrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

csrsService :: Lens' CreateServiceResponse (Maybe ServiceInfo) Source #

A complex type that contains information about the new service.

csrsResponseStatus :: Lens' CreateServiceResponse Int Source #

  • - | The response status code.