NAME

Paws::Lightsail::CreateContactMethod - Arguments for method CreateContactMethod on Paws::Lightsail

DESCRIPTION

This class represents the parameters used for calling the method CreateContactMethod on the Amazon Lightsail service. Use the attributes of this class as arguments to method CreateContactMethod.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateContactMethod.

SYNOPSIS

my $lightsail = Paws->service('Lightsail');
my $CreateContactMethodResult = $lightsail->CreateContactMethod(
  ContactEndpoint => 'MyStringMax256',
  Protocol        => 'Email',

);

# Results:
my $Operations = $CreateContactMethodResult->Operations;

# Returns a L<Paws::Lightsail::CreateContactMethodResult> object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/lightsail/CreateContactMethod

ATTRIBUTES

REQUIRED ContactEndpoint => Str

The destination of the contact method, such as an email address or a mobile phone number.

Use the E.164 format when specifying a mobile phone number. E.164 is a standard for the phone number structure used for international telecommunication. Phone numbers that follow this format can have a maximum of 15 digits, and they are prefixed with the plus character (+) and the country code. For example, a U.S. phone number in E.164 format would be specified as +1XXX5550100. For more information, see E.164 (https://en.wikipedia.org/wiki/E.164) on Wikipedia.

REQUIRED Protocol => Str

The protocol of the contact method, such as Email or SMS (text messaging).

The SMS protocol is supported only in the following AWS Regions.

  • US East (N. Virginia) (us-east-1)

  • US West (Oregon) (us-west-2)

  • Europe (Ireland) (eu-west-1)

  • Asia Pacific (Tokyo) (ap-northeast-1)

  • Asia Pacific (Singapore) (ap-southeast-1)

  • Asia Pacific (Sydney) (ap-southeast-2)

For a list of countries/regions where SMS text messages can be sent, and the latest AWS Regions where SMS text messaging is supported, see Supported Regions and Countries (https://docs.aws.amazon.com/sns/latest/dg/sns-supported-regions-countries.html) in the Amazon SNS Developer Guide.

For more information about notifications in Amazon Lightsail, see Notifications in Amazon Lightsail (https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-notifications).

Valid values are: "Email", "SMS"

SEE ALSO

This class forms part of Paws, documenting arguments for method CreateContactMethod in Paws::Lightsail

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues