File Coverage

blib/lib/Cfn/Resource/AWS/DAX/Cluster.pm
Criterion Covered Total %
statement 20 20 100.0
branch n/a
condition n/a
subroutine 8 8 100.0
pod 0 2 0.0
total 28 30 93.3


line stmt bran cond sub pod time code
1             # AWS::DAX::Cluster generated from spec 18.4.0
2 3     3   2330 use Moose::Util::TypeConstraints;
  3         12  
  3         38  
3              
4             coerce 'Cfn::Resource::Properties::AWS::DAX::Cluster',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::DAX::Cluster->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::DAX::Cluster {
9 3     3   7441 use Moose;
  3         9  
  3         22  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::DAX::Cluster', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 7 [ 'Arn','ClusterDiscoveryEndpoint' ]
15             }
16             sub supported_regions {
17 1     1 0 1148 [ 'ap-northeast-1','eu-west-1','us-east-1','us-west-1','us-west-2' ]
18             }
19             }
20              
21              
22              
23             subtype 'Cfn::Resource::Properties::AWS::DAX::Cluster::SSESpecification',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::DAX::Cluster::SSESpecification',
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::DAX::Cluster::SSESpecification->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::Object::AWS::DAX::Cluster::SSESpecification {
37 3     3   23357 use Moose;
  3         13  
  3         16  
38 3     3   21106 use MooseX::StrictConstructor;
  3         10  
  3         32  
39             extends 'Cfn::Value::TypedValue';
40            
41             has SSEEnabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42             }
43              
44             package Cfn::Resource::Properties::AWS::DAX::Cluster {
45 3     3   10500 use Moose;
  3         8  
  3         19  
46 3     3   19332 use MooseX::StrictConstructor;
  3         10  
  3         17  
47             extends 'Cfn::Resource::Properties';
48            
49             has AvailabilityZones => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
50             has ClusterName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
51             has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
52             has IAMRoleARN => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
53             has NodeType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
54             has NotificationTopicARN => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
55             has ParameterGroupName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
56             has PreferredMaintenanceWindow => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
57             has ReplicationFactor => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
58             has SSESpecification => (isa => 'Cfn::Resource::Properties::AWS::DAX::Cluster::SSESpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
59             has SecurityGroupIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
60             has SubnetGroupName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
61             has Tags => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
62             }
63              
64             1;
65             ### main pod documentation begin ###
66              
67             =encoding UTF-8
68              
69             =head1 NAME
70              
71             Cfn::Resource::AWS::DAX::Cluster - Cfn resource for AWS::DAX::Cluster
72              
73             =head1 DESCRIPTION
74              
75             This module implements a Perl module that represents the CloudFormation object AWS::DAX::Cluster.
76              
77             See L<Cfn> for more information on how to use it.
78              
79             =head1 AUTHOR
80              
81             Jose Luis Martinez
82             CAPSiDE
83             jlmartinez@capside.com
84              
85             =head1 COPYRIGHT and LICENSE
86              
87             Copyright (c) 2013 by CAPSiDE
88             This code is distributed under the Apache 2 License. The full text of the
89             license can be found in the LICENSE file included with this module.
90              
91             =cut