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 18.4.0
2 2     2   1477 use Moose::Util::TypeConstraints;
  2         8  
  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   4537 use Moose;
  2         7  
  2         19  
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 3 [ ]
15             }
16             sub supported_regions {
17 1     1 0 1091 [ 'af-south-1','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-south-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::Object::AWS::CodePipeline::CustomActionType::Settings->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::Object::AWS::CodePipeline::CustomActionType::Settings {
37 2     2   15351 use Moose;
  2         6  
  2         12  
38 2     2   13345 use MooseX::StrictConstructor;
  2         6  
  2         25  
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::Object::AWS::CodePipeline::CustomActionType::ConfigurationProperties->new( %$_ );
79             }
80             };
81              
82             package Cfn::Resource::Properties::Object::AWS::CodePipeline::CustomActionType::ConfigurationProperties {
83 2     2   7921 use Moose;
  2         13  
  2         14  
84 2     2   13203 use MooseX::StrictConstructor;
  2         6  
  2         15  
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::Object::AWS::CodePipeline::CustomActionType::ArtifactDetails->new( %$_ );
106             }
107             };
108              
109             package Cfn::Resource::Properties::Object::AWS::CodePipeline::CustomActionType::ArtifactDetails {
110 2     2   6825 use Moose;
  2         7  
  2         23  
111 2     2   13121 use MooseX::StrictConstructor;
  2         9  
  2         9  
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   6673 use Moose;
  2         6  
  2         13  
120 2     2   13040 use MooseX::StrictConstructor;
  2         12  
  2         11  
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;
134             ### main pod documentation begin ###
135              
136             =encoding UTF-8
137              
138             =head1 NAME
139              
140             Cfn::Resource::AWS::CodePipeline::CustomActionType - Cfn resource for AWS::CodePipeline::CustomActionType
141              
142             =head1 DESCRIPTION
143              
144             This module implements a Perl module that represents the CloudFormation object AWS::CodePipeline::CustomActionType.
145              
146             See L<Cfn> for more information on how to use it.
147              
148             =head1 AUTHOR
149              
150             Jose Luis Martinez
151             CAPSiDE
152             jlmartinez@capside.com
153              
154             =head1 COPYRIGHT and LICENSE
155              
156             Copyright (c) 2013 by CAPSiDE
157             This code is distributed under the Apache 2 License. The full text of the
158             license can be found in the LICENSE file included with this module.
159              
160             =cut