libZSservicesZSamazonka-route53-autonamingZSamazonka-route53-autonaming
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.Route53AutoNaming.CreatePrivateDnsNamespace

Description

Creates a private namespace based on DNS, which is visible only inside a specified Amazon VPC. The namespace defines your service naming scheme. For example, if you name your namespace example.com and name your service backend, the resulting DNS name for the service is backend.example.com. Service instances that are registered using a private DNS namespace can be discovered using either a DiscoverInstances request or using DNS. For the current quota on the number of namespaces that you can create using the same account, see Cloud Map quotas in the Cloud Map Developer Guide.

Synopsis

Creating a Request

data CreatePrivateDnsNamespace Source #

See: newCreatePrivateDnsNamespace smart constructor.

Constructors

CreatePrivateDnsNamespace' 

Fields

  • creatorRequestId :: Maybe Text

    A unique string that identifies the request and that allows failed CreatePrivateDnsNamespace requests to be retried without the risk of running the operation twice. CreatorRequestId can be any unique string (for example, a date/timestamp).

  • description :: Maybe Text

    A description for the namespace.

  • tags :: Maybe [Tag]

    The tags to add to the namespace. Each tag consists of a key and an optional value that you define. Tags keys can be up to 128 characters in length, and tag values can be up to 256 characters in length.

  • properties :: Maybe PrivateDnsNamespaceProperties

    Properties for the private DNS namespace.

  • name :: Text

    The name that you want to assign to this namespace. When you create a private DNS namespace, Cloud Map automatically creates an Amazon Route 53 private hosted zone that has the same name as the namespace.

  • vpc :: Text

    The ID of the Amazon VPC that you want to associate the namespace with.

Instances

Instances details
Eq CreatePrivateDnsNamespace Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.CreatePrivateDnsNamespace

Read CreatePrivateDnsNamespace Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.CreatePrivateDnsNamespace

Show CreatePrivateDnsNamespace Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.CreatePrivateDnsNamespace

Generic CreatePrivateDnsNamespace Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.CreatePrivateDnsNamespace

Associated Types

type Rep CreatePrivateDnsNamespace :: Type -> Type #

NFData CreatePrivateDnsNamespace Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.CreatePrivateDnsNamespace

Hashable CreatePrivateDnsNamespace Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.CreatePrivateDnsNamespace

ToJSON CreatePrivateDnsNamespace Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.CreatePrivateDnsNamespace

AWSRequest CreatePrivateDnsNamespace Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.CreatePrivateDnsNamespace

ToHeaders CreatePrivateDnsNamespace Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.CreatePrivateDnsNamespace

ToPath CreatePrivateDnsNamespace Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.CreatePrivateDnsNamespace

ToQuery CreatePrivateDnsNamespace Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.CreatePrivateDnsNamespace

type Rep CreatePrivateDnsNamespace Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.CreatePrivateDnsNamespace

