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 |
Provides a complete mapping from the public accelerator IP address and port to destination EC2 instance IP addresses and ports in the virtual public cloud (VPC) subnet endpoint for a custom routing accelerator. For each subnet endpoint that you add, Global Accelerator creates a new static port mapping for the accelerator. The port mappings don't change after Global Accelerator generates them, so you can retrieve and cache the full mapping on your servers.
If you remove a subnet from your accelerator, Global Accelerator removes (reclaims) the port mappings. If you add a subnet to your accelerator, Global Accelerator creates new port mappings (the existing ones don't change). If you add or remove EC2 instances in your subnet, the port mappings don't change, because the mappings are created when you add the subnet to Global Accelerator.
The mappings also include a flag for each destination denoting which destination IP addresses and ports are allowed or denied traffic.
This operation returns paginated results.
Synopsis
- data ListCustomRoutingPortMappings = ListCustomRoutingPortMappings' {}
- newListCustomRoutingPortMappings :: Text -> ListCustomRoutingPortMappings
- listCustomRoutingPortMappings_endpointGroupArn :: Lens' ListCustomRoutingPortMappings (Maybe Text)
- listCustomRoutingPortMappings_nextToken :: Lens' ListCustomRoutingPortMappings (Maybe Text)
- listCustomRoutingPortMappings_maxResults :: Lens' ListCustomRoutingPortMappings (Maybe Natural)
- listCustomRoutingPortMappings_acceleratorArn :: Lens' ListCustomRoutingPortMappings Text
- data ListCustomRoutingPortMappingsResponse = ListCustomRoutingPortMappingsResponse' {
- portMappings :: Maybe [PortMapping]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListCustomRoutingPortMappingsResponse :: Int -> ListCustomRoutingPortMappingsResponse
- listCustomRoutingPortMappingsResponse_portMappings :: Lens' ListCustomRoutingPortMappingsResponse (Maybe [PortMapping])
- listCustomRoutingPortMappingsResponse_nextToken :: Lens' ListCustomRoutingPortMappingsResponse (Maybe Text)
- listCustomRoutingPortMappingsResponse_httpStatus :: Lens' ListCustomRoutingPortMappingsResponse Int
Creating a Request
data ListCustomRoutingPortMappings Source #
See: newListCustomRoutingPortMappings
smart constructor.
ListCustomRoutingPortMappings' | |
|
Instances
newListCustomRoutingPortMappings Source #
Create a value of ListCustomRoutingPortMappings
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:endpointGroupArn:ListCustomRoutingPortMappings'
, listCustomRoutingPortMappings_endpointGroupArn
- The Amazon Resource Name (ARN) of the endpoint group to list the custom
routing port mappings for.
$sel:nextToken:ListCustomRoutingPortMappings'
, listCustomRoutingPortMappings_nextToken
- The token for the next set of results. You receive this token from a
previous call.
$sel:maxResults:ListCustomRoutingPortMappings'
, listCustomRoutingPortMappings_maxResults
- The number of destination port mappings that you want to return with
this call. The default value is 10.
$sel:acceleratorArn:ListCustomRoutingPortMappings'
, listCustomRoutingPortMappings_acceleratorArn
- The Amazon Resource Name (ARN) of the accelerator to list the custom
routing port mappings for.
Request Lenses
listCustomRoutingPortMappings_endpointGroupArn :: Lens' ListCustomRoutingPortMappings (Maybe Text) Source #
The Amazon Resource Name (ARN) of the endpoint group to list the custom routing port mappings for.
listCustomRoutingPortMappings_nextToken :: Lens' ListCustomRoutingPortMappings (Maybe Text) Source #
The token for the next set of results. You receive this token from a previous call.
listCustomRoutingPortMappings_maxResults :: Lens' ListCustomRoutingPortMappings (Maybe Natural) Source #
The number of destination port mappings that you want to return with this call. The default value is 10.
listCustomRoutingPortMappings_acceleratorArn :: Lens' ListCustomRoutingPortMappings Text Source #
The Amazon Resource Name (ARN) of the accelerator to list the custom routing port mappings for.
Destructuring the Response
data ListCustomRoutingPortMappingsResponse Source #
See: newListCustomRoutingPortMappingsResponse
smart constructor.
ListCustomRoutingPortMappingsResponse' | |
|
Instances
newListCustomRoutingPortMappingsResponse Source #
Create a value of ListCustomRoutingPortMappingsResponse
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:portMappings:ListCustomRoutingPortMappingsResponse'
, listCustomRoutingPortMappingsResponse_portMappings
- The port mappings for a custom routing accelerator.
$sel:nextToken:ListCustomRoutingPortMappings'
, listCustomRoutingPortMappingsResponse_nextToken
- The token for the next set of results. You receive this token from a
previous call.
$sel:httpStatus:ListCustomRoutingPortMappingsResponse'
, listCustomRoutingPortMappingsResponse_httpStatus
- The response's http status code.
Response Lenses
listCustomRoutingPortMappingsResponse_portMappings :: Lens' ListCustomRoutingPortMappingsResponse (Maybe [PortMapping]) Source #
The port mappings for a custom routing accelerator.
listCustomRoutingPortMappingsResponse_nextToken :: Lens' ListCustomRoutingPortMappingsResponse (Maybe Text) Source #
The token for the next set of results. You receive this token from a previous call.
listCustomRoutingPortMappingsResponse_httpStatus :: Lens' ListCustomRoutingPortMappingsResponse Int Source #
The response's http status code.