libZSservicesZSamazonka-lightsailZSamazonka-lightsail
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.Lightsail.GetContactMethods

Description

Returns information about the configured contact methods. Specify a protocol in your request to return information about a specific contact method.

A contact method is used to send you notifications about your Amazon Lightsail resources. You can add one email address and one mobile phone number contact method in each AWS Region. However, SMS text messaging is not supported in some AWS Regions, and SMS text messages cannot be sent to some countries/regions. For more information, see Notifications in Amazon Lightsail.

Synopsis

Creating a Request

data GetContactMethods Source #

See: newGetContactMethods smart constructor.

Constructors

GetContactMethods' 

Fields

  • protocols :: Maybe [ContactProtocol]

    The protocols used to send notifications, such as Email, or SMS (text messaging).

    Specify a protocol in your request to return information about a specific contact method protocol.

Instances

Instances details
Eq GetContactMethods Source # 
Instance details

Defined in Amazonka.Lightsail.GetContactMethods

Read GetContactMethods Source # 
Instance details

Defined in Amazonka.Lightsail.GetContactMethods

Show GetContactMethods Source # 
Instance details

Defined in Amazonka.Lightsail.GetContactMethods

Generic GetContactMethods Source # 
Instance details

Defined in Amazonka.Lightsail.GetContactMethods

Associated Types

type Rep GetContactMethods :: Type -> Type #

NFData GetContactMethods Source # 
Instance details

Defined in Amazonka.Lightsail.GetContactMethods

Methods

rnf :: GetContactMethods -> () #

Hashable GetContactMethods Source # 
Instance details

Defined in Amazonka.Lightsail.GetContactMethods

ToJSON GetContactMethods Source # 
Instance details

Defined in Amazonka.Lightsail.GetContactMethods

AWSRequest GetContactMethods Source # 
Instance details

Defined in Amazonka.Lightsail.GetContactMethods

Associated Types

type AWSResponse GetContactMethods #

ToHeaders GetContactMethods Source # 
Instance details

Defined in Amazonka.Lightsail.GetContactMethods

ToPath GetContactMethods Source # 
Instance details

Defined in Amazonka.Lightsail.GetContactMethods

ToQuery GetContactMethods Source # 
Instance details

Defined in Amazonka.Lightsail.GetContactMethods

type Rep GetContactMethods Source # 
Instance details

Defined in Amazonka.Lightsail.GetContactMethods

type Rep GetContactMethods = D1 ('MetaData "GetContactMethods" "Amazonka.Lightsail.GetContactMethods" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "GetContactMethods'" 'PrefixI 'True) (S1 ('MetaSel ('Just "protocols") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ContactProtocol]))))
type AWSResponse GetContactMethods Source # 
Instance details

Defined in Amazonka.Lightsail.GetContactMethods

newGetContactMethods :: GetContactMethods Source #

Create a value of GetContactMethods 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:protocols:GetContactMethods', getContactMethods_protocols - The protocols used to send notifications, such as Email, or SMS (text messaging).

Specify a protocol in your request to return information about a specific contact method protocol.

Request Lenses

getContactMethods_protocols :: Lens' GetContactMethods (Maybe [ContactProtocol]) Source #

The protocols used to send notifications, such as Email, or SMS (text messaging).

Specify a protocol in your request to return information about a specific contact method protocol.

Destructuring the Response

data GetContactMethodsResponse Source #

See: newGetContactMethodsResponse smart constructor.

Constructors

GetContactMethodsResponse' 

Fields

Instances

Instances details
Eq GetContactMethodsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetContactMethods

Read GetContactMethodsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetContactMethods

Show GetContactMethodsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetContactMethods

Generic GetContactMethodsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetContactMethods

Associated Types

type Rep GetContactMethodsResponse :: Type -> Type #

NFData GetContactMethodsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetContactMethods

type Rep GetContactMethodsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetContactMethods

type Rep GetContactMethodsResponse = D1 ('MetaData "GetContactMethodsResponse" "Amazonka.Lightsail.GetContactMethods" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "GetContactMethodsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "contactMethods") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ContactMethod])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newGetContactMethodsResponse Source #

Create a value of GetContactMethodsResponse 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:contactMethods:GetContactMethodsResponse', getContactMethodsResponse_contactMethods - An array of objects that describe the contact methods.

$sel:httpStatus:GetContactMethodsResponse', getContactMethodsResponse_httpStatus - The response's http status code.

Response Lenses

getContactMethodsResponse_contactMethods :: Lens' GetContactMethodsResponse (Maybe [ContactMethod]) Source #

An array of objects that describe the contact methods.