File Coverage

blib/lib/Cfn/Resource/AWS/IoTAnalytics/Channel.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::Channel generated from spec 20.1.0
2 1     1   758 use Moose::Util::TypeConstraints;
  1         5  
  1         11  
3              
4             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Channel',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::IoTAnalytics::Channel->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::IoTAnalytics::Channel {
9 1     1   2376 use Moose;
  1         3  
  1         7  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Channel', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 3 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1153 [ '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::Channel::ServiceManagedS3',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Channel::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::Channel::ServiceManagedS3->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Channel::ServiceManagedS3 {
37 1     1   7507 use Moose;
  1         6  
  1         8  
38 1     1   6776 use MooseX::StrictConstructor;
  1         3  
  1         12  
39             extends 'Cfn::Value::TypedValue';
40            
41             }
42              
43             subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Channel::CustomerManagedS3',
44             as 'Cfn::Value';
45              
46             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Channel::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::Channel::CustomerManagedS3->new( %$_ );
53             }
54             };
55              
56             package Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Channel::CustomerManagedS3 {
57 1     1   3904 use Moose;
  1         3  
  1         5  
58 1     1   6852 use MooseX::StrictConstructor;
  1         3  
  1         5  
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::Channel::RetentionPeriod',
67             as 'Cfn::Value';
68              
69             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Channel::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::Channel::RetentionPeriod->new( %$_ );
76             }
77             };
78              
79             package Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Channel::RetentionPeriod {
80 1     1   3890 use Moose;
  1         4  
  1         6  
81 1     1   6949 use MooseX::StrictConstructor;
  1         3  
  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::Channel::ChannelStorage',
89             as 'Cfn::Value';
90              
91             coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Channel::ChannelStorage',
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::Channel::ChannelStorage->new( %$_ );
98             }
99             };
100              
101             package Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Channel::ChannelStorage {
102 1     1   3566 use Moose;
  1         4  
  1         6  
103 1     1   6834 use MooseX::StrictConstructor;
  1         3  
  1         6  
104             extends 'Cfn::Value::TypedValue';
105            
106             has CustomerManagedS3 => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Channel::CustomerManagedS3', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
107             has ServiceManagedS3 => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Channel::ServiceManagedS3', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
108             }
109              
110             package Cfn::Resource::Properties::AWS::IoTAnalytics::Channel {
111 1     1   3424 use Moose;
  1         4  
  1         6  
112 1     1   6847 use MooseX::StrictConstructor;
  1         4  
  1         8  
113             extends 'Cfn::Resource::Properties';
114            
115             has ChannelName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
116             has ChannelStorage => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Channel::ChannelStorage', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
117             has RetentionPeriod => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Channel::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::Channel - Cfn resource for AWS::IoTAnalytics::Channel
129              
130             =head1 DESCRIPTION
131              
132             This module implements a Perl module that represents the CloudFormation object AWS::IoTAnalytics::Channel.
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