File Coverage

blib/lib/Cfn/Resource/AWS/PinpointEmail/ConfigurationSet.pm
Criterion Covered Total %
statement 44 44 100.0
branch n/a
condition n/a
subroutine 16 16 100.0
pod 0 2 0.0
total 60 62 96.7


line stmt bran cond sub pod time code
1             # AWS::PinpointEmail::ConfigurationSet generated from spec 3.3.0
2 1     1   599 use Moose::Util::TypeConstraints;
  1         2  
  1         9  
3              
4             coerce 'Cfn::Resource::Properties::AWS::PinpointEmail::ConfigurationSet',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::PinpointEmail::ConfigurationSet->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::PinpointEmail::ConfigurationSet {
9 1     1   1839 use Moose;
  1         2  
  1         7  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::PinpointEmail::ConfigurationSet', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 3 [ ]
15             }
16             sub supported_regions {
17 1     1 0 923 [ 'ap-south-1','ap-southeast-2','eu-central-1','eu-west-1','us-east-1','us-west-2' ]
18             }
19             }
20              
21              
22              
23             subtype 'Cfn::Resource::Properties::AWS::PinpointEmail::ConfigurationSet::TrackingOptions',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::PinpointEmail::ConfigurationSet::TrackingOptions',
27             from 'HashRef',
28             via {
29             if (my $f = Cfn::TypeLibrary::try_function($_)) {
30             return $f
31             } else {
32             return Cfn::Resource::Properties::AWS::PinpointEmail::ConfigurationSet::TrackingOptionsValue->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::AWS::PinpointEmail::ConfigurationSet::TrackingOptionsValue {
37 1     1   6072 use Moose;
  1         3  
  1         4  
38 1     1   5422 use MooseX::StrictConstructor;
  1         3  
  1         10  
39             extends 'Cfn::Value::TypedValue';
40            
41             has CustomRedirectDomain => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42             }
43             subtype 'ArrayOfCfn::Resource::Properties::AWS::PinpointEmail::ConfigurationSet::Tags',
44             as 'Cfn::Value',
45             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
46             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
47              
48             coerce 'ArrayOfCfn::Resource::Properties::AWS::PinpointEmail::ConfigurationSet::Tags',
49             from 'HashRef',
50             via {
51             if (my $f = Cfn::TypeLibrary::try_function($_)) {
52             return $f
53             } else {
54             die 'Only accepts functions';
55             }
56             },
57             from 'ArrayRef',
58             via {
59             Cfn::Value::Array->new(Value => [
60             map {
61             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::PinpointEmail::ConfigurationSet::Tags')->coerce($_)
62             } @$_
63             ]);
64             };
65              
66             subtype 'Cfn::Resource::Properties::AWS::PinpointEmail::ConfigurationSet::Tags',
67             as 'Cfn::Value';
68              
69             coerce 'Cfn::Resource::Properties::AWS::PinpointEmail::ConfigurationSet::Tags',
70             from 'HashRef',
71             via {
72             if (my $f = Cfn::TypeLibrary::try_function($_)) {
73             return $f
74             } else {
75             return Cfn::Resource::Properties::AWS::PinpointEmail::ConfigurationSet::TagsValue->new( %$_ );
76             }
77             };
78              
79             package Cfn::Resource::Properties::AWS::PinpointEmail::ConfigurationSet::TagsValue {
80 1     1   3117 use Moose;
  1         4  
  1         4  
81 1     1   5687 use MooseX::StrictConstructor;
  1         3  
  1         5  
82             extends 'Cfn::Value::TypedValue';
83            
84             has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
85             has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
86             }
87              
88             subtype 'Cfn::Resource::Properties::AWS::PinpointEmail::ConfigurationSet::SendingOptions',
89             as 'Cfn::Value';
90              
91             coerce 'Cfn::Resource::Properties::AWS::PinpointEmail::ConfigurationSet::SendingOptions',
92             from 'HashRef',
93             via {
94             if (my $f = Cfn::TypeLibrary::try_function($_)) {
95             return $f
96             } else {
97             return Cfn::Resource::Properties::AWS::PinpointEmail::ConfigurationSet::SendingOptionsValue->new( %$_ );
98             }
99             };
100              
101             package Cfn::Resource::Properties::AWS::PinpointEmail::ConfigurationSet::SendingOptionsValue {
102 1     1   3309 use Moose;
  1         2  
  1         7  
103 1     1   5762 use MooseX::StrictConstructor;
  1         2  
  1         6  
104             extends 'Cfn::Value::TypedValue';
105            
106             has SendingEnabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
107             }
108              
109             subtype 'Cfn::Resource::Properties::AWS::PinpointEmail::ConfigurationSet::ReputationOptions',
110             as 'Cfn::Value';
111              
112             coerce 'Cfn::Resource::Properties::AWS::PinpointEmail::ConfigurationSet::ReputationOptions',
113             from 'HashRef',
114             via {
115             if (my $f = Cfn::TypeLibrary::try_function($_)) {
116             return $f
117             } else {
118             return Cfn::Resource::Properties::AWS::PinpointEmail::ConfigurationSet::ReputationOptionsValue->new( %$_ );
119             }
120             };
121              
122             package Cfn::Resource::Properties::AWS::PinpointEmail::ConfigurationSet::ReputationOptionsValue {
123 1     1   2850 use Moose;
  1         2  
  1         13  
124 1     1   5340 use MooseX::StrictConstructor;
  1         2  
  1         5  
125             extends 'Cfn::Value::TypedValue';
126            
127             has ReputationMetricsEnabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
128             }
129              
130             subtype 'Cfn::Resource::Properties::AWS::PinpointEmail::ConfigurationSet::DeliveryOptions',
131             as 'Cfn::Value';
132              
133             coerce 'Cfn::Resource::Properties::AWS::PinpointEmail::ConfigurationSet::DeliveryOptions',
134             from 'HashRef',
135             via {
136             if (my $f = Cfn::TypeLibrary::try_function($_)) {
137             return $f
138             } else {
139             return Cfn::Resource::Properties::AWS::PinpointEmail::ConfigurationSet::DeliveryOptionsValue->new( %$_ );
140             }
141             };
142              
143             package Cfn::Resource::Properties::AWS::PinpointEmail::ConfigurationSet::DeliveryOptionsValue {
144 1     1   2736 use Moose;
  1         2  
  1         6  
145 1     1   5254 use MooseX::StrictConstructor;
  1         2  
  1         4  
146             extends 'Cfn::Value::TypedValue';
147            
148             has SendingPoolName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
149             }
150              
151             package Cfn::Resource::Properties::AWS::PinpointEmail::ConfigurationSet {
152 1     1   2654 use Moose;
  1         3  
  1         5  
153 1     1   5383 use MooseX::StrictConstructor;
  1         2  
  1         5  
154             extends 'Cfn::Resource::Properties';
155            
156             has DeliveryOptions => (isa => 'Cfn::Resource::Properties::AWS::PinpointEmail::ConfigurationSet::DeliveryOptions', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
157             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
158             has ReputationOptions => (isa => 'Cfn::Resource::Properties::AWS::PinpointEmail::ConfigurationSet::ReputationOptions', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
159             has SendingOptions => (isa => 'Cfn::Resource::Properties::AWS::PinpointEmail::ConfigurationSet::SendingOptions', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
160             has Tags => (isa => 'ArrayOfCfn::Resource::Properties::AWS::PinpointEmail::ConfigurationSet::Tags', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
161             has TrackingOptions => (isa => 'Cfn::Resource::Properties::AWS::PinpointEmail::ConfigurationSet::TrackingOptions', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
162             }
163              
164             1;