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 |
Synopsis
- data ContactMethod = ContactMethod' {}
- newContactMethod :: ContactMethod
- contactMethod_status :: Lens' ContactMethod (Maybe ContactMethodStatus)
- contactMethod_resourceType :: Lens' ContactMethod (Maybe ResourceType)
- contactMethod_arn :: Lens' ContactMethod (Maybe Text)
- contactMethod_createdAt :: Lens' ContactMethod (Maybe UTCTime)
- contactMethod_location :: Lens' ContactMethod (Maybe ResourceLocation)
- contactMethod_protocol :: Lens' ContactMethod (Maybe ContactProtocol)
- contactMethod_name :: Lens' ContactMethod (Maybe Text)
- contactMethod_supportCode :: Lens' ContactMethod (Maybe Text)
- contactMethod_contactEndpoint :: Lens' ContactMethod (Maybe Text)
Documentation
data ContactMethod Source #
Describes a contact method.
A contact method is a way to send you notifications. For more information, see Notifications in Amazon Lightsail.
See: newContactMethod
smart constructor.
ContactMethod' | |
|
Instances
newContactMethod :: ContactMethod Source #
Create a value of ContactMethod
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:status:ContactMethod'
, contactMethod_status
- The current status of the contact method.
A contact method has the following possible status:
PendingVerification
- The contact method has not yet been verified, and the verification has not yet expired.Valid
- The contact method has been verified.InValid
- An attempt was made to verify the contact method, but the verification has expired.
$sel:resourceType:ContactMethod'
, contactMethod_resourceType
- The Lightsail resource type (e.g., ContactMethod
).
$sel:arn:ContactMethod'
, contactMethod_arn
- The Amazon Resource Name (ARN) of the contact method.
$sel:createdAt:ContactMethod'
, contactMethod_createdAt
- The timestamp when the contact method was created.
$sel:location:ContactMethod'
, contactMethod_location
- Undocumented member.
$sel:protocol:ContactMethod'
, contactMethod_protocol
- The protocol of the contact method, such as email or SMS (text
messaging).
$sel:name:ContactMethod'
, contactMethod_name
- The name of the contact method.
$sel:supportCode:ContactMethod'
, contactMethod_supportCode
- The support code. Include this code in your email to support when you
have questions about your Lightsail contact method. This code enables
our support team to look up your Lightsail information more easily.
$sel:contactEndpoint:ContactMethod'
, contactMethod_contactEndpoint
- The destination of the contact method, such as an email address or a
mobile phone number.
contactMethod_status :: Lens' ContactMethod (Maybe ContactMethodStatus) Source #
The current status of the contact method.
A contact method has the following possible status:
PendingVerification
- The contact method has not yet been verified, and the verification has not yet expired.Valid
- The contact method has been verified.InValid
- An attempt was made to verify the contact method, but the verification has expired.
contactMethod_resourceType :: Lens' ContactMethod (Maybe ResourceType) Source #
The Lightsail resource type (e.g., ContactMethod
).
contactMethod_arn :: Lens' ContactMethod (Maybe Text) Source #
The Amazon Resource Name (ARN) of the contact method.
contactMethod_createdAt :: Lens' ContactMethod (Maybe UTCTime) Source #
The timestamp when the contact method was created.
contactMethod_location :: Lens' ContactMethod (Maybe ResourceLocation) Source #
Undocumented member.
contactMethod_protocol :: Lens' ContactMethod (Maybe ContactProtocol) Source #
The protocol of the contact method, such as email or SMS (text messaging).
contactMethod_name :: Lens' ContactMethod (Maybe Text) Source #
The name of the contact method.
contactMethod_supportCode :: Lens' ContactMethod (Maybe Text) Source #
The support code. Include this code in your email to support when you have questions about your Lightsail contact method. This code enables our support team to look up your Lightsail information more easily.
contactMethod_contactEndpoint :: Lens' ContactMethod (Maybe Text) Source #
The destination of the contact method, such as an email address or a mobile phone number.