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 |
Deletes a 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 DeleteContactMethod = DeleteContactMethod' {}
- newDeleteContactMethod :: ContactProtocol -> DeleteContactMethod
- deleteContactMethod_protocol :: Lens' DeleteContactMethod ContactProtocol
- data DeleteContactMethodResponse = DeleteContactMethodResponse' {
- operations :: Maybe [Operation]
- httpStatus :: Int
- newDeleteContactMethodResponse :: Int -> DeleteContactMethodResponse
- deleteContactMethodResponse_operations :: Lens' DeleteContactMethodResponse (Maybe [Operation])
- deleteContactMethodResponse_httpStatus :: Lens' DeleteContactMethodResponse Int
Creating a Request
data DeleteContactMethod Source #
See: newDeleteContactMethod
smart constructor.
DeleteContactMethod' | |
|
Instances
newDeleteContactMethod Source #
Create a value of DeleteContactMethod
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:protocol:DeleteContactMethod'
, deleteContactMethod_protocol
- The protocol that will be deleted, such as Email
or SMS
(text
messaging).
To delete an Email
and an SMS
contact method if you added both, you
must run separate DeleteContactMethod
actions to delete each protocol.
Request Lenses
deleteContactMethod_protocol :: Lens' DeleteContactMethod ContactProtocol Source #
The protocol that will be deleted, such as Email
or SMS
(text
messaging).
To delete an Email
and an SMS
contact method if you added both, you
must run separate DeleteContactMethod
actions to delete each protocol.
Destructuring the Response
data DeleteContactMethodResponse Source #
See: newDeleteContactMethodResponse
smart constructor.
DeleteContactMethodResponse' | |
|
Instances
newDeleteContactMethodResponse Source #
Create a value of DeleteContactMethodResponse
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:operations:DeleteContactMethodResponse'
, deleteContactMethodResponse_operations
- An array of objects that describe the result of the action, such as the
status of the request, the timestamp of the request, and the resources
affected by the request.
$sel:httpStatus:DeleteContactMethodResponse'
, deleteContactMethodResponse_httpStatus
- The response's http status code.
Response Lenses
deleteContactMethodResponse_operations :: Lens' DeleteContactMethodResponse (Maybe [Operation]) Source #
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
deleteContactMethodResponse_httpStatus :: Lens' DeleteContactMethodResponse Int Source #
The response's http status code.