libZSservicesZSamazonka-sesv2ZSamazonka-sesv2
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.SESV2.ListContacts

Description

Lists the contacts present in a specific contact list.

Synopsis

Creating a Request

data ListContacts Source #

See: newListContacts smart constructor.

Constructors

ListContacts' 

Fields

  • nextToken :: Maybe Text

    A string token indicating that there might be additional contacts available to be listed. Use the token provided in the Response to use in the subsequent call to ListContacts with the same parameters to retrieve the next page of contacts.

  • filter' :: Maybe ListContactsFilter

    A filter that can be applied to a list of contacts.

  • pageSize :: Maybe Int

    The number of contacts that may be returned at once, which is dependent on if there are more or less contacts than the value of the PageSize. Use this parameter to paginate results. If additional contacts exist beyond the specified limit, the NextToken element is sent in the response. Use the NextToken value in subsequent requests to retrieve additional contacts.

  • contactListName :: Text

    The name of the contact list.

Instances

Instances details
Eq ListContacts Source # 
Instance details

Defined in Amazonka.SESV2.ListContacts

Read ListContacts Source # 
Instance details

Defined in Amazonka.SESV2.ListContacts

Show ListContacts Source # 
Instance details

Defined in Amazonka.SESV2.ListContacts

Generic ListContacts Source # 
Instance details

Defined in Amazonka.SESV2.ListContacts

Associated Types

type Rep ListContacts :: Type -> Type #

NFData ListContacts Source # 
Instance details

Defined in Amazonka.SESV2.ListContacts

Methods

rnf :: ListContacts -> () #

Hashable ListContacts Source # 
Instance details

Defined in Amazonka.SESV2.ListContacts

AWSRequest ListContacts Source # 
Instance details

Defined in Amazonka.SESV2.ListContacts

Associated Types

type AWSResponse ListContacts #

ToHeaders ListContacts Source # 
Instance details

Defined in Amazonka.SESV2.ListContacts

ToPath ListContacts Source # 
Instance details

Defined in Amazonka.SESV2.ListContacts

ToQuery ListContacts Source # 
Instance details

Defined in Amazonka.SESV2.ListContacts

type Rep ListContacts Source # 
Instance details

Defined in Amazonka.SESV2.ListContacts

type Rep ListContacts = D1 ('MetaData "ListContacts" "Amazonka.SESV2.ListContacts" "libZSservicesZSamazonka-sesv2ZSamazonka-sesv2" 'False) (C1 ('MetaCons "ListContacts'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "filter'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ListContactsFilter))) :*: (S1 ('MetaSel ('Just "pageSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "contactListName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse ListContacts Source # 
Instance details

Defined in Amazonka.SESV2.ListContacts

newListContacts Source #

Create a value of ListContacts 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:ListContacts', listContacts_nextToken - A string token indicating that there might be additional contacts available to be listed. Use the token provided in the Response to use in the subsequent call to ListContacts with the same parameters to retrieve the next page of contacts.

$sel:filter':ListContacts', listContacts_filter - A filter that can be applied to a list of contacts.

$sel:pageSize:ListContacts', listContacts_pageSize - The number of contacts that may be returned at once, which is dependent on if there are more or less contacts than the value of the PageSize. Use this parameter to paginate results. If additional contacts exist beyond the specified limit, the NextToken element is sent in the response. Use the NextToken value in subsequent requests to retrieve additional contacts.

$sel:contactListName:ListContacts', listContacts_contactListName - The name of the contact list.

Request Lenses

listContacts_nextToken :: Lens' ListContacts (Maybe Text) Source #

A string token indicating that there might be additional contacts available to be listed. Use the token provided in the Response to use in the subsequent call to ListContacts with the same parameters to retrieve the next page of contacts.

listContacts_filter :: Lens' ListContacts (Maybe ListContactsFilter) Source #

A filter that can be applied to a list of contacts.

listContacts_pageSize :: Lens' ListContacts (Maybe Int) Source #

The number of contacts that may be returned at once, which is dependent on if there are more or less contacts than the value of the PageSize. Use this parameter to paginate results. If additional contacts exist beyond the specified limit, the NextToken element is sent in the response. Use the NextToken value in subsequent requests to retrieve additional contacts.

Destructuring the Response

data ListContactsResponse Source #

See: newListContactsResponse smart constructor.

Constructors

ListContactsResponse' 

Fields

  • nextToken :: Maybe Text

    A string token indicating that there might be additional contacts available to be listed. Copy this token to a subsequent call to ListContacts with the same parameters to retrieve the next page of contacts.

  • contacts :: Maybe [Contact]

    The contacts present in a specific contact list.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListContactsResponse Source # 
Instance details

Defined in Amazonka.SESV2.ListContacts

Read ListContactsResponse Source # 
Instance details

Defined in Amazonka.SESV2.ListContacts

Show ListContactsResponse Source # 
Instance details

Defined in Amazonka.SESV2.ListContacts

Generic ListContactsResponse Source # 
Instance details

Defined in Amazonka.SESV2.ListContacts

Associated Types

type Rep ListContactsResponse :: Type -> Type #

NFData ListContactsResponse Source # 
Instance details

Defined in Amazonka.SESV2.ListContacts

Methods

rnf :: ListContactsResponse -> () #

type Rep ListContactsResponse Source # 
Instance details

Defined in Amazonka.SESV2.ListContacts

type Rep ListContactsResponse = D1 ('MetaData "ListContactsResponse" "Amazonka.SESV2.ListContacts" "libZSservicesZSamazonka-sesv2ZSamazonka-sesv2" 'False) (C1 ('MetaCons "ListContactsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "contacts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Contact])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListContactsResponse Source #

Create a value of ListContactsResponse 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:ListContacts', listContactsResponse_nextToken - A string token indicating that there might be additional contacts available to be listed. Copy this token to a subsequent call to ListContacts with the same parameters to retrieve the next page of contacts.

$sel:contacts:ListContactsResponse', listContactsResponse_contacts - The contacts present in a specific contact list.

$sel:httpStatus:ListContactsResponse', listContactsResponse_httpStatus - The response's http status code.

Response Lenses

listContactsResponse_nextToken :: Lens' ListContactsResponse (Maybe Text) Source #

A string token indicating that there might be additional contacts available to be listed. Copy this token to a subsequent call to ListContacts with the same parameters to retrieve the next page of contacts.

listContactsResponse_contacts :: Lens' ListContactsResponse (Maybe [Contact]) Source #

The contacts present in a specific contact list.