Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data GetContactMethods = GetContactMethods' {}
- newGetContactMethods :: GetContactMethods
- getContactMethods_protocols :: Lens' GetContactMethods (Maybe [ContactProtocol])
- data GetContactMethodsResponse = GetContactMethodsResponse' {}
- newGetContactMethodsResponse :: Int -> GetContactMethodsResponse
- getContactMethodsResponse_contactMethods :: Lens' GetContactMethodsResponse (Maybe [ContactMethod])
- getContactMethodsResponse_httpStatus :: Lens' GetContactMethodsResponse Int
Creating a Request
data GetContactMethods Source #
See: newGetContactMethods
smart constructor.
GetContactMethods' | |
|
Instances
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.
GetContactMethodsResponse' | |
|
Instances
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.
getContactMethodsResponse_httpStatus :: Lens' GetContactMethodsResponse Int Source #
The response's http status code.