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 4.1.0
2 1     1   691 use Moose::Util::TypeConstraints;
  1         2  
  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   2102 use Moose;
  1         3  
  1         8  
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 1067 [ '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::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::AWS::IoTAnalytics::Channel::ServiceManagedS3Value->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::AWS::IoTAnalytics::Channel::ServiceManagedS3Value {
37 1     1   6991 use Moose;
  1         2  
  1         6  
38 1     1   6860 use MooseX::StrictConstructor;
  1         2  
  1         10  
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::AWS::IoTAnalytics::Channel::CustomerManagedS3Value->new( %$_ );
53             }
54             };
55              
56             package Cfn::Resource::Properties::AWS::IoTAnalytics::Channel::CustomerManagedS3Value {
57 1     1   3508 use Moose;
  1         3  
  1         5  
58 1     1   6449 use MooseX::StrictConstructor;
  1         2  
  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::AWS::IoTAnalytics::Channel::RetentionPeriodValue->new( %$_ );
76             }
77             };
78              
79             package Cfn::Resource::Properties::AWS::IoTAnalytics::Channel::RetentionPeriodValue {
80 1     1   3339 use Moose;
  1         2  
  1         6  
81 1     1   6809 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::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::AWS::IoTAnalytics::Channel::ChannelStorageValue->new( %$_ );
98             }
99             };
100              
101             package Cfn::Resource::Properties::AWS::IoTAnalytics::Channel::ChannelStorageValue {
102 1     1   3422 use Moose;
  1         3  
  1         5  
103 1     1   6414 use MooseX::StrictConstructor;
  1         2  
  1         7  
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   3224 use Moose;
  1         3  
  1         5  
112 1     1   6547 use MooseX::StrictConstructor;
  1         3  
  1         6  
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;