libZSservicesZSamazonka-detectiveZSamazonka-detective
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.Detective.ListGraphs

Description

Returns the list of behavior graphs that the calling account is an administrator account of. This operation can only be called by an administrator account.

Because an account can currently only be the administrator of one behavior graph within a Region, the results always contain a single behavior graph.

Synopsis

Creating a Request

data ListGraphs Source #

See: newListGraphs smart constructor.

Constructors

ListGraphs' 

Fields

  • nextToken :: Maybe Text

    For requests to get the next page of results, the pagination token that was returned with the previous set of results. The initial request does not include a pagination token.

  • maxResults :: Maybe Natural

    The maximum number of graphs to return at a time. The total must be less than the overall limit on the number of results to return, which is currently 200.

Instances

Instances details
Eq ListGraphs Source # 
Instance details

Defined in Amazonka.Detective.ListGraphs

Read ListGraphs Source # 
Instance details

Defined in Amazonka.Detective.ListGraphs

Show ListGraphs Source # 
Instance details

Defined in Amazonka.Detective.ListGraphs

Generic ListGraphs Source # 
Instance details

Defined in Amazonka.Detective.ListGraphs

Associated Types

type Rep ListGraphs :: Type -> Type #

NFData ListGraphs Source # 
Instance details

Defined in Amazonka.Detective.ListGraphs

Methods

rnf :: ListGraphs -> () #

Hashable ListGraphs Source # 
Instance details

Defined in Amazonka.Detective.ListGraphs

ToJSON ListGraphs Source # 
Instance details

Defined in Amazonka.Detective.ListGraphs

AWSRequest ListGraphs Source # 
Instance details

Defined in Amazonka.Detective.ListGraphs

Associated Types

type AWSResponse ListGraphs #

ToHeaders ListGraphs Source # 
Instance details

Defined in Amazonka.Detective.ListGraphs

Methods

toHeaders :: ListGraphs -> [Header] #

ToPath ListGraphs Source # 
Instance details

Defined in Amazonka.Detective.ListGraphs

ToQuery ListGraphs Source # 
Instance details

Defined in Amazonka.Detective.ListGraphs

type Rep ListGraphs Source # 
Instance details

Defined in Amazonka.Detective.ListGraphs

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

Defined in Amazonka.Detective.ListGraphs

newListGraphs :: ListGraphs Source #

Create a value of ListGraphs 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:ListGraphs', listGraphs_nextToken - For requests to get the next page of results, the pagination token that was returned with the previous set of results. The initial request does not include a pagination token.

$sel:maxResults:ListGraphs', listGraphs_maxResults - The maximum number of graphs to return at a time. The total must be less than the overall limit on the number of results to return, which is currently 200.

Request Lenses

listGraphs_nextToken :: Lens' ListGraphs (Maybe Text) Source #

For requests to get the next page of results, the pagination token that was returned with the previous set of results. The initial request does not include a pagination token.

listGraphs_maxResults :: Lens' ListGraphs (Maybe Natural) Source #

The maximum number of graphs to return at a time. The total must be less than the overall limit on the number of results to return, which is currently 200.

Destructuring the Response

data ListGraphsResponse Source #

See: newListGraphsResponse smart constructor.

Constructors

ListGraphsResponse' 

Fields

  • nextToken :: Maybe Text

    If there are more behavior graphs remaining in the results, then this is the pagination token to use to request the next page of behavior graphs.

  • graphList :: Maybe [Graph]

    A list of behavior graphs that the account is an administrator account for.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListGraphsResponse Source # 
Instance details

Defined in Amazonka.Detective.ListGraphs

Read ListGraphsResponse Source # 
Instance details

Defined in Amazonka.Detective.ListGraphs

Show ListGraphsResponse Source # 
Instance details

Defined in Amazonka.Detective.ListGraphs

Generic ListGraphsResponse Source # 
Instance details

Defined in Amazonka.Detective.ListGraphs

Associated Types

type Rep ListGraphsResponse :: Type -> Type #

NFData ListGraphsResponse Source # 
Instance details

Defined in Amazonka.Detective.ListGraphs

Methods

rnf :: ListGraphsResponse -> () #

type Rep ListGraphsResponse Source # 
Instance details

Defined in Amazonka.Detective.ListGraphs

type Rep ListGraphsResponse = D1 ('MetaData "ListGraphsResponse" "Amazonka.Detective.ListGraphs" "libZSservicesZSamazonka-detectiveZSamazonka-detective" 'False) (C1 ('MetaCons "ListGraphsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "graphList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Graph])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListGraphsResponse Source #

Create a value of ListGraphsResponse 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:ListGraphs', listGraphsResponse_nextToken - If there are more behavior graphs remaining in the results, then this is the pagination token to use to request the next page of behavior graphs.

$sel:graphList:ListGraphsResponse', listGraphsResponse_graphList - A list of behavior graphs that the account is an administrator account for.

$sel:httpStatus:ListGraphsResponse', listGraphsResponse_httpStatus - The response's http status code.

Response Lenses

listGraphsResponse_nextToken :: Lens' ListGraphsResponse (Maybe Text) Source #

If there are more behavior graphs remaining in the results, then this is the pagination token to use to request the next page of behavior graphs.

listGraphsResponse_graphList :: Lens' ListGraphsResponse (Maybe [Graph]) Source #

A list of behavior graphs that the account is an administrator account for.