File Coverage

blib/lib/Cfn/Resource/AWS/CodePipeline/CustomActionType.pm
Criterion Covered Total %
statement 32 32 100.0
branch n/a
condition n/a
subroutine 12 12 100.0
pod 0 2 0.0
total 44 46 95.6


line stmt bran cond sub pod time code
1             # AWS::CodePipeline::CustomActionType generated from spec 7.4.0
2 2     2   1367 use Moose::Util::TypeConstraints;
  2         6  
  2         22  
3              
4             coerce 'Cfn::Resource::Properties::AWS::CodePipeline::CustomActionType',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::CodePipeline::CustomActionType->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::CodePipeline::CustomActionType {
9 2     2   4411 use Moose;
  2         6  
  2         16  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::CodePipeline::CustomActionType', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 4 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1065 [ 'ap-east-1','ap-northeast-1','ap-northeast-2','ap-northeast-3','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','cn-north-1','cn-northwest-1','eu-central-1','eu-north-1','eu-west-1','eu-west-2','eu-west-3','me-south-1','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::CodePipeline::CustomActionType::Settings',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::CodePipeline::CustomActionType::Settings',
27             from 'HashRef',
28             via {
29             if (my $f = Cfn::TypeLibrary::try_function($_)) {
30             return $f
31             } else {
32             return Cfn::Resource::Properties::AWS::CodePipeline::CustomActionType::SettingsValue->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::AWS::CodePipeline::CustomActionType::SettingsValue {
37 2     2   14405 use Moose;
  2         5  
  2         19  
38 2     2   13195 use MooseX::StrictConstructor;
  2         8  
  2         20  
39             extends 'Cfn::Value::TypedValue';
40            
41             has EntityUrlTemplate => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42             has ExecutionUrlTemplate => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43             has RevisionUrlTemplate => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
44             has ThirdPartyConfigurationUrl => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
45             }
46             subtype 'ArrayOfCfn::Resource::Properties::AWS::CodePipeline::CustomActionType::ConfigurationProperties',
47             as 'Cfn::Value',
48             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
49             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
50              
51             coerce 'ArrayOfCfn::Resource::Properties::AWS::CodePipeline::CustomActionType::ConfigurationProperties',
52             from 'HashRef',
53             via {
54             if (my $f = Cfn::TypeLibrary::try_function($_)) {
55             return $f
56             } else {
57             die 'Only accepts functions';
58             }
59             },
60             from 'ArrayRef',
61             via {
62             Cfn::Value::Array->new(Value => [
63             map {
64             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::CodePipeline::CustomActionType::ConfigurationProperties')->coerce($_)
65             } @$_
66             ]);
67             };
68              
69             subtype 'Cfn::Resource::Properties::AWS::CodePipeline::CustomActionType::ConfigurationProperties',
70             as 'Cfn::Value';
71              
72             coerce 'Cfn::Resource::Properties::AWS::CodePipeline::CustomActionType::ConfigurationProperties',
73             from 'HashRef',
74             via {
75             if (my $f = Cfn::TypeLibrary::try_function($_)) {
76             return $f
77             } else {
78             return Cfn::Resource::Properties::AWS::CodePipeline::CustomActionType::ConfigurationPropertiesValue->new( %$_ );
79             }
80             };
81              
82             package Cfn::Resource::Properties::AWS::CodePipeline::CustomActionType::ConfigurationPropertiesValue {
83 2     2   7717 use Moose;
  2         5  
  2         13  
84 2     2   13387 use MooseX::StrictConstructor;
  2         6  
  2         12  
85             extends 'Cfn::Value::TypedValue';
86            
87             has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
88             has Key => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
89             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
90             has Queryable => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
91             has Required => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
92             has Secret => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
93             has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
94             }
95              
96             subtype 'Cfn::Resource::Properties::AWS::CodePipeline::CustomActionType::ArtifactDetails',
97             as 'Cfn::Value';
98              
99             coerce 'Cfn::Resource::Properties::AWS::CodePipeline::CustomActionType::ArtifactDetails',
100             from 'HashRef',
101             via {
102             if (my $f = Cfn::TypeLibrary::try_function($_)) {
103             return $f
104             } else {
105             return Cfn::Resource::Properties::AWS::CodePipeline::CustomActionType::ArtifactDetailsValue->new( %$_ );
106             }
107             };
108              
109             package Cfn::Resource::Properties::AWS::CodePipeline::CustomActionType::ArtifactDetailsValue {
110 2     2   7331 use Moose;
  2         8  
  2         11  
111 2     2   13723 use MooseX::StrictConstructor;
  2         8  
  2         13  
112             extends 'Cfn::Value::TypedValue';
113            
114             has MaximumCount => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
115             has MinimumCount => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
116             }
117              
118             package Cfn::Resource::Properties::AWS::CodePipeline::CustomActionType {
119 2     2   6791 use Moose;
  2         6  
  2         12  
120 2     2   13187 use MooseX::StrictConstructor;
  2         6  
  2         25  
121             extends 'Cfn::Resource::Properties';
122            
123             has Category => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
124             has ConfigurationProperties => (isa => 'ArrayOfCfn::Resource::Properties::AWS::CodePipeline::CustomActionType::ConfigurationProperties', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
125             has InputArtifactDetails => (isa => 'Cfn::Resource::Properties::AWS::CodePipeline::CustomActionType::ArtifactDetails', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
126             has OutputArtifactDetails => (isa => 'Cfn::Resource::Properties::AWS::CodePipeline::CustomActionType::ArtifactDetails', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
127             has Provider => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
128             has Settings => (isa => 'Cfn::Resource::Properties::AWS::CodePipeline::CustomActionType::Settings', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
129             has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
130             has Version => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
131             }
132              
133             1;