amazonka-sesv2-2.0: Amazon Simple Email Service 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.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

  • filter' :: Maybe ListContactsFilter

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

  • 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.

  • 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
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

AWSRequest ListContacts Source # 
Instance details

Defined in Amazonka.SESV2.ListContacts

Associated Types

type AWSResponse ListContacts #

Generic ListContacts Source # 
Instance details

Defined in Amazonka.SESV2.ListContacts

Associated Types

type Rep ListContacts :: Type -> Type #

Read ListContacts Source # 
Instance details

Defined in Amazonka.SESV2.ListContacts

Show ListContacts Source # 
Instance details

Defined in Amazonka.SESV2.ListContacts

NFData ListContacts Source # 
Instance details

Defined in Amazonka.SESV2.ListContacts

Methods

rnf :: ListContacts -> () #

Eq ListContacts Source # 
Instance details

Defined in Amazonka.SESV2.ListContacts

Hashable ListContacts Source # 
Instance details

Defined in Amazonka.SESV2.ListContacts

type AWSResponse 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" "amazonka-sesv2-2.0-KPRo1S1CRfP4bs5VKSgHvB" 'False) (C1 ('MetaCons "ListContacts'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "filter'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ListContactsFilter)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "pageSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "contactListName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

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:filter':ListContacts', listContacts_filter - A filter that can be applied to a list of contacts.

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: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.

ListContacts, listContacts_contactListName - The name of the contact list.

Request Lenses

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

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

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_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

  • contacts :: Maybe [Contact]

    The contacts present in a specific contact list.

  • 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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListContactsResponse Source # 
Instance details

Defined in Amazonka.SESV2.ListContacts

Associated Types

type Rep ListContactsResponse :: Type -> Type #

Read ListContactsResponse Source # 
Instance details

Defined in Amazonka.SESV2.ListContacts

Show ListContactsResponse Source # 
Instance details

Defined in Amazonka.SESV2.ListContacts

NFData ListContactsResponse Source # 
Instance details

Defined in Amazonka.SESV2.ListContacts

Methods

rnf :: ListContactsResponse -> () #

Eq ListContactsResponse Source # 
Instance details

Defined in Amazonka.SESV2.ListContacts

type Rep ListContactsResponse Source # 
Instance details

Defined in Amazonka.SESV2.ListContacts

type Rep ListContactsResponse = D1 ('MetaData "ListContactsResponse" "Amazonka.SESV2.ListContacts" "amazonka-sesv2-2.0-KPRo1S1CRfP4bs5VKSgHvB" 'False) (C1 ('MetaCons "ListContactsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "contacts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Contact])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: 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:contacts:ListContactsResponse', listContactsResponse_contacts - The contacts present in a specific contact list.

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:httpStatus:ListContactsResponse', listContactsResponse_httpStatus - The response's http status code.

Response Lenses

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

The contacts present in a specific contact list.

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.