« blib/lib/Paws/Lightsail/CreateCloudFormationStackResult.pm
↑ Summary
blib/lib/Paws/Lightsail/CreateContactMethodResult.pm »
| 1 | |||
| 2 | package Paws::Lightsail::CreateContactMethod; | ||
| 3 | use Moose; | ||
| 4 | has ContactEndpoint => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'contactEndpoint' , required => 1); | ||
| 5 | has Protocol => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'protocol' , required => 1); | ||
| 6 | |||
| 7 | use MooseX::ClassAttribute; | ||
| 8 | |||
| 9 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateContactMethod'); | ||
| 10 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Lightsail::CreateContactMethodResult'); | ||
| 11 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 12 | 1; | ||
| 13 | |||
| 14 | ### main pod documentation begin ### | ||
| 15 | |||
| 16 | =head1 NAME | ||
| 17 | |||
| 18 | Paws::Lightsail::CreateContactMethod - Arguments for method CreateContactMethod on L<Paws::Lightsail> | ||
| 19 | |||
| 20 | =head1 DESCRIPTION | ||
| 21 | |||
| 22 | This class represents the parameters used for calling the method CreateContactMethod on the | ||
| 23 | L<Amazon Lightsail|Paws::Lightsail> service. Use the attributes of this class | ||
| 24 | as arguments to method CreateContactMethod. | ||
| 25 | |||
| 26 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateContactMethod. | ||
| 27 | |||
| 28 | =head1 SYNOPSIS | ||
| 29 | |||
| 30 | my $lightsail = Paws->service('Lightsail'); | ||
| 31 | my $CreateContactMethodResult = $lightsail->CreateContactMethod( | ||
| 32 | ContactEndpoint => 'MyStringMax256', | ||
| 33 | Protocol => 'Email', | ||
| 34 | |||
| 35 | ); | ||
| 36 | |||
| 37 | # Results: | ||
| 38 | my $Operations = $CreateContactMethodResult->Operations; | ||
| 39 | |||
| 40 | # Returns a L<Paws::Lightsail::CreateContactMethodResult> object. | ||
| 41 | |||
| 42 | 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. | ||
| 43 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/lightsail/CreateContactMethod> | ||
| 44 | |||
| 45 | =head1 ATTRIBUTES | ||
| 46 | |||
| 47 | |||
| 48 | =head2 B<REQUIRED> ContactEndpoint => Str | ||
| 49 | |||
| 50 | The destination of the contact method, such as an email address or a | ||
| 51 | mobile phone number. | ||
| 52 | |||
| 53 | Use the E.164 format when specifying a mobile phone number. E.164 is a | ||
| 54 | standard for the phone number structure used for international | ||
| 55 | telecommunication. Phone numbers that follow this format can have a | ||
| 56 | maximum of 15 digits, and they are prefixed with the plus character (+) | ||
| 57 | and the country code. For example, a U.S. phone number in E.164 format | ||
| 58 | would be specified as +1XXX5550100. For more information, see E.164 | ||
| 59 | (https://en.wikipedia.org/wiki/E.164) on I<Wikipedia>. | ||
| 60 | |||
| 61 | |||
| 62 | |||
| 63 | =head2 B<REQUIRED> Protocol => Str | ||
| 64 | |||
| 65 | The protocol of the contact method, such as C<Email> or C<SMS> (text | ||
| 66 | messaging). | ||
| 67 | |||
| 68 | The C<SMS> protocol is supported only in the following AWS Regions. | ||
| 69 | |||
| 70 | =over | ||
| 71 | |||
| 72 | =item * | ||
| 73 | |||
| 74 | US East (N. Virginia) (C<us-east-1>) | ||
| 75 | |||
| 76 | =item * | ||
| 77 | |||
| 78 | US West (Oregon) (C<us-west-2>) | ||
| 79 | |||
| 80 | =item * | ||
| 81 | |||
| 82 | Europe (Ireland) (C<eu-west-1>) | ||
| 83 | |||
| 84 | =item * | ||
| 85 | |||
| 86 | Asia Pacific (Tokyo) (C<ap-northeast-1>) | ||
| 87 | |||
| 88 | =item * | ||
| 89 | |||
| 90 | Asia Pacific (Singapore) (C<ap-southeast-1>) | ||
| 91 | |||
| 92 | =item * | ||
| 93 | |||
| 94 | Asia Pacific (Sydney) (C<ap-southeast-2>) | ||
| 95 | |||
| 96 | =back | ||
| 97 | |||
| 98 | For a list of countries/regions where SMS text messages can be sent, | ||
| 99 | and the latest AWS Regions where SMS text messaging is supported, see | ||
| 100 | Supported Regions and Countries | ||
| 101 | (https://docs.aws.amazon.com/sns/latest/dg/sns-supported-regions-countries.html) | ||
| 102 | in the I<Amazon SNS Developer Guide>. | ||
| 103 | |||
| 104 | For more information about notifications in Amazon Lightsail, see | ||
| 105 | Notifications in Amazon Lightsail | ||
| 106 | (https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-notifications). | ||
| 107 | |||
| 108 | Valid values are: C<"Email">, C<"SMS"> | ||
| 109 | |||
| 110 | |||
| 111 | =head1 SEE ALSO | ||
| 112 | |||
| 113 | This class forms part of L<Paws>, documenting arguments for method CreateContactMethod in L<Paws::Lightsail> | ||
| 114 | |||
| 115 | =head1 BUGS and CONTRIBUTIONS | ||
| 116 | |||
| 117 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 118 | |||
| 119 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 120 | |||
| 121 | =cut | ||
| 122 |