libZSservicesZSamazonka-syntheticsZSamazonka-synthetics
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.Synthetics.DescribeCanaries

Description

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

Creating a Request

data DescribeCanaries Source #

See: newDescribeCanaries smart constructor.

Constructors

DescribeCanaries' 

Fields

  • nextToken :: Maybe Text

    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.

  • maxResults :: Maybe Natural

    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.

Instances

Instances details
Eq DescribeCanaries Source # 
Instance details

Defined in Amazonka.Synthetics.DescribeCanaries

Read DescribeCanaries Source # 
Instance details

Defined in Amazonka.Synthetics.DescribeCanaries

Show DescribeCanaries Source # 
Instance details

Defined in Amazonka.Synthetics.DescribeCanaries

Generic DescribeCanaries Source # 
Instance details

Defined in Amazonka.Synthetics.DescribeCanaries

Associated Types

type Rep DescribeCanaries :: Type -> Type #

NFData DescribeCanaries Source # 
Instance details

Defined in Amazonka.Synthetics.DescribeCanaries

Methods

rnf :: DescribeCanaries -> () #

Hashable DescribeCanaries Source # 
Instance details

Defined in Amazonka.Synthetics.DescribeCanaries

ToJSON DescribeCanaries Source # 
Instance details

Defined in Amazonka.Synthetics.DescribeCanaries

AWSRequest DescribeCanaries Source # 
Instance details

Defined in Amazonka.Synthetics.DescribeCanaries

Associated Types

type AWSResponse DescribeCanaries #

ToHeaders DescribeCanaries Source # 
Instance details

Defined in Amazonka.Synthetics.DescribeCanaries

ToPath DescribeCanaries Source # 
Instance details

Defined in Amazonka.Synthetics.DescribeCanaries

ToQuery DescribeCanaries Source # 
Instance details

Defined in Amazonka.Synthetics.DescribeCanaries

type Rep DescribeCanaries Source # 
Instance details

Defined in Amazonka.Synthetics.DescribeCanaries

type Rep DescribeCanaries = D1 ('MetaData "DescribeCanaries" "Amazonka.Synthetics.DescribeCanaries" "libZSservicesZSamazonka-syntheticsZSamazonka-synthetics" 'False) (C1 ('MetaCons "DescribeCanaries'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))))
type AWSResponse DescribeCanaries Source # 
Instance details

Defined in Amazonka.Synthetics.DescribeCanaries

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.

Constructors

DescribeCanariesResponse' 

Fields

  • canaries :: Maybe [Canary]

    Returns an array. Each item in the array contains the full information about one canary.

  • nextToken :: Maybe Text

    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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq DescribeCanariesResponse Source # 
Instance details

Defined in Amazonka.Synthetics.DescribeCanaries

Read DescribeCanariesResponse Source # 
Instance details

Defined in Amazonka.Synthetics.DescribeCanaries

Show DescribeCanariesResponse Source # 
Instance details

Defined in Amazonka.Synthetics.DescribeCanaries

Generic DescribeCanariesResponse Source # 
Instance details

Defined in Amazonka.Synthetics.DescribeCanaries

Associated Types

type Rep DescribeCanariesResponse :: Type -> Type #

NFData DescribeCanariesResponse Source # 
Instance details

Defined in Amazonka.Synthetics.DescribeCanaries

type Rep DescribeCanariesResponse Source # 
Instance details

Defined in Amazonka.Synthetics.DescribeCanaries

type Rep DescribeCanariesResponse = D1 ('MetaData "DescribeCanariesResponse" "Amazonka.Synthetics.DescribeCanaries" "libZSservicesZSamazonka-syntheticsZSamazonka-synthetics" 'False) (C1 ('MetaCons "DescribeCanariesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "canaries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Canary])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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.