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 18.4.0
2 4     4   3050 use Moose::Util::TypeConstraints;
  4         13  
  4         70  
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   9578 use Moose;
  4         12  
  4         37  
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 1198 [ 'af-south-1','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-south-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::Object::AWS::Route53::RecordSetGroup::GeoLocation->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::Object::AWS::Route53::RecordSetGroup::GeoLocation {
37 4     4   31893 use Moose;
  4         14  
  4         23  
38 4     4   27599 use MooseX::StrictConstructor;
  4         11  
  4         45  
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::Object::AWS::Route53::RecordSetGroup::AliasTarget->new( %$_ );
56             }
57             };
58              
59             package Cfn::Resource::Properties::Object::AWS::Route53::RecordSetGroup::AliasTarget {
60 4     4   15364 use Moose;
  4         19  
  4         45  
61 4     4   26892 use MooseX::StrictConstructor;
  4         11  
  4         25  
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::Object::AWS::Route53::RecordSetGroup::RecordSet->new( %$_ );
101             }
102             };
103              
104             package Cfn::Resource::Properties::Object::AWS::Route53::RecordSetGroup::RecordSet {
105 4     4   14921 use Moose;
  4         14  
  4         23  
106 4     4   27559 use MooseX::StrictConstructor;
  4         12  
  4         27  
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   14518 use Moose;
  4         22  
  4         26  
128 4     4   27106 use MooseX::StrictConstructor;
  4         13  
  4         23  
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;
138             ### main pod documentation begin ###
139              
140             =encoding UTF-8
141              
142             =head1 NAME
143              
144             Cfn::Resource::AWS::Route53::RecordSetGroup - Cfn resource for AWS::Route53::RecordSetGroup
145              
146             =head1 DESCRIPTION
147              
148             This module implements a Perl module that represents the CloudFormation object AWS::Route53::RecordSetGroup.
149              
150             See L<Cfn> for more information on how to use it.
151              
152             =head1 AUTHOR
153              
154             Jose Luis Martinez
155             CAPSiDE
156             jlmartinez@capside.com
157              
158             =head1 COPYRIGHT and LICENSE
159              
160             Copyright (c) 2013 by CAPSiDE
161             This code is distributed under the Apache 2 License. The full text of the
162             license can be found in the LICENSE file included with this module.
163              
164             =cut