Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a Resolver endpoint. There are two types of Resolver endpoints, inbound and outbound:
- An inbound Resolver endpoint forwards DNS queries to the DNS service for a VPC from your network.
- An outbound Resolver endpoint forwards DNS queries from the DNS service for a VPC to your network.
Synopsis
- data CreateResolverEndpoint = CreateResolverEndpoint' {}
- newCreateResolverEndpoint :: Text -> ResolverEndpointDirection -> NonEmpty IpAddressRequest -> CreateResolverEndpoint
- createResolverEndpoint_name :: Lens' CreateResolverEndpoint (Maybe Text)
- createResolverEndpoint_tags :: Lens' CreateResolverEndpoint (Maybe [Tag])
- createResolverEndpoint_creatorRequestId :: Lens' CreateResolverEndpoint Text
- createResolverEndpoint_securityGroupIds :: Lens' CreateResolverEndpoint [Text]
- createResolverEndpoint_direction :: Lens' CreateResolverEndpoint ResolverEndpointDirection
- createResolverEndpoint_ipAddresses :: Lens' CreateResolverEndpoint (NonEmpty IpAddressRequest)
- data CreateResolverEndpointResponse = CreateResolverEndpointResponse' {}
- newCreateResolverEndpointResponse :: Int -> CreateResolverEndpointResponse
- createResolverEndpointResponse_resolverEndpoint :: Lens' CreateResolverEndpointResponse (Maybe ResolverEndpoint)
- createResolverEndpointResponse_httpStatus :: Lens' CreateResolverEndpointResponse Int
Creating a Request
data CreateResolverEndpoint Source #
See: newCreateResolverEndpoint
smart constructor.
CreateResolverEndpoint' | |
|
Instances
newCreateResolverEndpoint Source #
Create a value of CreateResolverEndpoint
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:name:CreateResolverEndpoint'
, createResolverEndpoint_name
- A friendly name that lets you easily find a configuration in the
Resolver dashboard in the Route 53 console.
$sel:tags:CreateResolverEndpoint'
, createResolverEndpoint_tags
- A list of the tag keys and values that you want to associate with the
endpoint.
$sel:creatorRequestId:CreateResolverEndpoint'
, createResolverEndpoint_creatorRequestId
- A unique string that identifies the request and that allows failed
requests to be retried without the risk of running the operation twice.
CreatorRequestId
can be any unique string, for example, a date/time
stamp.
$sel:securityGroupIds:CreateResolverEndpoint'
, createResolverEndpoint_securityGroupIds
- The ID of one or more security groups that you want to use to control
access to this VPC. The security group that you specify must include one
or more inbound rules (for inbound Resolver endpoints) or outbound rules
(for outbound Resolver endpoints). Inbound and outbound rules must allow
TCP and UDP access. For inbound access, open port 53. For outbound
access, open the port that you're using for DNS queries on your
network.
$sel:direction:CreateResolverEndpoint'
, createResolverEndpoint_direction
- Specify the applicable value:
INBOUND
: Resolver forwards DNS queries to the DNS service for a VPC from your networkOUTBOUND
: Resolver forwards DNS queries from the DNS service for a VPC to your network
$sel:ipAddresses:CreateResolverEndpoint'
, createResolverEndpoint_ipAddresses
- The subnets and IP addresses in your VPC that DNS queries originate from
(for outbound endpoints) or that you forward DNS queries to (for inbound
endpoints). The subnet ID uniquely identifies a VPC.
Request Lenses
createResolverEndpoint_name :: Lens' CreateResolverEndpoint (Maybe Text) Source #
A friendly name that lets you easily find a configuration in the Resolver dashboard in the Route 53 console.
createResolverEndpoint_tags :: Lens' CreateResolverEndpoint (Maybe [Tag]) Source #
A list of the tag keys and values that you want to associate with the endpoint.
createResolverEndpoint_creatorRequestId :: Lens' CreateResolverEndpoint Text Source #
A unique string that identifies the request and that allows failed
requests to be retried without the risk of running the operation twice.
CreatorRequestId
can be any unique string, for example, a date/time
stamp.
createResolverEndpoint_securityGroupIds :: Lens' CreateResolverEndpoint [Text] Source #
The ID of one or more security groups that you want to use to control access to this VPC. The security group that you specify must include one or more inbound rules (for inbound Resolver endpoints) or outbound rules (for outbound Resolver endpoints). Inbound and outbound rules must allow TCP and UDP access. For inbound access, open port 53. For outbound access, open the port that you're using for DNS queries on your network.
createResolverEndpoint_direction :: Lens' CreateResolverEndpoint ResolverEndpointDirection Source #
Specify the applicable value:
INBOUND
: Resolver forwards DNS queries to the DNS service for a VPC from your networkOUTBOUND
: Resolver forwards DNS queries from the DNS service for a VPC to your network
createResolverEndpoint_ipAddresses :: Lens' CreateResolverEndpoint (NonEmpty IpAddressRequest) Source #
The subnets and IP addresses in your VPC that DNS queries originate from (for outbound endpoints) or that you forward DNS queries to (for inbound endpoints). The subnet ID uniquely identifies a VPC.
Destructuring the Response
data CreateResolverEndpointResponse Source #
See: newCreateResolverEndpointResponse
smart constructor.
CreateResolverEndpointResponse' | |
|
Instances
Eq CreateResolverEndpointResponse Source # | |
Read CreateResolverEndpointResponse Source # | |
Show CreateResolverEndpointResponse Source # | |
Generic CreateResolverEndpointResponse Source # | |
NFData CreateResolverEndpointResponse Source # | |
Defined in Amazonka.Route53Resolver.CreateResolverEndpoint rnf :: CreateResolverEndpointResponse -> () # | |
type Rep CreateResolverEndpointResponse Source # | |
Defined in Amazonka.Route53Resolver.CreateResolverEndpoint type Rep CreateResolverEndpointResponse = D1 ('MetaData "CreateResolverEndpointResponse" "Amazonka.Route53Resolver.CreateResolverEndpoint" "libZSservicesZSamazonka-route53resolverZSamazonka-route53resolver" 'False) (C1 ('MetaCons "CreateResolverEndpointResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resolverEndpoint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ResolverEndpoint)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newCreateResolverEndpointResponse Source #
Create a value of CreateResolverEndpointResponse
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:resolverEndpoint:CreateResolverEndpointResponse'
, createResolverEndpointResponse_resolverEndpoint
- Information about the CreateResolverEndpoint
request, including the
status of the request.
$sel:httpStatus:CreateResolverEndpointResponse'
, createResolverEndpointResponse_httpStatus
- The response's http status code.
Response Lenses
createResolverEndpointResponse_resolverEndpoint :: Lens' CreateResolverEndpointResponse (Maybe ResolverEndpoint) Source #
Information about the CreateResolverEndpoint
request, including the
status of the request.
createResolverEndpointResponse_httpStatus :: Lens' CreateResolverEndpointResponse Int Source #
The response's http status code.