amazonka-transfer-2.0: Amazon Transfer Family SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Transfer.ListAgreements

Description

Returns a list of the agreements for the server that's identified by the ServerId that you supply. If you want to limit the results to a certain number, supply a value for the MaxResults parameter. If you ran the command previously and received a value for NextToken, you can supply that value to continue listing agreements from where you left off.

This operation returns paginated results.

Synopsis

Creating a Request

data ListAgreements Source #

See: newListAgreements smart constructor.

Constructors

ListAgreements' 

Fields

  • maxResults :: Maybe Natural

    The maximum number of agreements to return.

  • nextToken :: Maybe Text

    When you can get additional results from the ListAgreements call, a NextToken parameter is returned in the output. You can then pass in a subsequent command to the NextToken parameter to continue listing additional agreements.

  • serverId :: Text

    The identifier of the server for which you want a list of agreements.

Instances

Instances details
ToJSON ListAgreements Source # 
Instance details

Defined in Amazonka.Transfer.ListAgreements

ToHeaders ListAgreements Source # 
Instance details

Defined in Amazonka.Transfer.ListAgreements

ToPath ListAgreements Source # 
Instance details

Defined in Amazonka.Transfer.ListAgreements

ToQuery ListAgreements Source # 
Instance details

Defined in Amazonka.Transfer.ListAgreements

AWSPager ListAgreements Source # 
Instance details

Defined in Amazonka.Transfer.ListAgreements

AWSRequest ListAgreements Source # 
Instance details

Defined in Amazonka.Transfer.ListAgreements

Associated Types

type AWSResponse ListAgreements #

Generic ListAgreements Source # 
Instance details

Defined in Amazonka.Transfer.ListAgreements

Associated Types

type Rep ListAgreements :: Type -> Type #

Read ListAgreements Source # 
Instance details

Defined in Amazonka.Transfer.ListAgreements

Show ListAgreements Source # 
Instance details

Defined in Amazonka.Transfer.ListAgreements

NFData ListAgreements Source # 
Instance details

Defined in Amazonka.Transfer.ListAgreements

Methods

rnf :: ListAgreements -> () #

Eq ListAgreements Source # 
Instance details

Defined in Amazonka.Transfer.ListAgreements

Hashable ListAgreements Source # 
Instance details

Defined in Amazonka.Transfer.ListAgreements

type AWSResponse ListAgreements Source # 
Instance details

Defined in Amazonka.Transfer.ListAgreements

type Rep ListAgreements Source # 
Instance details

Defined in Amazonka.Transfer.ListAgreements

type Rep ListAgreements = D1 ('MetaData "ListAgreements" "Amazonka.Transfer.ListAgreements" "amazonka-transfer-2.0-JiqKYJwOo427yDlzvkXGLY" 'False) (C1 ('MetaCons "ListAgreements'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "serverId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newListAgreements Source #

Create a value of ListAgreements 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:maxResults:ListAgreements', listAgreements_maxResults - The maximum number of agreements to return.

ListAgreements, listAgreements_nextToken - When you can get additional results from the ListAgreements call, a NextToken parameter is returned in the output. You can then pass in a subsequent command to the NextToken parameter to continue listing additional agreements.

ListAgreements, listAgreements_serverId - The identifier of the server for which you want a list of agreements.

Request Lenses

listAgreements_maxResults :: Lens' ListAgreements (Maybe Natural) Source #

The maximum number of agreements to return.

listAgreements_nextToken :: Lens' ListAgreements (Maybe Text) Source #

When you can get additional results from the ListAgreements call, a NextToken parameter is returned in the output. You can then pass in a subsequent command to the NextToken parameter to continue listing additional agreements.

listAgreements_serverId :: Lens' ListAgreements Text Source #

The identifier of the server for which you want a list of agreements.

Destructuring the Response

data ListAgreementsResponse Source #

See: newListAgreementsResponse smart constructor.

Constructors

ListAgreementsResponse' 

Fields

  • nextToken :: Maybe Text

    Returns a token that you can use to call ListAgreements again and receive additional results, if there are any.

  • httpStatus :: Int

    The response's http status code.

  • agreements :: [ListedAgreement]

    Returns an array, where each item contains the details of an agreement.

Instances

Instances details
Generic ListAgreementsResponse Source # 
Instance details

Defined in Amazonka.Transfer.ListAgreements

Associated Types

type Rep ListAgreementsResponse :: Type -> Type #

Read ListAgreementsResponse Source # 
Instance details

Defined in Amazonka.Transfer.ListAgreements

Show ListAgreementsResponse Source # 
Instance details

Defined in Amazonka.Transfer.ListAgreements

NFData ListAgreementsResponse Source # 
Instance details

Defined in Amazonka.Transfer.ListAgreements

Methods

rnf :: ListAgreementsResponse -> () #

Eq ListAgreementsResponse Source # 
Instance details

Defined in Amazonka.Transfer.ListAgreements

type Rep ListAgreementsResponse Source # 
Instance details

Defined in Amazonka.Transfer.ListAgreements

type Rep ListAgreementsResponse = D1 ('MetaData "ListAgreementsResponse" "Amazonka.Transfer.ListAgreements" "amazonka-transfer-2.0-JiqKYJwOo427yDlzvkXGLY" 'False) (C1 ('MetaCons "ListAgreementsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "agreements") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [ListedAgreement]))))

newListAgreementsResponse Source #

Create a value of ListAgreementsResponse 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:

ListAgreements, listAgreementsResponse_nextToken - Returns a token that you can use to call ListAgreements again and receive additional results, if there are any.

$sel:httpStatus:ListAgreementsResponse', listAgreementsResponse_httpStatus - The response's http status code.

$sel:agreements:ListAgreementsResponse', listAgreementsResponse_agreements - Returns an array, where each item contains the details of an agreement.

Response Lenses

listAgreementsResponse_nextToken :: Lens' ListAgreementsResponse (Maybe Text) Source #

Returns a token that you can use to call ListAgreements again and receive additional results, if there are any.

listAgreementsResponse_agreements :: Lens' ListAgreementsResponse [ListedAgreement] Source #

Returns an array, where each item contains the details of an agreement.