File Coverage

blib/lib/Cfn/Resource/AWS/ServiceCatalog/CloudFormationProvisionedProduct.pm
Criterion Covered Total %
statement 26 26 100.0
branch n/a
condition n/a
subroutine 10 10 100.0
pod 0 2 0.0
total 36 38 94.7


line stmt bran cond sub pod time code
1             # AWS::ServiceCatalog::CloudFormationProvisionedProduct generated from spec 18.4.0
2 1     1   709 use Moose::Util::TypeConstraints;
  1         2  
  1         22  
3              
4             coerce 'Cfn::Resource::Properties::AWS::ServiceCatalog::CloudFormationProvisionedProduct',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::ServiceCatalog::CloudFormationProvisionedProduct->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::ServiceCatalog::CloudFormationProvisionedProduct {
9 1     1   2332 use Moose;
  1         7  
  1         10  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::ServiceCatalog::CloudFormationProvisionedProduct', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 6 [ 'CloudformationStackArn','Outputs','ProvisionedProductId','RecordId' ]
15             }
16             sub supported_regions {
17 1     1 0 1146 [ 'af-south-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-south-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::ServiceCatalog::CloudFormationProvisionedProduct::ProvisioningPreferences',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::ServiceCatalog::CloudFormationProvisionedProduct::ProvisioningPreferences',
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::ServiceCatalog::CloudFormationProvisionedProduct::ProvisioningPreferences->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::Object::AWS::ServiceCatalog::CloudFormationProvisionedProduct::ProvisioningPreferences {
37 1     1   7456 use Moose;
  1         3  
  1         15  
38 1     1   6597 use MooseX::StrictConstructor;
  1         4  
  1         10  
39             extends 'Cfn::Value::TypedValue';
40            
41             has StackSetAccounts => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42             has StackSetFailureToleranceCount => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43             has StackSetFailureTolerancePercentage => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
44             has StackSetMaxConcurrencyCount => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
45             has StackSetMaxConcurrencyPercentage => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
46             has StackSetOperationType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
47             has StackSetRegions => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
48             }
49             subtype 'ArrayOfCfn::Resource::Properties::AWS::ServiceCatalog::CloudFormationProvisionedProduct::ProvisioningParameter',
50             as 'Cfn::Value',
51             where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
52             message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
53              
54             coerce 'ArrayOfCfn::Resource::Properties::AWS::ServiceCatalog::CloudFormationProvisionedProduct::ProvisioningParameter',
55             from 'HashRef',
56             via {
57             if (my $f = Cfn::TypeLibrary::try_function($_)) {
58             return $f
59             } else {
60             die 'Only accepts functions';
61             }
62             },
63             from 'ArrayRef',
64             via {
65             Cfn::Value::Array->new(Value => [
66             map {
67             Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ServiceCatalog::CloudFormationProvisionedProduct::ProvisioningParameter')->coerce($_)
68             } @$_
69             ]);
70             };
71              
72             subtype 'Cfn::Resource::Properties::AWS::ServiceCatalog::CloudFormationProvisionedProduct::ProvisioningParameter',
73             as 'Cfn::Value';
74              
75             coerce 'Cfn::Resource::Properties::AWS::ServiceCatalog::CloudFormationProvisionedProduct::ProvisioningParameter',
76             from 'HashRef',
77             via {
78             if (my $f = Cfn::TypeLibrary::try_function($_)) {
79             return $f
80             } else {
81             return Cfn::Resource::Properties::Object::AWS::ServiceCatalog::CloudFormationProvisionedProduct::ProvisioningParameter->new( %$_ );
82             }
83             };
84              
85             package Cfn::Resource::Properties::Object::AWS::ServiceCatalog::CloudFormationProvisionedProduct::ProvisioningParameter {
86 1     1   4048 use Moose;
  1         3  
  1         6  
87 1     1   6702 use MooseX::StrictConstructor;
  1         11  
  1         5  
88             extends 'Cfn::Value::TypedValue';
89            
90             has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
91             has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
92             }
93              
94             package Cfn::Resource::Properties::AWS::ServiceCatalog::CloudFormationProvisionedProduct {
95 1     1   3354 use Moose;
  1         8  
  1         6  
96 1     1   6641 use MooseX::StrictConstructor;
  1         2  
  1         5  
97             extends 'Cfn::Resource::Properties';
98            
99             has AcceptLanguage => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
100             has NotificationArns => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
101             has PathId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
102             has PathName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
103             has ProductId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
104             has ProductName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
105             has ProvisionedProductName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
106             has ProvisioningArtifactId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
107             has ProvisioningArtifactName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
108             has ProvisioningParameters => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ServiceCatalog::CloudFormationProvisionedProduct::ProvisioningParameter', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
109             has ProvisioningPreferences => (isa => 'Cfn::Resource::Properties::AWS::ServiceCatalog::CloudFormationProvisionedProduct::ProvisioningPreferences', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
110             has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
111             }
112              
113             1;
114             ### main pod documentation begin ###
115              
116             =encoding UTF-8
117              
118             =head1 NAME
119              
120             Cfn::Resource::AWS::ServiceCatalog::CloudFormationProvisionedProduct - Cfn resource for AWS::ServiceCatalog::CloudFormationProvisionedProduct
121              
122             =head1 DESCRIPTION
123              
124             This module implements a Perl module that represents the CloudFormation object AWS::ServiceCatalog::CloudFormationProvisionedProduct.
125              
126             See L<Cfn> for more information on how to use it.
127              
128             =head1 AUTHOR
129              
130             Jose Luis Martinez
131             CAPSiDE
132             jlmartinez@capside.com
133              
134             =head1 COPYRIGHT and LICENSE
135              
136             Copyright (c) 2013 by CAPSiDE
137             This code is distributed under the Apache 2 License. The full text of the
138             license can be found in the LICENSE file included with this module.
139              
140             =cut