File Coverage

blib/lib/Cfn/Resource/AWS/Route53/RecordSetGroup.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::Route53::RecordSetGroup generated from spec 5.3.0
2 4     4   2647 use Moose::Util::TypeConstraints;
  4         10  
  4         45  
3              
4             coerce 'Cfn::Resource::Properties::AWS::Route53::RecordSetGroup',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::Route53::RecordSetGroup->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::Route53::RecordSetGroup {
9 4     4   8247 use Moose;
  4         23  
  4         34  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::Route53::RecordSetGroup', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 4 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1233 [ 'ap-east-1','ap-northeast-1','ap-northeast-2','ap-northeast-3','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','cn-north-1','cn-northwest-1','eu-central-1','eu-north-1','eu-west-1','eu-west-2','eu-west-3','me-south-1','sa-east-1','us-east-1','us-east-2','us-gov-east-1','us-gov-west-1','us-west-1','us-west-2' ]
18             }
19             }
20              
21              
22              
23             subtype 'Cfn::Resource::Properties::AWS::Route53::RecordSetGroup::GeoLocation',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::Route53::RecordSetGroup::GeoLocation',
27             from 'HashRef',
28             via {
29             if (my $f = Cfn::TypeLibrary::try_function($_)) {
30             return $f
31             } else {
32             return Cfn::Resource::Properties::AWS::Route53::RecordSetGroup::GeoLocationValue->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::AWS::Route53::RecordSetGroup::GeoLocationValue {
37 4     4   26838 use Moose;
  4         9  
  4         23  
38 4     4   23853 use MooseX::StrictConstructor;
  4         10  
  4         41  
39             extends 'Cfn::Value::TypedValue';
40            
41             has ContinentCode => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42             has CountryCode => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43             has SubdivisionCode => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
44             }
45              
46             subtype 'Cfn::Resource::Properties::AWS::Route53::RecordSetGroup::AliasTarget',
47             as 'Cfn::Value';
48              
49             coerce 'Cfn::Resource::Properties::AWS::Route53::RecordSetGroup::AliasTarget',
50             from 'HashRef',
51             via {
52             if (my $f = Cfn::TypeLibrary::try_function($_)) {
53             return $f
54             } else {
55             return Cfn::Resource::Properties::AWS::Route53::RecordSetGroup::AliasTargetValue->new( %$_ );
56             }
57             };
58              
59             package Cfn::Resource::Properties::AWS::Route53::RecordSetGroup::AliasTargetValue {
60 4     4   12978 use Moose;
  4         12  
  4         23  
61 4     4   24075 use MooseX::StrictConstructor;
  4         10  
  4         22  
62             extends 'Cfn::Value::TypedValue';
63            
64             has DNSName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65             has EvaluateTargetHealth => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
66             has HostedZoneId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
67             }
68             subtype 'ArrayOfCfn::Resource::Properties::AWS::Route53::RecordSetGroup::RecordSet',
69             as 'Cfn::Value',
70             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
71             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
72              
73             coerce 'ArrayOfCfn::Resource::Properties::AWS::Route53::RecordSetGroup::RecordSet',
74             from 'HashRef',
75             via {
76             if (my $f = Cfn::TypeLibrary::try_function($_)) {
77             return $f
78             } else {
79             die 'Only accepts functions';
80             }
81             },
82             from 'ArrayRef',
83             via {
84             Cfn::Value::Array->new(Value => [
85             map {
86             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Route53::RecordSetGroup::RecordSet')->coerce($_)
87             } @$_
88             ]);
89             };
90              
91             subtype 'Cfn::Resource::Properties::AWS::Route53::RecordSetGroup::RecordSet',
92             as 'Cfn::Value';
93              
94             coerce 'Cfn::Resource::Properties::AWS::Route53::RecordSetGroup::RecordSet',
95             from 'HashRef',
96             via {
97             if (my $f = Cfn::TypeLibrary::try_function($_)) {
98             return $f
99             } else {
100             return Cfn::Resource::Properties::AWS::Route53::RecordSetGroup::RecordSetValue->new( %$_ );
101             }
102             };
103              
104             package Cfn::Resource::Properties::AWS::Route53::RecordSetGroup::RecordSetValue {
105 4     4   12981 use Moose;
  4         11  
  4         19  
106 4     4   24321 use MooseX::StrictConstructor;
  4         10  
  4         23  
107             extends 'Cfn::Value::TypedValue';
108            
109             has AliasTarget => (isa => 'Cfn::Resource::Properties::AWS::Route53::RecordSetGroup::AliasTarget', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
110             has Comment => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
111             has Failover => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
112             has GeoLocation => (isa => 'Cfn::Resource::Properties::AWS::Route53::RecordSetGroup::GeoLocation', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
113             has HealthCheckId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
114             has HostedZoneId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
115             has HostedZoneName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
116             has MultiValueAnswer => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
117             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
118             has Region => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
119             has ResourceRecords => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
120             has SetIdentifier => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
121             has TTL => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
122             has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
123             has Weight => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
124             }
125              
126             package Cfn::Resource::Properties::AWS::Route53::RecordSetGroup {
127 4     4   12526 use Moose;
  4         14  
  4         26  
128 4     4   24579 use MooseX::StrictConstructor;
  4         13  
  4         28  
129             extends 'Cfn::Resource::Properties';
130            
131             has Comment => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
132             has HostedZoneId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
133             has HostedZoneName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
134             has RecordSets => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Route53::RecordSetGroup::RecordSet', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
135             }
136              
137             1;