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 2.25.0
2 3     3   1963 use Moose::Util::TypeConstraints;
  3         9  
  3         36  
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   6505 use Moose;
  3         7  
  3         21  
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 5 [ 'Arn','ClusterDiscoveryEndpoint' ]
15             }
16             sub supported_regions {
17 1     1 0 1491 [ '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::AWS::DAX::Cluster::SSESpecificationValue->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::AWS::DAX::Cluster::SSESpecificationValue {
37 3     3   20958 use Moose;
  3         8  
  3         15  
38 3     3   18489 use MooseX::StrictConstructor;
  3         8  
  3         27  
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   9971 use Moose;
  3         11  
  3         20  
46 3     3   18834 use MooseX::StrictConstructor;
  3         8  
  3         15  
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;