File Coverage

blib/lib/Cfn/Resource/AWS/Pinpoint/PushTemplate.pm
Criterion Covered Total %
statement 32 32 100.0
branch n/a
condition n/a
subroutine 12 12 100.0
pod 0 2 0.0
total 44 46 95.6


line stmt bran cond sub pod time code
1             # AWS::Pinpoint::PushTemplate generated from spec 18.4.0
2 1     1   728 use Moose::Util::TypeConstraints;
  1         5  
  1         11  
3              
4             coerce 'Cfn::Resource::Properties::AWS::Pinpoint::PushTemplate',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::Pinpoint::PushTemplate->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::Pinpoint::PushTemplate {
9 1     1   2253 use Moose;
  1         2  
  1         8  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::PushTemplate', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 5 [ 'Arn' ]
15             }
16             sub supported_regions {
17 1     1 0 1178 [ 'ap-south-1','eu-west-1','us-east-1','us-west-2' ]
18             }
19             }
20              
21              
22              
23             subtype 'Cfn::Resource::Properties::AWS::Pinpoint::PushTemplate::DefaultPushNotificationTemplate',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::Pinpoint::PushTemplate::DefaultPushNotificationTemplate',
27             from 'HashRef',
28             via {
29             if (my $f = Cfn::TypeLibrary::try_function($_)) {
30             return $f
31             } else {
32             return Cfn::Resource::Properties::Object::AWS::Pinpoint::PushTemplate::DefaultPushNotificationTemplate->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::Object::AWS::Pinpoint::PushTemplate::DefaultPushNotificationTemplate {
37 1     1   7374 use Moose;
  1         4  
  1         5  
38 1     1   6737 use MooseX::StrictConstructor;
  1         4  
  1         9  
39             extends 'Cfn::Value::TypedValue';
40            
41             has Action => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42             has Body => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43             has Sound => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
44             has Title => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
45             has Url => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
46             }
47              
48             subtype 'Cfn::Resource::Properties::AWS::Pinpoint::PushTemplate::AndroidPushNotificationTemplate',
49             as 'Cfn::Value';
50              
51             coerce 'Cfn::Resource::Properties::AWS::Pinpoint::PushTemplate::AndroidPushNotificationTemplate',
52             from 'HashRef',
53             via {
54             if (my $f = Cfn::TypeLibrary::try_function($_)) {
55             return $f
56             } else {
57             return Cfn::Resource::Properties::Object::AWS::Pinpoint::PushTemplate::AndroidPushNotificationTemplate->new( %$_ );
58             }
59             };
60              
61             package Cfn::Resource::Properties::Object::AWS::Pinpoint::PushTemplate::AndroidPushNotificationTemplate {
62 1     1   3791 use Moose;
  1         2  
  1         7  
63 1     1   6897 use MooseX::StrictConstructor;
  1         3  
  1         6  
64             extends 'Cfn::Value::TypedValue';
65            
66             has Action => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
67             has Body => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
68             has ImageIconUrl => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
69             has ImageUrl => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
70             has SmallImageIconUrl => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
71             has Sound => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
72             has Title => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
73             has Url => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
74             }
75              
76             subtype 'Cfn::Resource::Properties::AWS::Pinpoint::PushTemplate::APNSPushNotificationTemplate',
77             as 'Cfn::Value';
78              
79             coerce 'Cfn::Resource::Properties::AWS::Pinpoint::PushTemplate::APNSPushNotificationTemplate',
80             from 'HashRef',
81             via {
82             if (my $f = Cfn::TypeLibrary::try_function($_)) {
83             return $f
84             } else {
85             return Cfn::Resource::Properties::Object::AWS::Pinpoint::PushTemplate::APNSPushNotificationTemplate->new( %$_ );
86             }
87             };
88              
89             package Cfn::Resource::Properties::Object::AWS::Pinpoint::PushTemplate::APNSPushNotificationTemplate {
90 1     1   3574 use Moose;
  1         2  
  1         6  
91 1     1   6709 use MooseX::StrictConstructor;
  1         4  
  1         5  
92             extends 'Cfn::Value::TypedValue';
93            
94             has Action => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
95             has Body => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
96             has MediaUrl => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
97             has Sound => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
98             has Title => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
99             has Url => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
100             }
101              
102             package Cfn::Resource::Properties::AWS::Pinpoint::PushTemplate {
103 1     1   3482 use Moose;
  1         4  
  1         7  
104 1     1   7074 use MooseX::StrictConstructor;
  1         4  
  1         5  
105             extends 'Cfn::Resource::Properties';
106            
107             has ADM => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::PushTemplate::AndroidPushNotificationTemplate', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
108             has APNS => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::PushTemplate::APNSPushNotificationTemplate', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
109             has Baidu => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::PushTemplate::AndroidPushNotificationTemplate', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
110             has Default => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::PushTemplate::DefaultPushNotificationTemplate', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
111             has DefaultSubstitutions => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
112             has GCM => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::PushTemplate::AndroidPushNotificationTemplate', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
113             has Tags => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
114             has TemplateDescription => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
115             has TemplateName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
116             }
117              
118             1;
119             ### main pod documentation begin ###
120              
121             =encoding UTF-8
122              
123             =head1 NAME
124              
125             Cfn::Resource::AWS::Pinpoint::PushTemplate - Cfn resource for AWS::Pinpoint::PushTemplate
126              
127             =head1 DESCRIPTION
128              
129             This module implements a Perl module that represents the CloudFormation object AWS::Pinpoint::PushTemplate.
130              
131             See L<Cfn> for more information on how to use it.
132              
133             =head1 AUTHOR
134              
135             Jose Luis Martinez
136             CAPSiDE
137             jlmartinez@capside.com
138              
139             =head1 COPYRIGHT and LICENSE
140              
141             Copyright (c) 2013 by CAPSiDE
142             This code is distributed under the Apache 2 License. The full text of the
143             license can be found in the LICENSE file included with this module.
144              
145             =cut