« blib/lib/Paws/Pinpoint/DeleteEmailChannelResponse.pm
↑ Summary
blib/lib/Paws/Pinpoint/DeleteEmailTemplateResponse.pm »
| 1 | |||
| 2 | package Paws::Pinpoint::DeleteEmailTemplate; | ||
| 3 | use Moose; | ||
| 4 | has TemplateName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'template-name', required => 1); | ||
| 5 | has Version => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'version'); | ||
| 6 | |||
| 7 | use MooseX::ClassAttribute; | ||
| 8 | |||
| 9 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'DeleteEmailTemplate'); | ||
| 10 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v1/templates/{template-name}/email'); | ||
| 11 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'DELETE'); | ||
| 12 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Pinpoint::DeleteEmailTemplateResponse'); | ||
| 13 | 1; | ||
| 14 | |||
| 15 | ### main pod documentation begin ### | ||
| 16 | |||
| 17 | =head1 NAME | ||
| 18 | |||
| 19 | Paws::Pinpoint::DeleteEmailTemplate - Arguments for method DeleteEmailTemplate on L<Paws::Pinpoint> | ||
| 20 | |||
| 21 | =head1 DESCRIPTION | ||
| 22 | |||
| 23 | This class represents the parameters used for calling the method DeleteEmailTemplate on the | ||
| 24 | L<Amazon Pinpoint|Paws::Pinpoint> service. Use the attributes of this class | ||
| 25 | as arguments to method DeleteEmailTemplate. | ||
| 26 | |||
| 27 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DeleteEmailTemplate. | ||
| 28 | |||
| 29 | =head1 SYNOPSIS | ||
| 30 | |||
| 31 | my $pinpoint = Paws->service('Pinpoint'); | ||
| 32 | my $DeleteEmailTemplateResponse = $pinpoint->DeleteEmailTemplate( | ||
| 33 | TemplateName => 'My__string', | ||
| 34 | Version => 'My__string', # OPTIONAL | ||
| 35 | ); | ||
| 36 | |||
| 37 | # Results: | ||
| 38 | my $MessageBody = $DeleteEmailTemplateResponse->MessageBody; | ||
| 39 | |||
| 40 | # Returns a L<Paws::Pinpoint::DeleteEmailTemplateResponse> 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/pinpoint/DeleteEmailTemplate> | ||
| 44 | |||
| 45 | =head1 ATTRIBUTES | ||
| 46 | |||
| 47 | |||
| 48 | =head2 B<REQUIRED> TemplateName => Str | ||
| 49 | |||
| 50 | The name of the message template. A template name must start with an | ||
| 51 | alphanumeric character and can contain a maximum of 128 characters. The | ||
| 52 | characters can be alphanumeric characters, underscores (_), or hyphens | ||
| 53 | (-). Template names are case sensitive. | ||
| 54 | |||
| 55 | |||
| 56 | |||
| 57 | =head2 Version => Str | ||
| 58 | |||
| 59 | The unique identifier for the version of the message template to | ||
| 60 | update, retrieve information about, or delete. To retrieve identifiers | ||
| 61 | and other information for all the versions of a template, use the | ||
| 62 | |||
| 63 | Template Versions resource. | ||
| 64 | |||
| 65 | If specified, this value must match the identifier for an existing | ||
| 66 | template version. If specified for an update operation, this value must | ||
| 67 | match the identifier for the latest existing version of the template. | ||
| 68 | This restriction helps ensure that race conditions don't occur. | ||
| 69 | |||
| 70 | If you don't specify a value for this parameter, Amazon Pinpoint does | ||
| 71 | the following: | ||
| 72 | |||
| 73 | =over | ||
| 74 | |||
| 75 | =item * | ||
| 76 | |||
| 77 | For a get operation, retrieves information about the active version of | ||
| 78 | the template. | ||
| 79 | |||
| 80 | =item * | ||
| 81 | |||
| 82 | For an update operation, saves the updates to (overwrites) the latest | ||
| 83 | existing version of the template, if the create-new-version parameter | ||
| 84 | isn't used or is set to false. | ||
| 85 | |||
| 86 | =item * | ||
| 87 | |||
| 88 | For a delete operation, deletes the template, including all versions of | ||
| 89 | the template. | ||
| 90 | |||
| 91 | =back | ||
| 92 | |||
| 93 | |||
| 94 | |||
| 95 | |||
| 96 | |||
| 97 | =head1 SEE ALSO | ||
| 98 | |||
| 99 | This class forms part of L<Paws>, documenting arguments for method DeleteEmailTemplate in L<Paws::Pinpoint> | ||
| 100 | |||
| 101 | =head1 BUGS and CONTRIBUTIONS | ||
| 102 | |||
| 103 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 104 | |||
| 105 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 106 | |||
| 107 | =cut | ||
| 108 |