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 |
Send an request with an empty body to the regional API endpoint to get your account API endpoint.
This operation returns paginated results.
Synopsis
- data DescribeEndpoints = DescribeEndpoints' {}
- newDescribeEndpoints :: DescribeEndpoints
- describeEndpoints_mode :: Lens' DescribeEndpoints (Maybe DescribeEndpointsMode)
- describeEndpoints_nextToken :: Lens' DescribeEndpoints (Maybe Text)
- describeEndpoints_maxResults :: Lens' DescribeEndpoints (Maybe Int)
- data DescribeEndpointsResponse = DescribeEndpointsResponse' {}
- newDescribeEndpointsResponse :: Int -> DescribeEndpointsResponse
- describeEndpointsResponse_nextToken :: Lens' DescribeEndpointsResponse (Maybe Text)
- describeEndpointsResponse_endpoints :: Lens' DescribeEndpointsResponse (Maybe [Endpoint])
- describeEndpointsResponse_httpStatus :: Lens' DescribeEndpointsResponse Int
Creating a Request
data DescribeEndpoints Source #
DescribeEndpointsRequest
See: newDescribeEndpoints
smart constructor.
DescribeEndpoints' | |
|
Instances
newDescribeEndpoints :: DescribeEndpoints Source #
Create a value of DescribeEndpoints
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:mode:DescribeEndpoints'
, describeEndpoints_mode
- Optional field, defaults to DEFAULT. Specify DEFAULT for this operation
to return your endpoints if any exist, or to create an endpoint for you
and return it if one doesn't already exist. Specify GET_ONLY to return
your endpoints if any exist, or an empty list if none exist.
$sel:nextToken:DescribeEndpoints'
, describeEndpoints_nextToken
- Use this string, provided with the response to a previous request, to
request the next batch of endpoints.
$sel:maxResults:DescribeEndpoints'
, describeEndpoints_maxResults
- Optional. Max number of endpoints, up to twenty, that will be returned
at one time.
Request Lenses
describeEndpoints_mode :: Lens' DescribeEndpoints (Maybe DescribeEndpointsMode) Source #
Optional field, defaults to DEFAULT. Specify DEFAULT for this operation to return your endpoints if any exist, or to create an endpoint for you and return it if one doesn't already exist. Specify GET_ONLY to return your endpoints if any exist, or an empty list if none exist.
describeEndpoints_nextToken :: Lens' DescribeEndpoints (Maybe Text) Source #
Use this string, provided with the response to a previous request, to request the next batch of endpoints.
describeEndpoints_maxResults :: Lens' DescribeEndpoints (Maybe Int) Source #
Optional. Max number of endpoints, up to twenty, that will be returned at one time.
Destructuring the Response
data DescribeEndpointsResponse Source #
See: newDescribeEndpointsResponse
smart constructor.
Instances
newDescribeEndpointsResponse Source #
Create a value of DescribeEndpointsResponse
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:nextToken:DescribeEndpoints'
, describeEndpointsResponse_nextToken
- Use this string to request the next batch of endpoints.
$sel:endpoints:DescribeEndpointsResponse'
, describeEndpointsResponse_endpoints
- List of endpoints
$sel:httpStatus:DescribeEndpointsResponse'
, describeEndpointsResponse_httpStatus
- The response's http status code.
Response Lenses
describeEndpointsResponse_nextToken :: Lens' DescribeEndpointsResponse (Maybe Text) Source #
Use this string to request the next batch of endpoints.
describeEndpointsResponse_endpoints :: Lens' DescribeEndpointsResponse (Maybe [Endpoint]) Source #
List of endpoints
describeEndpointsResponse_httpStatus :: Lens' DescribeEndpointsResponse Int Source #
The response's http status code.