Paws::Lightsail::CreateContactMethod - Arguments for method CreateContactMethod on Paws::Lightsail
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.
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
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.
The protocol of the contact method, such as Email or SMS (text messaging).
Email
SMS
The SMS protocol is supported only in the following AWS Regions.
US East (N. Virginia) (us-east-1)
us-east-1
US West (Oregon) (us-west-2)
us-west-2
Europe (Ireland) (eu-west-1)
eu-west-1
Asia Pacific (Tokyo) (ap-northeast-1)
ap-northeast-1
Asia Pacific (Singapore) (ap-southeast-1)
ap-southeast-1
Asia Pacific (Sydney) (ap-southeast-2)
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"
"Email"
"SMS"
This class forms part of Paws, documenting arguments for method CreateContactMethod in Paws::Lightsail
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
To install Paws, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Paws
CPAN shell
perl -MCPAN -e shell install Paws
For more information on module installation, please visit the detailed CPAN module installation guide.