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 20.1.0
2 1     1   550 use Moose::Util::TypeConstraints;
  1         4  
  1         8  
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   2040 use Moose;
  1         3  
  1         6  
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 4 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1162 [ 'ap-northeast-1','ap-southeast-2','cn-north-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::Object::AWS::IoTAnalytics::Datastore::ServiceManagedS3->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Datastore::ServiceManagedS3 {
37 1     1   7016 use Moose;
  1         5  
  1         5  
38 1     1   6692 use MooseX::StrictConstructor;
  1         3  
  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::Object::AWS::IoTAnalytics::Datastore::CustomerManagedS3->new( %$_ );
53             }
54             };
55              
56             package Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Datastore::CustomerManagedS3 {
57 1     1   3541 use Moose;
  1         5  
  1         5  
58 1     1   6702 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::Object::AWS::IoTAnalytics::Datastore::RetentionPeriod->new( %$_ );
76             }
77             };
78              
79             package Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Datastore::RetentionPeriod {
80 1     1   3450 use Moose;
  1         5  
  1         14  
81 1     1   6639 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::Object::AWS::IoTAnalytics::Datastore::DatastoreStorage->new( %$_ );
98             }
99             };
100              
101             package Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Datastore::DatastoreStorage {
102 1     1   3464 use Moose;
  1         3  
  1         7  
103 1     1   6773 use MooseX::StrictConstructor;
  1         3  
  1         9  
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   3360 use Moose;
  1         4  
  1         5  
112 1     1   6635 use MooseX::StrictConstructor;
  1         3  
  1         7  
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;
122             ### main pod documentation begin ###
123              
124             =encoding UTF-8
125              
126             =head1 NAME
127              
128             Cfn::Resource::AWS::IoTAnalytics::Datastore - Cfn resource for AWS::IoTAnalytics::Datastore
129              
130             =head1 DESCRIPTION
131              
132             This module implements a Perl module that represents the CloudFormation object AWS::IoTAnalytics::Datastore.
133              
134             See L<Cfn> for more information on how to use it.
135              
136             =head1 AUTHOR
137              
138             Jose Luis Martinez
139             CAPSiDE
140             jlmartinez@capside.com
141              
142             =head1 COPYRIGHT and LICENSE
143              
144             Copyright (c) 2013 by CAPSiDE
145             This code is distributed under the Apache 2 License. The full text of the
146             license can be found in the LICENSE file included with this module.
147              
148             =cut