« blib/lib/Paws/SESv2/CreateEmailIdentity.pm
↑ Summary
blib/lib/Paws/SESv2/CreateEmailIdentityPolicyResponse.pm »
| 1 | |||
| 2 | package Paws::SESv2::CreateEmailIdentityPolicy; | ||
| 3 | use Moose; | ||
| 4 | has EmailIdentity => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'EmailIdentity', required => 1); | ||
| 5 | has Policy => (is => 'ro', isa => 'Str', required => 1); | ||
| 6 | has PolicyName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'PolicyName', required => 1); | ||
| 7 | |||
| 8 | use MooseX::ClassAttribute; | ||
| 9 | |||
| 10 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateEmailIdentityPolicy'); | ||
| 11 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v2/email/identities/{EmailIdentity}/policies/{PolicyName}'); | ||
| 12 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST'); | ||
| 13 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::SESv2::CreateEmailIdentityPolicyResponse'); | ||
| 14 | 1; | ||
| 15 | |||
| 16 | ### main pod documentation begin ### | ||
| 17 | |||
| 18 | =head1 NAME | ||
| 19 | |||
| 20 | Paws::SESv2::CreateEmailIdentityPolicy - Arguments for method CreateEmailIdentityPolicy on L<Paws::SESv2> | ||
| 21 | |||
| 22 | =head1 DESCRIPTION | ||
| 23 | |||
| 24 | This class represents the parameters used for calling the method CreateEmailIdentityPolicy on the | ||
| 25 | L<Amazon Simple Email Service|Paws::SESv2> service. Use the attributes of this class | ||
| 26 | as arguments to method CreateEmailIdentityPolicy. | ||
| 27 | |||
| 28 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateEmailIdentityPolicy. | ||
| 29 | |||
| 30 | =head1 SYNOPSIS | ||
| 31 | |||
| 32 | my $email = Paws->service('SESv2'); | ||
| 33 | my $CreateEmailIdentityPolicyResponse = $email->CreateEmailIdentityPolicy( | ||
| 34 | EmailIdentity => 'MyIdentity', | ||
| 35 | Policy => 'MyPolicy', | ||
| 36 | PolicyName => 'MyPolicyName', | ||
| 37 | |||
| 38 | ); | ||
| 39 | |||
| 40 | 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. | ||
| 41 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/email/CreateEmailIdentityPolicy> | ||
| 42 | |||
| 43 | =head1 ATTRIBUTES | ||
| 44 | |||
| 45 | |||
| 46 | =head2 B<REQUIRED> EmailIdentity => Str | ||
| 47 | |||
| 48 | The email identity for which you want to create a policy. | ||
| 49 | |||
| 50 | |||
| 51 | |||
| 52 | =head2 B<REQUIRED> Policy => Str | ||
| 53 | |||
| 54 | The text of the policy in JSON format. The policy cannot exceed 4 KB. | ||
| 55 | |||
| 56 | For information about the syntax of sending authorization policies, see | ||
| 57 | the Amazon SES Developer Guide | ||
| 58 | (https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-policies.html). | ||
| 59 | |||
| 60 | |||
| 61 | |||
| 62 | =head2 B<REQUIRED> PolicyName => Str | ||
| 63 | |||
| 64 | The name of the policy. | ||
| 65 | |||
| 66 | The policy name cannot exceed 64 characters and can only include | ||
| 67 | alphanumeric characters, dashes, and underscores. | ||
| 68 | |||
| 69 | |||
| 70 | |||
| 71 | |||
| 72 | =head1 SEE ALSO | ||
| 73 | |||
| 74 | This class forms part of L<Paws>, documenting arguments for method CreateEmailIdentityPolicy in L<Paws::SESv2> | ||
| 75 | |||
| 76 | =head1 BUGS and CONTRIBUTIONS | ||
| 77 | |||
| 78 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 79 | |||
| 80 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 81 | |||
| 82 | =cut | ||
| 83 |