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 10.2.0
2 1     1   785 use Moose::Util::TypeConstraints;
  1         2  
  1         14  
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   2350 use Moose;
  1         2  
  1         9  
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 4 [ 'Arn' ]
15             }
16             sub supported_regions {
17 1     1 0 1227 [ '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::AWS::Pinpoint::PushTemplate::DefaultPushNotificationTemplateValue->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::AWS::Pinpoint::PushTemplate::DefaultPushNotificationTemplateValue {
37 1     1   7537 use Moose;
  1         2  
  1         6  
38 1     1   6603 use MooseX::StrictConstructor;
  1         3  
  1         11  
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::AWS::Pinpoint::PushTemplate::AndroidPushNotificationTemplateValue->new( %$_ );
58             }
59             };
60              
61             package Cfn::Resource::Properties::AWS::Pinpoint::PushTemplate::AndroidPushNotificationTemplateValue {
62 1     1   3802 use Moose;
  1         3  
  1         6  
63 1     1   6622 use MooseX::StrictConstructor;
  1         2  
  1         7  
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::AWS::Pinpoint::PushTemplate::APNSPushNotificationTemplateValue->new( %$_ );
86             }
87             };
88              
89             package Cfn::Resource::Properties::AWS::Pinpoint::PushTemplate::APNSPushNotificationTemplateValue {
90 1     1   3607 use Moose;
  1         3  
  1         7  
91 1     1   7189 use MooseX::StrictConstructor;
  1         3  
  1         8  
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   3658 use Moose;
  1         3  
  1         8  
104 1     1   6826 use MooseX::StrictConstructor;
  1         4  
  1         7  
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;