| 1 | # AWS::Pinpoint::PushTemplate generated from spec 18.4.0 | ||||||||||
| 2 | 1 | ▶ | use Moose::Util::TypeConstraints; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | coerce 'Cfn::Resource::Properties::AWS::Pinpoint::PushTemplate', | ||||||||||
| 5 | from 'HashRef', | ||||||||||
| 6 | 0 | ▶ | via { Cfn::Resource::Properties::AWS::Pinpoint::PushTemplate->new( %$_ ) }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 7 | |||||||||||
| 8 | 1 | package Cfn::Resource::AWS::Pinpoint::PushTemplate { | |||||||||
| 9 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 1 | extends 'Cfn::Resource'; | |||||||||
| 11 | 1 | has Properties => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::PushTemplate', is => 'rw', coerce => 1); | |||||||||
| 12 | |||||||||||
| 13 | sub AttributeList { | ||||||||||
| 14 | 1 | ▶ | [ 'Arn' ] | ||||||||
|
Subroutine
AttributeList: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 15 | } | ||||||||||
| 16 | sub supported_regions { | ||||||||||
| 17 | 1 | ▶ | [ 'ap-south-1','eu-west-1','us-east-1','us-west-2' ] | ||||||||
|
Subroutine
supported_regions: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 18 | } | ||||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | |||||||||||
| 22 | |||||||||||
| 23 | 1 | 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 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 30 | 0 | return $f | |||||||||
| 31 | } else { | ||||||||||
| 32 | 0 | return Cfn::Resource::Properties::Object::AWS::Pinpoint::PushTemplate::DefaultPushNotificationTemplate->new( %$_ ); | |||||||||
| 33 | } | ||||||||||
| 34 | 1 | }; | |||||||||
| 35 | |||||||||||
| 36 | 1 | package Cfn::Resource::Properties::Object::AWS::Pinpoint::PushTemplate::DefaultPushNotificationTemplate { | |||||||||
| 37 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 38 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 39 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 40 | |||||||||||
| 41 | 1 | has Action => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 42 | 1 | has Body => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 43 | 1 | has Sound => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 44 | 1 | has Title => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 45 | 1 | has Url => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 46 | } | ||||||||||
| 47 | |||||||||||
| 48 | 1 | 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 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 55 | 0 | return $f | |||||||||
| 56 | } else { | ||||||||||
| 57 | 0 | return Cfn::Resource::Properties::Object::AWS::Pinpoint::PushTemplate::AndroidPushNotificationTemplate->new( %$_ ); | |||||||||
| 58 | } | ||||||||||
| 59 | 1 | }; | |||||||||
| 60 | |||||||||||
| 61 | 1 | package Cfn::Resource::Properties::Object::AWS::Pinpoint::PushTemplate::AndroidPushNotificationTemplate { | |||||||||
| 62 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 63 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 64 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 65 | |||||||||||
| 66 | 1 | has Action => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 67 | 1 | has Body => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 68 | 1 | has ImageIconUrl => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 69 | 1 | has ImageUrl => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 70 | 1 | has SmallImageIconUrl => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 71 | 1 | has Sound => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 72 | 1 | has Title => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 73 | 1 | has Url => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 74 | } | ||||||||||
| 75 | |||||||||||
| 76 | 1 | 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 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 83 | 0 | return $f | |||||||||
| 84 | } else { | ||||||||||
| 85 | 0 | return Cfn::Resource::Properties::Object::AWS::Pinpoint::PushTemplate::APNSPushNotificationTemplate->new( %$_ ); | |||||||||
| 86 | } | ||||||||||
| 87 | 1 | }; | |||||||||
| 88 | |||||||||||
| 89 | 1 | package Cfn::Resource::Properties::Object::AWS::Pinpoint::PushTemplate::APNSPushNotificationTemplate { | |||||||||
| 90 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 91 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 92 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 93 | |||||||||||
| 94 | 1 | has Action => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 95 | 1 | has Body => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 96 | 1 | has MediaUrl => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 97 | 1 | has Sound => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 98 | 1 | has Title => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 99 | 1 | has Url => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 100 | } | ||||||||||
| 101 | |||||||||||
| 102 | 1 | package Cfn::Resource::Properties::AWS::Pinpoint::PushTemplate { | |||||||||
| 103 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 104 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 105 | 1 | extends 'Cfn::Resource::Properties'; | |||||||||
| 106 | |||||||||||
| 107 | 1 | has ADM => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::PushTemplate::AndroidPushNotificationTemplate', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 108 | 1 | has APNS => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::PushTemplate::APNSPushNotificationTemplate', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 109 | 1 | has Baidu => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::PushTemplate::AndroidPushNotificationTemplate', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 110 | 1 | has Default => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::PushTemplate::DefaultPushNotificationTemplate', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 111 | 1 | has DefaultSubstitutions => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 112 | 1 | has GCM => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::PushTemplate::AndroidPushNotificationTemplate', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 113 | 1 | has Tags => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 114 | 1 | has TemplateDescription => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 115 | 1 | has TemplateName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 116 | } | ||||||||||
| 117 | |||||||||||
| 118 | 1 | 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 | ||||||||||