File Coverage

blib/lib/Cfn/Resource/AWS/Route53/RecordSet.pm
Criterion Covered Total %
statement 26 26 100.0
branch n/a
condition n/a
subroutine 10 10 100.0
pod 0 2 0.0
total 36 38 94.7


line stmt bran cond sub pod time code
1             # AWS::Route53::RecordSet generated from spec 18.4.0
2 5     5   3778 use Moose::Util::TypeConstraints;
  5         19  
  5         72  
3              
4             coerce 'Cfn::Resource::Properties::AWS::Route53::RecordSet',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::Route53::RecordSet->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::Route53::RecordSet {
9 5     5   11936 use Moose;
  5         17  
  5         48  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::Route53::RecordSet', 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::RecordSet::GeoLocation',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::Route53::RecordSet::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::RecordSet::GeoLocation->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::Object::AWS::Route53::RecordSet::GeoLocation {
37 5     5   39096 use Moose;
  5         17  
  5         30  
38 5     5   33458 use MooseX::StrictConstructor;
  5         13  
  5         54  
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::RecordSet::AliasTarget',
47             as 'Cfn::Value';
48              
49             coerce 'Cfn::Resource::Properties::AWS::Route53::RecordSet::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::RecordSet::AliasTarget->new( %$_ );
56             }
57             };
58              
59             package Cfn::Resource::Properties::Object::AWS::Route53::RecordSet::AliasTarget {
60 5     5   18972 use Moose;
  5         29  
  5         34  
61 5     5   33187 use MooseX::StrictConstructor;
  5         17  
  5         31  
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              
69             package Cfn::Resource::Properties::AWS::Route53::RecordSet {
70 5     5   17191 use Moose;
  5         18  
  5         31  
71 5     5   33652 use MooseX::StrictConstructor;
  5         33  
  5         44  
72             extends 'Cfn::Resource::Properties';
73            
74             has AliasTarget => (isa => 'Cfn::Resource::Properties::AWS::Route53::RecordSet::AliasTarget', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
75             has Comment => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
76             has Failover => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
77             has GeoLocation => (isa => 'Cfn::Resource::Properties::AWS::Route53::RecordSet::GeoLocation', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
78             has HealthCheckId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
79             has HostedZoneId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
80             has HostedZoneName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
81             has MultiValueAnswer => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
82             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
83             has Region => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
84             has ResourceRecords => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
85             has SetIdentifier => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
86             has TTL => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
87             has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
88             has Weight => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
89             }
90              
91             1;
92             ### main pod documentation begin ###
93              
94             =encoding UTF-8
95              
96             =head1 NAME
97              
98             Cfn::Resource::AWS::Route53::RecordSet - Cfn resource for AWS::Route53::RecordSet
99              
100             =head1 DESCRIPTION
101              
102             This module implements a Perl module that represents the CloudFormation object AWS::Route53::RecordSet.
103              
104             See L<Cfn> for more information on how to use it.
105              
106             =head1 AUTHOR
107              
108             Jose Luis Martinez
109             CAPSiDE
110             jlmartinez@capside.com
111              
112             =head1 COPYRIGHT and LICENSE
113              
114             Copyright (c) 2013 by CAPSiDE
115             This code is distributed under the Apache 2 License. The full text of the
116             license can be found in the LICENSE file included with this module.
117              
118             =cut