« blib/lib/Paws/Pinpoint/UpdateJourneyStateResponse.pm
↑ Summary
blib/lib/Paws/Pinpoint/UpdatePushTemplateResponse.pm »
| 1 | |||
| 2 | package Paws::Pinpoint::UpdatePushTemplate; | ||
| 3 | use Moose; | ||
| 4 | has CreateNewVersion => (is => 'ro', isa => 'Bool', traits => ['ParamInQuery'], query_name => 'create-new-version'); | ||
| 5 | has PushNotificationTemplateRequest => (is => 'ro', isa => 'Paws::Pinpoint::PushNotificationTemplateRequest', required => 1); | ||
| 6 | has TemplateName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'template-name', required => 1); | ||
| 7 | has Version => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'version'); | ||
| 8 | |||
| 9 | use MooseX::ClassAttribute; | ||
| 10 | class_has _stream_param => (is => 'ro', default => 'PushNotificationTemplateRequest'); | ||
| 11 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdatePushTemplate'); | ||
| 12 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v1/templates/{template-name}/push'); | ||
| 13 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT'); | ||
| 14 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Pinpoint::UpdatePushTemplateResponse'); | ||
| 15 | 1; | ||
| 16 | |||
| 17 | ### main pod documentation begin ### | ||
| 18 | |||
| 19 | =head1 NAME | ||
| 20 | |||
| 21 | Paws::Pinpoint::UpdatePushTemplate - Arguments for method UpdatePushTemplate on L<Paws::Pinpoint> | ||
| 22 | |||
| 23 | =head1 DESCRIPTION | ||
| 24 | |||
| 25 | This class represents the parameters used for calling the method UpdatePushTemplate on the | ||
| 26 | L<Amazon Pinpoint|Paws::Pinpoint> service. Use the attributes of this class | ||
| 27 | as arguments to method UpdatePushTemplate. | ||
| 28 | |||
| 29 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdatePushTemplate. | ||
| 30 | |||
| 31 | =head1 SYNOPSIS | ||
| 32 | |||
| 33 | my $pinpoint = Paws->service('Pinpoint'); | ||
| 34 | my $UpdatePushTemplateResponse = $pinpoint->UpdatePushTemplate( | ||
| 35 | PushNotificationTemplateRequest => { | ||
| 36 | ADM => { | ||
| 37 | Action => 'OPEN_APP', # values: OPEN_APP, DEEP_LINK, URL; OPTIONAL | ||
| 38 | Body => 'My__string', # OPTIONAL | ||
| 39 | ImageIconUrl => 'My__string', # OPTIONAL | ||
| 40 | ImageUrl => 'My__string', # OPTIONAL | ||
| 41 | RawContent => 'My__string', # OPTIONAL | ||
| 42 | SmallImageIconUrl => 'My__string', # OPTIONAL | ||
| 43 | Sound => 'My__string', # OPTIONAL | ||
| 44 | Title => 'My__string', # OPTIONAL | ||
| 45 | Url => 'My__string', # OPTIONAL | ||
| 46 | }, # OPTIONAL | ||
| 47 | APNS => { | ||
| 48 | Action => 'OPEN_APP', # values: OPEN_APP, DEEP_LINK, URL; OPTIONAL | ||
| 49 | Body => 'My__string', # OPTIONAL | ||
| 50 | MediaUrl => 'My__string', # OPTIONAL | ||
| 51 | RawContent => 'My__string', # OPTIONAL | ||
| 52 | Sound => 'My__string', # OPTIONAL | ||
| 53 | Title => 'My__string', # OPTIONAL | ||
| 54 | Url => 'My__string', # OPTIONAL | ||
| 55 | }, # OPTIONAL | ||
| 56 | Baidu => { | ||
| 57 | Action => 'OPEN_APP', # values: OPEN_APP, DEEP_LINK, URL; OPTIONAL | ||
| 58 | Body => 'My__string', # OPTIONAL | ||
| 59 | ImageIconUrl => 'My__string', # OPTIONAL | ||
| 60 | ImageUrl => 'My__string', # OPTIONAL | ||
| 61 | RawContent => 'My__string', # OPTIONAL | ||
| 62 | SmallImageIconUrl => 'My__string', # OPTIONAL | ||
| 63 | Sound => 'My__string', # OPTIONAL | ||
| 64 | Title => 'My__string', # OPTIONAL | ||
| 65 | Url => 'My__string', # OPTIONAL | ||
| 66 | }, # OPTIONAL | ||
| 67 | Default => { | ||
| 68 | Action => 'OPEN_APP', # values: OPEN_APP, DEEP_LINK, URL; OPTIONAL | ||
| 69 | Body => 'My__string', # OPTIONAL | ||
| 70 | Sound => 'My__string', # OPTIONAL | ||
| 71 | Title => 'My__string', # OPTIONAL | ||
| 72 | Url => 'My__string', # OPTIONAL | ||
| 73 | }, # OPTIONAL | ||
| 74 | DefaultSubstitutions => 'My__string', # OPTIONAL | ||
| 75 | GCM => { | ||
| 76 | Action => 'OPEN_APP', # values: OPEN_APP, DEEP_LINK, URL; OPTIONAL | ||
| 77 | Body => 'My__string', # OPTIONAL | ||
| 78 | ImageIconUrl => 'My__string', # OPTIONAL | ||
| 79 | ImageUrl => 'My__string', # OPTIONAL | ||
| 80 | RawContent => 'My__string', # OPTIONAL | ||
| 81 | SmallImageIconUrl => 'My__string', # OPTIONAL | ||
| 82 | Sound => 'My__string', # OPTIONAL | ||
| 83 | Title => 'My__string', # OPTIONAL | ||
| 84 | Url => 'My__string', # OPTIONAL | ||
| 85 | }, # OPTIONAL | ||
| 86 | RecommenderId => 'My__string', # OPTIONAL | ||
| 87 | Tags => { | ||
| 88 | 'My__string' => 'My__string', # key: OPTIONAL, value: OPTIONAL | ||
| 89 | }, # OPTIONAL | ||
| 90 | TemplateDescription => 'My__string', # OPTIONAL | ||
| 91 | }, | ||
| 92 | TemplateName => 'My__string', | ||
| 93 | CreateNewVersion => 1, # OPTIONAL | ||
| 94 | Version => 'My__string', # OPTIONAL | ||
| 95 | ); | ||
| 96 | |||
| 97 | # Results: | ||
| 98 | my $MessageBody = $UpdatePushTemplateResponse->MessageBody; | ||
| 99 | |||
| 100 | # Returns a L<Paws::Pinpoint::UpdatePushTemplateResponse> object. | ||
| 101 | |||
| 102 | 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. | ||
| 103 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/pinpoint/UpdatePushTemplate> | ||
| 104 | |||
| 105 | =head1 ATTRIBUTES | ||
| 106 | |||
| 107 | |||
| 108 | =head2 CreateNewVersion => Bool | ||
| 109 | |||
| 110 | Specifies whether to save the updates as a new version of the message | ||
| 111 | template. Valid values are: true, save the updates as a new version; | ||
| 112 | and, false, save the updates to (overwrite) the latest existing version | ||
| 113 | of the template. | ||
| 114 | |||
| 115 | If you don't specify a value for this parameter, Amazon Pinpoint saves | ||
| 116 | the updates to (overwrites) the latest existing version of the | ||
| 117 | template. If you specify a value of true for this parameter, don't | ||
| 118 | specify a value for the version parameter. Otherwise, an error will | ||
| 119 | occur. | ||
| 120 | |||
| 121 | |||
| 122 | |||
| 123 | =head2 B<REQUIRED> PushNotificationTemplateRequest => L<Paws::Pinpoint::PushNotificationTemplateRequest> | ||
| 124 | |||
| 125 | |||
| 126 | |||
| 127 | |||
| 128 | |||
| 129 | =head2 B<REQUIRED> TemplateName => Str | ||
| 130 | |||
| 131 | The name of the message template. A template name must start with an | ||
| 132 | alphanumeric character and can contain a maximum of 128 characters. The | ||
| 133 | characters can be alphanumeric characters, underscores (_), or hyphens | ||
| 134 | (-). Template names are case sensitive. | ||
| 135 | |||
| 136 | |||
| 137 | |||
| 138 | =head2 Version => Str | ||
| 139 | |||
| 140 | The unique identifier for the version of the message template to | ||
| 141 | update, retrieve information about, or delete. To retrieve identifiers | ||
| 142 | and other information for all the versions of a template, use the | ||
| 143 | |||
| 144 | Template Versions resource. | ||
| 145 | |||
| 146 | If specified, this value must match the identifier for an existing | ||
| 147 | template version. If specified for an update operation, this value must | ||
| 148 | match the identifier for the latest existing version of the template. | ||
| 149 | This restriction helps ensure that race conditions don't occur. | ||
| 150 | |||
| 151 | If you don't specify a value for this parameter, Amazon Pinpoint does | ||
| 152 | the following: | ||
| 153 | |||
| 154 | =over | ||
| 155 | |||
| 156 | =item * | ||
| 157 | |||
| 158 | For a get operation, retrieves information about the active version of | ||
| 159 | the template. | ||
| 160 | |||
| 161 | =item * | ||
| 162 | |||
| 163 | For an update operation, saves the updates to (overwrites) the latest | ||
| 164 | existing version of the template, if the create-new-version parameter | ||
| 165 | isn't used or is set to false. | ||
| 166 | |||
| 167 | =item * | ||
| 168 | |||
| 169 | For a delete operation, deletes the template, including all versions of | ||
| 170 | the template. | ||
| 171 | |||
| 172 | =back | ||
| 173 | |||
| 174 | |||
| 175 | |||
| 176 | |||
| 177 | |||
| 178 | =head1 SEE ALSO | ||
| 179 | |||
| 180 | This class forms part of L<Paws>, documenting arguments for method UpdatePushTemplate in L<Paws::Pinpoint> | ||
| 181 | |||
| 182 | =head1 BUGS and CONTRIBUTIONS | ||
| 183 | |||
| 184 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 185 | |||
| 186 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 187 | |||
| 188 | =cut | ||
| 189 |