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 |
This operation returns a list of the canaries in your account, along with full details about each canary.
This operation does not have resource-level authorization, so if a user
is able to use DescribeCanaries
, the user can see all of the canaries
in the account. A deny policy can only be used to restrict access to all
canaries. It cannot be used on specific resources.
Synopsis
- data DescribeCanaries = DescribeCanaries' {}
- newDescribeCanaries :: DescribeCanaries
- describeCanaries_nextToken :: Lens' DescribeCanaries (Maybe Text)
- describeCanaries_maxResults :: Lens' DescribeCanaries (Maybe Natural)
- data DescribeCanariesResponse = DescribeCanariesResponse' {}
- newDescribeCanariesResponse :: Int -> DescribeCanariesResponse
- describeCanariesResponse_canaries :: Lens' DescribeCanariesResponse (Maybe [Canary])
- describeCanariesResponse_nextToken :: Lens' DescribeCanariesResponse (Maybe Text)
- describeCanariesResponse_httpStatus :: Lens' DescribeCanariesResponse Int
Creating a Request
data DescribeCanaries Source #
See: newDescribeCanaries
smart constructor.
DescribeCanaries' | |
|
Instances
newDescribeCanaries :: DescribeCanaries Source #
Create a value of DescribeCanaries
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:DescribeCanaries'
, describeCanaries_nextToken
- A token that indicates that there is more data available. You can use
this token in a subsequent operation to retrieve the next set of
results.
$sel:maxResults:DescribeCanaries'
, describeCanaries_maxResults
- Specify this parameter to limit how many canaries are returned each time
you use the DescribeCanaries
operation. If you omit this parameter,
the default of 100 is used.
Request Lenses
describeCanaries_nextToken :: Lens' DescribeCanaries (Maybe Text) Source #
A token that indicates that there is more data available. You can use this token in a subsequent operation to retrieve the next set of results.
describeCanaries_maxResults :: Lens' DescribeCanaries (Maybe Natural) Source #
Specify this parameter to limit how many canaries are returned each time
you use the DescribeCanaries
operation. If you omit this parameter,
the default of 100 is used.
Destructuring the Response
data DescribeCanariesResponse Source #
See: newDescribeCanariesResponse
smart constructor.
DescribeCanariesResponse' | |
|
Instances
newDescribeCanariesResponse Source #
Create a value of DescribeCanariesResponse
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:canaries:DescribeCanariesResponse'
, describeCanariesResponse_canaries
- Returns an array. Each item in the array contains the full information
about one canary.
$sel:nextToken:DescribeCanaries'
, describeCanariesResponse_nextToken
- A token that indicates that there is more data available. You can use
this token in a subsequent DescribeCanaries
operation to retrieve the
next set of results.
$sel:httpStatus:DescribeCanariesResponse'
, describeCanariesResponse_httpStatus
- The response's http status code.
Response Lenses
describeCanariesResponse_canaries :: Lens' DescribeCanariesResponse (Maybe [Canary]) Source #
Returns an array. Each item in the array contains the full information about one canary.
describeCanariesResponse_nextToken :: Lens' DescribeCanariesResponse (Maybe Text) Source #
A token that indicates that there is more data available. You can use
this token in a subsequent DescribeCanaries
operation to retrieve the
next set of results.
describeCanariesResponse_httpStatus :: Lens' DescribeCanariesResponse Int Source #
The response's http status code.