File Coverage

blib/lib/Cfn/Resource/AWS/Cognito/UserPoolRiskConfigurationAttachment.pm
Criterion Covered Total %
statement 62 62 100.0
branch n/a
condition n/a
subroutine 22 22 100.0
pod 0 2 0.0
total 84 86 97.6


line stmt bran cond sub pod time code
1             # AWS::Cognito::UserPoolRiskConfigurationAttachment generated from spec 6.3.0
2 1     1   782 use Moose::Util::TypeConstraints;
  1         5  
  1         12  
3              
4             coerce 'Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::Cognito::UserPoolRiskConfigurationAttachment {
9 1     1   2296 use Moose;
  1         3  
  1         9  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 4 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1179 [ 'ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','eu-central-1','eu-west-1','eu-west-2','us-east-1','us-east-2','us-west-2' ]
18             }
19             }
20              
21              
22              
23             subtype 'Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::NotifyEmailType',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::NotifyEmailType',
27             from 'HashRef',
28             via {
29             if (my $f = Cfn::TypeLibrary::try_function($_)) {
30             return $f
31             } else {
32             return Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::NotifyEmailTypeValue->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::NotifyEmailTypeValue {
37 1     1   7365 use Moose;
  1         3  
  1         6  
38 1     1   6941 use MooseX::StrictConstructor;
  1         3  
  1         12  
39             extends 'Cfn::Value::TypedValue';
40            
41             has HtmlBody => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42             has Subject => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43             has TextBody => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
44             }
45              
46             subtype 'Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::AccountTakeoverActionType',
47             as 'Cfn::Value';
48              
49             coerce 'Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::AccountTakeoverActionType',
50             from 'HashRef',
51             via {
52             if (my $f = Cfn::TypeLibrary::try_function($_)) {
53             return $f
54             } else {
55             return Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::AccountTakeoverActionTypeValue->new( %$_ );
56             }
57             };
58              
59             package Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::AccountTakeoverActionTypeValue {
60 1     1   3620 use Moose;
  1         5  
  1         6  
61 1     1   6764 use MooseX::StrictConstructor;
  1         4  
  1         9  
62             extends 'Cfn::Value::TypedValue';
63            
64             has EventAction => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65             has Notify => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
66             }
67              
68             subtype 'Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::NotifyConfigurationType',
69             as 'Cfn::Value';
70              
71             coerce 'Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::NotifyConfigurationType',
72             from 'HashRef',
73             via {
74             if (my $f = Cfn::TypeLibrary::try_function($_)) {
75             return $f
76             } else {
77             return Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::NotifyConfigurationTypeValue->new( %$_ );
78             }
79             };
80              
81             package Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::NotifyConfigurationTypeValue {
82 1     1   3476 use Moose;
  1         3  
  1         7  
83 1     1   6627 use MooseX::StrictConstructor;
  1         2  
  1         6  
84             extends 'Cfn::Value::TypedValue';
85            
86             has BlockEmail => (isa => 'Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::NotifyEmailType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
87             has From => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
88             has MfaEmail => (isa => 'Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::NotifyEmailType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
89             has NoActionEmail => (isa => 'Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::NotifyEmailType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
90             has ReplyTo => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
91             has SourceArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
92             }
93              
94             subtype 'Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::CompromisedCredentialsActionsType',
95             as 'Cfn::Value';
96              
97             coerce 'Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::CompromisedCredentialsActionsType',
98             from 'HashRef',
99             via {
100             if (my $f = Cfn::TypeLibrary::try_function($_)) {
101             return $f
102             } else {
103             return Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::CompromisedCredentialsActionsTypeValue->new( %$_ );
104             }
105             };
106              
107             package Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::CompromisedCredentialsActionsTypeValue {
108 1     1   3536 use Moose;
  1         3  
  1         7  
109 1     1   6699 use MooseX::StrictConstructor;
  1         2  
  1         6  
110             extends 'Cfn::Value::TypedValue';
111            
112             has EventAction => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
113             }
114              
115             subtype 'Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::AccountTakeoverActionsType',
116             as 'Cfn::Value';
117              
118             coerce 'Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::AccountTakeoverActionsType',
119             from 'HashRef',
120             via {
121             if (my $f = Cfn::TypeLibrary::try_function($_)) {
122             return $f
123             } else {
124             return Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::AccountTakeoverActionsTypeValue->new( %$_ );
125             }
126             };
127              
128             package Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::AccountTakeoverActionsTypeValue {
129 1     1   3499 use Moose;
  1         4  
  1         6  
130 1     1   7062 use MooseX::StrictConstructor;
  1         4  
  1         7  
131             extends 'Cfn::Value::TypedValue';
132            
133             has HighAction => (isa => 'Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::AccountTakeoverActionType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
134             has LowAction => (isa => 'Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::AccountTakeoverActionType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
135             has MediumAction => (isa => 'Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::AccountTakeoverActionType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
136             }
137              
138             subtype 'Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::RiskExceptionConfigurationType',
139             as 'Cfn::Value';
140              
141             coerce 'Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::RiskExceptionConfigurationType',
142             from 'HashRef',
143             via {
144             if (my $f = Cfn::TypeLibrary::try_function($_)) {
145             return $f
146             } else {
147             return Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::RiskExceptionConfigurationTypeValue->new( %$_ );
148             }
149             };
150              
151             package Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::RiskExceptionConfigurationTypeValue {
152 1     1   3666 use Moose;
  1         3  
  1         7  
153 1     1   6734 use MooseX::StrictConstructor;
  1         4  
  1         6  
154             extends 'Cfn::Value::TypedValue';
155            
156             has BlockedIPRangeList => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
157             has SkippedIPRangeList => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
158             }
159              
160             subtype 'Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::CompromisedCredentialsRiskConfigurationType',
161             as 'Cfn::Value';
162              
163             coerce 'Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::CompromisedCredentialsRiskConfigurationType',
164             from 'HashRef',
165             via {
166             if (my $f = Cfn::TypeLibrary::try_function($_)) {
167             return $f
168             } else {
169             return Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::CompromisedCredentialsRiskConfigurationTypeValue->new( %$_ );
170             }
171             };
172              
173             package Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::CompromisedCredentialsRiskConfigurationTypeValue {
174 1     1   3474 use Moose;
  1         3  
  1         7  
175 1     1   6653 use MooseX::StrictConstructor;
  1         2  
  1         6  
176             extends 'Cfn::Value::TypedValue';
177            
178             has Actions => (isa => 'Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::CompromisedCredentialsActionsType', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
179             has EventFilter => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
180             }
181              
182             subtype 'Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::AccountTakeoverRiskConfigurationType',
183             as 'Cfn::Value';
184              
185             coerce 'Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::AccountTakeoverRiskConfigurationType',
186             from 'HashRef',
187             via {
188             if (my $f = Cfn::TypeLibrary::try_function($_)) {
189             return $f
190             } else {
191             return Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::AccountTakeoverRiskConfigurationTypeValue->new( %$_ );
192             }
193             };
194              
195             package Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::AccountTakeoverRiskConfigurationTypeValue {
196 1     1   3438 use Moose;
  1         3  
  1         6  
197 1     1   6794 use MooseX::StrictConstructor;
  1         5  
  1         7  
198             extends 'Cfn::Value::TypedValue';
199            
200             has Actions => (isa => 'Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::AccountTakeoverActionsType', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
201             has NotifyConfiguration => (isa => 'Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::NotifyConfigurationType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
202             }
203              
204             package Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment {
205 1     1   3313 use Moose;
  1         3  
  1         8  
206 1     1   6628 use MooseX::StrictConstructor;
  1         4  
  1         8  
207             extends 'Cfn::Resource::Properties';
208            
209             has AccountTakeoverRiskConfiguration => (isa => 'Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::AccountTakeoverRiskConfigurationType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
210             has ClientId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
211             has CompromisedCredentialsRiskConfiguration => (isa => 'Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::CompromisedCredentialsRiskConfigurationType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
212             has RiskExceptionConfiguration => (isa => 'Cfn::Resource::Properties::AWS::Cognito::UserPoolRiskConfigurationAttachment::RiskExceptionConfigurationType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
213             has UserPoolId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
214             }
215              
216             1;