amazonka-ssm-contacts-2.0: Amazon Systems Manager Incident Manager Contacts 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.SSMContacts.ListContacts

Description

Lists all contacts and escalation plans in Incident Manager.

This operation returns paginated results.

Synopsis

Creating a Request

data ListContacts Source #

See: newListContacts smart constructor.

Constructors

ListContacts' 

Fields

Instances

Instances details
ToJSON ListContacts Source # 
Instance details

Defined in Amazonka.SSMContacts.ListContacts

ToHeaders ListContacts Source # 
Instance details

Defined in Amazonka.SSMContacts.ListContacts

ToPath ListContacts Source # 
Instance details

Defined in Amazonka.SSMContacts.ListContacts

ToQuery ListContacts Source # 
Instance details

Defined in Amazonka.SSMContacts.ListContacts

AWSPager ListContacts Source # 
Instance details

Defined in Amazonka.SSMContacts.ListContacts

AWSRequest ListContacts Source # 
Instance details

Defined in Amazonka.SSMContacts.ListContacts

Associated Types

type AWSResponse ListContacts #

Generic ListContacts Source # 
Instance details

Defined in Amazonka.SSMContacts.ListContacts

Associated Types

type Rep ListContacts :: Type -> Type #

Read ListContacts Source # 
Instance details

Defined in Amazonka.SSMContacts.ListContacts

Show ListContacts Source # 
Instance details

Defined in Amazonka.SSMContacts.ListContacts

NFData ListContacts Source # 
Instance details

Defined in Amazonka.SSMContacts.ListContacts

Methods

rnf :: ListContacts -> () #

Eq ListContacts Source # 
Instance details

Defined in Amazonka.SSMContacts.ListContacts

Hashable ListContacts Source # 
Instance details

Defined in Amazonka.SSMContacts.ListContacts

type AWSResponse ListContacts Source # 
Instance details

Defined in Amazonka.SSMContacts.ListContacts

type Rep ListContacts Source # 
Instance details

Defined in Amazonka.SSMContacts.ListContacts

type Rep ListContacts = D1 ('MetaData "ListContacts" "Amazonka.SSMContacts.ListContacts" "amazonka-ssm-contacts-2.0-ItNmOyIH300HIsnE5QTEXx" 'False) (C1 ('MetaCons "ListContacts'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "aliasPrefix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ContactType)))))

newListContacts :: ListContacts 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:aliasPrefix:ListContacts', listContacts_aliasPrefix - Used to list only contacts who's aliases start with the specified prefix.

$sel:maxResults:ListContacts', listContacts_maxResults - The maximum number of contacts and escalation plans per page of results.

ListContacts, listContacts_nextToken - The pagination token to continue to the next page of results.

ListContacts, listContacts_type - The type of contact. A contact is type PERSONAL and an escalation plan is type ESCALATION.

Request Lenses

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

Used to list only contacts who's aliases start with the specified prefix.

listContacts_maxResults :: Lens' ListContacts (Maybe Natural) Source #

The maximum number of contacts and escalation plans per page of results.

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

The pagination token to continue to the next page of results.

listContacts_type :: Lens' ListContacts (Maybe ContactType) Source #

The type of contact. A contact is type PERSONAL and an escalation plan is type ESCALATION.

Destructuring the Response

data ListContactsResponse Source #

See: newListContactsResponse smart constructor.

Constructors

ListContactsResponse' 

Fields

Instances

Instances details
Generic ListContactsResponse Source # 
Instance details

Defined in Amazonka.SSMContacts.ListContacts

Associated Types

type Rep ListContactsResponse :: Type -> Type #

Read ListContactsResponse Source # 
Instance details

Defined in Amazonka.SSMContacts.ListContacts

Show ListContactsResponse Source # 
Instance details

Defined in Amazonka.SSMContacts.ListContacts

NFData ListContactsResponse Source # 
Instance details

Defined in Amazonka.SSMContacts.ListContacts

Methods

rnf :: ListContactsResponse -> () #

Eq ListContactsResponse Source # 
Instance details

Defined in Amazonka.SSMContacts.ListContacts

type Rep ListContactsResponse Source # 
Instance details

Defined in Amazonka.SSMContacts.ListContacts

type Rep ListContactsResponse = D1 ('MetaData "ListContactsResponse" "Amazonka.SSMContacts.ListContacts" "amazonka-ssm-contacts-2.0-ItNmOyIH300HIsnE5QTEXx" '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 - A list of the contacts and escalation plans in your Incident Manager account.

ListContacts, listContactsResponse_nextToken - The pagination token to continue to the next page of results.

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

Response Lenses

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

A list of the contacts and escalation plans in your Incident Manager account.

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

The pagination token to continue to the next page of results.