type Rep CreatePrivateDnsNamespace = D1 ('MetaData "CreatePrivateDnsNamespace" "Amazonka.Route53AutoNaming.CreatePrivateDnsNamespace" "libZSservicesZSamazonka-route53-autonamingZSamazonka-route53-autonaming" 'False) (C1 ('MetaCons "CreatePrivateDnsNamespace'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "creatorRequestId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])))) :*: (S1 ('MetaSel ('Just "properties") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PrivateDnsNamespaceProperties)) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "vpc") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse CreatePrivateDnsNamespace Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.CreatePrivateDnsNamespace

newCreatePrivateDnsNamespace Source #

Create a value of CreatePrivateDnsNamespace 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:creatorRequestId:CreatePrivateDnsNamespace', createPrivateDnsNamespace_creatorRequestId - A unique string that identifies the request and that allows failed CreatePrivateDnsNamespace requests to be retried without the risk of running the operation twice. CreatorRequestId can be any unique string (for example, a date/timestamp).

$sel:description:CreatePrivateDnsNamespace', createPrivateDnsNamespace_description - A description for the namespace.

$sel:tags:CreatePrivateDnsNamespace', createPrivateDnsNamespace_tags - The tags to add to the namespace. Each tag consists of a key and an optional value that you define. Tags keys can be up to 128 characters in length, and tag values can be up to 256 characters in length.

$sel:properties:CreatePrivateDnsNamespace', createPrivateDnsNamespace_properties - Properties for the private DNS namespace.

$sel:name:CreatePrivateDnsNamespace', createPrivateDnsNamespace_name - The name that you want to assign to this namespace. When you create a private DNS namespace, Cloud Map automatically creates an Amazon Route 53 private hosted zone that has the same name as the namespace.

$sel:vpc:CreatePrivateDnsNamespace', createPrivateDnsNamespace_vpc - The ID of the Amazon VPC that you want to associate the namespace with.

Request Lenses

createPrivateDnsNamespace_creatorRequestId :: Lens' CreatePrivateDnsNamespace (Maybe Text) Source #

A unique string that identifies the request and that allows failed CreatePrivateDnsNamespace requests to be retried without the risk of running the operation twice. CreatorRequestId can be any unique string (for example, a date/timestamp).

createPrivateDnsNamespace_tags :: Lens' CreatePrivateDnsNamespace (Maybe [Tag]) Source #

The tags to add to the namespace. Each tag consists of a key and an optional value that you define. Tags keys can be up to 128 characters in length, and tag values can be up to 256 characters in length.

createPrivateDnsNamespace_name :: Lens' CreatePrivateDnsNamespace Text Source #

The name that you want to assign to this namespace. When you create a private DNS namespace, Cloud Map automatically creates an Amazon Route 53 private hosted zone that has the same name as the namespace.

createPrivateDnsNamespace_vpc :: Lens' CreatePrivateDnsNamespace Text Source #

The ID of the Amazon VPC that you want to associate the namespace with.

Destructuring the Response

data CreatePrivateDnsNamespaceResponse Source #

See: newCreatePrivateDnsNamespaceResponse smart constructor.

Constructors

CreatePrivateDnsNamespaceResponse' 

Fields

Instances

Instances details
Eq CreatePrivateDnsNamespaceResponse Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.CreatePrivateDnsNamespace

Read CreatePrivateDnsNamespaceResponse Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.CreatePrivateDnsNamespace

Show CreatePrivateDnsNamespaceResponse Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.CreatePrivateDnsNamespace

Generic CreatePrivateDnsNamespaceResponse Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.CreatePrivateDnsNamespace

Associated Types

type Rep CreatePrivateDnsNamespaceResponse :: Type -> Type #

NFData CreatePrivateDnsNamespaceResponse Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.CreatePrivateDnsNamespace

type Rep CreatePrivateDnsNamespaceResponse Source # 
Instance details

Defined in Amazonka.Route53AutoNaming.CreatePrivateDnsNamespace

type Rep CreatePrivateDnsNamespaceResponse = D1 ('MetaData "CreatePrivateDnsNamespaceResponse" "Amazonka.Route53AutoNaming.CreatePrivateDnsNamespace" "libZSservicesZSamazonka-route53-autonamingZSamazonka-route53-autonaming" 'False) (C1 ('MetaCons "CreatePrivateDnsNamespaceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "operationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreatePrivateDnsNamespaceResponse Source #

Create a value of CreatePrivateDnsNamespaceResponse 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:operationId:CreatePrivateDnsNamespaceResponse', createPrivateDnsNamespaceResponse_operationId - A value that you can use to determine whether the request completed successfully. To get the status of the operation, see GetOperation.

$sel:httpStatus:CreatePrivateDnsNamespaceResponse', createPrivateDnsNamespaceResponse_httpStatus - The response's http status code.

Response Lenses

createPrivateDnsNamespaceResponse_operationId :: Lens' CreatePrivateDnsNamespaceResponse (Maybe Text) Source #

A value that you can use to determine whether the request completed successfully. To get the status of the operation, see GetOperation.