File Coverage

blib/lib/Cfn/Resource/AWS/Config/RemediationConfiguration.pm
Criterion Covered Total %
statement 44 44 100.0
branch n/a
condition n/a
subroutine 16 16 100.0
pod 0 2 0.0
total 60 62 96.7


line stmt bran cond sub pod time code
1             # AWS::Config::RemediationConfiguration generated from spec 6.1.0
2 1     1   704 use Moose::Util::TypeConstraints;
  1         2  
  1         10  
3              
4             coerce 'Cfn::Resource::Properties::AWS::Config::RemediationConfiguration',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::Config::RemediationConfiguration->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::Config::RemediationConfiguration {
9 1     1   2236 use Moose;
  1         3  
  1         8  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::Config::RemediationConfiguration', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 5 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1063 [ 'ap-east-1','ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','eu-central-1','eu-north-1','eu-west-1','eu-west-2','eu-west-3','sa-east-1','us-east-1','us-east-2','us-gov-east-1','us-gov-west-1','us-west-1','us-west-2' ]
18             }
19             }
20              
21              
22              
23             subtype 'Cfn::Resource::Properties::AWS::Config::RemediationConfiguration::StaticValue',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::Config::RemediationConfiguration::StaticValue',
27             from 'HashRef',
28             via {
29             if (my $f = Cfn::TypeLibrary::try_function($_)) {
30             return $f
31             } else {
32             return Cfn::Resource::Properties::AWS::Config::RemediationConfiguration::StaticValueValue->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::AWS::Config::RemediationConfiguration::StaticValueValue {
37 1     1   7225 use Moose;
  1         3  
  1         4  
38 1     1   6588 use MooseX::StrictConstructor;
  1         2  
  1         10  
39             extends 'Cfn::Value::TypedValue';
40            
41             has Values => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42             }
43              
44             subtype 'Cfn::Resource::Properties::AWS::Config::RemediationConfiguration::SsmControls',
45             as 'Cfn::Value';
46              
47             coerce 'Cfn::Resource::Properties::AWS::Config::RemediationConfiguration::SsmControls',
48             from 'HashRef',
49             via {
50             if (my $f = Cfn::TypeLibrary::try_function($_)) {
51             return $f
52             } else {
53             return Cfn::Resource::Properties::AWS::Config::RemediationConfiguration::SsmControlsValue->new( %$_ );
54             }
55             };
56              
57             package Cfn::Resource::Properties::AWS::Config::RemediationConfiguration::SsmControlsValue {
58 1     1   3527 use Moose;
  1         2  
  1         5  
59 1     1   6572 use MooseX::StrictConstructor;
  1         4  
  1         4  
60             extends 'Cfn::Value::TypedValue';
61            
62             has ConcurrentExecutionRatePercentage => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
63             has ErrorPercentage => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64             }
65              
66             subtype 'Cfn::Resource::Properties::AWS::Config::RemediationConfiguration::ResourceValue',
67             as 'Cfn::Value';
68              
69             coerce 'Cfn::Resource::Properties::AWS::Config::RemediationConfiguration::ResourceValue',
70             from 'HashRef',
71             via {
72             if (my $f = Cfn::TypeLibrary::try_function($_)) {
73             return $f
74             } else {
75             return Cfn::Resource::Properties::AWS::Config::RemediationConfiguration::ResourceValueValue->new( %$_ );
76             }
77             };
78              
79             package Cfn::Resource::Properties::AWS::Config::RemediationConfiguration::ResourceValueValue {
80 1     1   3331 use Moose;
  1         3  
  1         6  
81 1     1   6480 use MooseX::StrictConstructor;
  1         3  
  1         5  
82             extends 'Cfn::Value::TypedValue';
83            
84             has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
85             }
86              
87             subtype 'Cfn::Resource::Properties::AWS::Config::RemediationConfiguration::RemediationParameterValue',
88             as 'Cfn::Value';
89              
90             coerce 'Cfn::Resource::Properties::AWS::Config::RemediationConfiguration::RemediationParameterValue',
91             from 'HashRef',
92             via {
93             if (my $f = Cfn::TypeLibrary::try_function($_)) {
94             return $f
95             } else {
96             return Cfn::Resource::Properties::AWS::Config::RemediationConfiguration::RemediationParameterValueValue->new( %$_ );
97             }
98             };
99              
100             package Cfn::Resource::Properties::AWS::Config::RemediationConfiguration::RemediationParameterValueValue {
101 1     1   3349 use Moose;
  1         4  
  1         7  
102 1     1   6580 use MooseX::StrictConstructor;
  1         3  
  1         5  
103             extends 'Cfn::Value::TypedValue';
104            
105             has ResourceValue => (isa => 'Cfn::Resource::Properties::AWS::Config::RemediationConfiguration::ResourceValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
106             has StaticValue => (isa => 'Cfn::Resource::Properties::AWS::Config::RemediationConfiguration::StaticValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
107             }
108              
109             subtype 'Cfn::Resource::Properties::AWS::Config::RemediationConfiguration::ExecutionControls',
110             as 'Cfn::Value';
111              
112             coerce 'Cfn::Resource::Properties::AWS::Config::RemediationConfiguration::ExecutionControls',
113             from 'HashRef',
114             via {
115             if (my $f = Cfn::TypeLibrary::try_function($_)) {
116             return $f
117             } else {
118             return Cfn::Resource::Properties::AWS::Config::RemediationConfiguration::ExecutionControlsValue->new( %$_ );
119             }
120             };
121              
122             package Cfn::Resource::Properties::AWS::Config::RemediationConfiguration::ExecutionControlsValue {
123 1     1   3332 use Moose;
  1         4  
  1         5  
124 1     1   6504 use MooseX::StrictConstructor;
  1         3  
  1         4  
125             extends 'Cfn::Value::TypedValue';
126            
127             has SsmControls => (isa => 'Cfn::Resource::Properties::AWS::Config::RemediationConfiguration::SsmControls', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
128             }
129              
130             package Cfn::Resource::Properties::AWS::Config::RemediationConfiguration {
131 1     1   3273 use Moose;
  1         3  
  1         4  
132 1     1   6513 use MooseX::StrictConstructor;
  1         3  
  1         5  
133             extends 'Cfn::Resource::Properties';
134            
135             has Automatic => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
136             has ConfigRuleName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
137             has ExecutionControls => (isa => 'Cfn::Resource::Properties::AWS::Config::RemediationConfiguration::ExecutionControls', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
138             has MaximumAutomaticAttempts => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
139             has Parameters => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
140             has ResourceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
141             has RetryAttemptSeconds => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
142             has TargetId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
143             has TargetType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
144             has TargetVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
145             }
146              
147             1;