File Coverage

blib/lib/Cfn/Resource/AWS/IoTAnalytics/Datastore.pm
Criterion Covered Total %
statement 38 38 100.0
branch n/a
condition n/a
subroutine 14 14 100.0
pod 0 2 0.0
total 52 54 96.3


line stmt bran cond sub pod time code
1             # AWS::IoTAnalytics::Datastore generated from spec 4.1.0
2 1     1   683 use Moose::Util::TypeConstraints;
  1         5  
  1         11  
3              
4             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::IoTAnalytics::Datastore {
9 1     1   2189 use Moose;
  1         4  
  1         7  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 3 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1102 [ 'ap-northeast-1','eu-central-1','eu-west-1','us-east-1','us-east-2','us-west-2' ]
18             }
19             }
20              
21              
22              
23             subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::ServiceManagedS3',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::ServiceManagedS3',
27             from 'HashRef',
28             via {
29             if (my $f = Cfn::TypeLibrary::try_function($_)) {
30             return $f
31             } else {
32             return Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::ServiceManagedS3Value->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::ServiceManagedS3Value {
37 1     1   7205 use Moose;
  1         13  
  1         7  
38 1     1   6462 use MooseX::StrictConstructor;
  1         2  
  1         10  
39             extends 'Cfn::Value::TypedValue';
40            
41             }
42              
43             subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::CustomerManagedS3',
44             as 'Cfn::Value';
45              
46             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::CustomerManagedS3',
47             from 'HashRef',
48             via {
49             if (my $f = Cfn::TypeLibrary::try_function($_)) {
50             return $f
51             } else {
52             return Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::CustomerManagedS3Value->new( %$_ );
53             }
54             };
55              
56             package Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::CustomerManagedS3Value {
57 1     1   3543 use Moose;
  1         2  
  1         7  
58 1     1   6538 use MooseX::StrictConstructor;
  1         3  
  1         6  
59             extends 'Cfn::Value::TypedValue';
60            
61             has Bucket => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
62             has KeyPrefix => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
63             has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64             }
65              
66             subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::RetentionPeriod',
67             as 'Cfn::Value';
68              
69             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::RetentionPeriod',
70             from 'HashRef',
71             via {
72             if (my $f = Cfn::TypeLibrary::try_function($_)) {
73             return $f
74             } else {
75             return Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::RetentionPeriodValue->new( %$_ );
76             }
77             };
78              
79             package Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::RetentionPeriodValue {
80 1     1   3358 use Moose;
  1         2  
  1         5  
81 1     1   6633 use MooseX::StrictConstructor;
  1         2  
  1         5  
82             extends 'Cfn::Value::TypedValue';
83            
84             has NumberOfDays => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
85             has Unlimited => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
86             }
87              
88             subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::DatastoreStorage',
89             as 'Cfn::Value';
90              
91             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::DatastoreStorage',
92             from 'HashRef',
93             via {
94             if (my $f = Cfn::TypeLibrary::try_function($_)) {
95             return $f
96             } else {
97             return Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::DatastoreStorageValue->new( %$_ );
98             }
99             };
100              
101             package Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::DatastoreStorageValue {
102 1     1   3357 use Moose;
  1         3  
  1         5  
103 1     1   6917 use MooseX::StrictConstructor;
  1         3  
  1         6  
104             extends 'Cfn::Value::TypedValue';
105            
106             has CustomerManagedS3 => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::CustomerManagedS3', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
107             has ServiceManagedS3 => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::ServiceManagedS3', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
108             }
109              
110             package Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore {
111 1     1   3272 use Moose;
  1         5  
  1         5  
112 1     1   6500 use MooseX::StrictConstructor;
  1         4  
  1         6  
113             extends 'Cfn::Resource::Properties';
114            
115             has DatastoreName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
116             has DatastoreStorage => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::DatastoreStorage', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
117             has RetentionPeriod => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::RetentionPeriod', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
118             has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
119             }
120              
121             1;