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

Description

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

Creating a Request

data DeleteContactMethod Source #

See: newDeleteContactMethod smart constructor.

Constructors

DeleteContactMethod' 

Fields

  • protocol :: ContactProtocol

    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.

Instances

Instances details
Eq DeleteContactMethod Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteContactMethod

Read DeleteContactMethod Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteContactMethod

Show DeleteContactMethod Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteContactMethod

Generic DeleteContactMethod Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteContactMethod

Associated Types

type Rep DeleteContactMethod :: Type -> Type #

NFData DeleteContactMethod Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteContactMethod

Methods

rnf :: DeleteContactMethod -> () #

Hashable DeleteContactMethod Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteContactMethod

ToJSON DeleteContactMethod Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteContactMethod

AWSRequest DeleteContactMethod Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteContactMethod

Associated Types

type AWSResponse DeleteContactMethod #

ToHeaders DeleteContactMethod Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteContactMethod

ToPath DeleteContactMethod Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteContactMethod

ToQuery DeleteContactMethod Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteContactMethod

type Rep DeleteContactMethod Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteContactMethod

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

Defined in Amazonka.Lightsail.DeleteContactMethod

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.

Constructors

DeleteContactMethodResponse' 

Fields

  • operations :: Maybe [Operation]

    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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq DeleteContactMethodResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteContactMethod

Read DeleteContactMethodResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteContactMethod

Show DeleteContactMethodResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteContactMethod

Generic DeleteContactMethodResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteContactMethod

Associated Types

type Rep DeleteContactMethodResponse :: Type -> Type #

NFData DeleteContactMethodResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteContactMethod

type Rep DeleteContactMethodResponse Source # 
Instance details

Defined in Amazonka.Lightsail.DeleteContactMethod

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

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.