File Coverage

blib/lib/Cfn/Resource/AWS/ACMPCA/CertificateAuthority.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::ACMPCA::CertificateAuthority generated from spec 20.1.0
2 1     1   740 use Moose::Util::TypeConstraints;
  1         4  
  1         11  
3              
4             coerce 'Cfn::Resource::Properties::AWS::ACMPCA::CertificateAuthority',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::ACMPCA::CertificateAuthority->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::ACMPCA::CertificateAuthority {
9 1     1   2234 use Moose;
  1         3  
  1         7  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::ACMPCA::CertificateAuthority', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 6 [ 'Arn','CertificateSigningRequest' ]
15             }
16             sub supported_regions {
17 1     1 0 1151 [ 'af-south-1','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-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::ACMPCA::CertificateAuthority::CrlConfiguration',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::ACMPCA::CertificateAuthority::CrlConfiguration',
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::ACMPCA::CertificateAuthority::CrlConfiguration->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::Object::AWS::ACMPCA::CertificateAuthority::CrlConfiguration {
37 1     1   7311 use Moose;
  1         3  
  1         4  
38 1     1   7006 use MooseX::StrictConstructor;
  1         3  
  1         9  
39             extends 'Cfn::Value::TypedValue';
40            
41             has CustomCname => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42             has Enabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43             has ExpirationInDays => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
44             has S3BucketName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
45             }
46              
47             subtype 'Cfn::Resource::Properties::AWS::ACMPCA::CertificateAuthority::Subject',
48             as 'Cfn::Value';
49              
50             coerce 'Cfn::Resource::Properties::AWS::ACMPCA::CertificateAuthority::Subject',
51             from 'HashRef',
52             via {
53             if (my $f = Cfn::TypeLibrary::try_function($_)) {
54             return $f
55             } else {
56             return Cfn::Resource::Properties::Object::AWS::ACMPCA::CertificateAuthority::Subject->new( %$_ );
57             }
58             };
59              
60             package Cfn::Resource::Properties::Object::AWS::ACMPCA::CertificateAuthority::Subject {
61 1     1   3890 use Moose;
  1         3  
  1         6  
62 1     1   6775 use MooseX::StrictConstructor;
  1         4  
  1         5  
63             extends 'Cfn::Value::TypedValue';
64            
65             has CommonName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
66             has Country => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
67             has DistinguishedNameQualifier => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
68             has GenerationQualifier => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
69             has GivenName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
70             has Initials => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
71             has Locality => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
72             has Organization => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
73             has OrganizationalUnit => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
74             has Pseudonym => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
75             has SerialNumber => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
76             has State => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
77             has Surname => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
78             has Title => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
79             }
80              
81             subtype 'Cfn::Resource::Properties::AWS::ACMPCA::CertificateAuthority::RevocationConfiguration',
82             as 'Cfn::Value';
83              
84             coerce 'Cfn::Resource::Properties::AWS::ACMPCA::CertificateAuthority::RevocationConfiguration',
85             from 'HashRef',
86             via {
87             if (my $f = Cfn::TypeLibrary::try_function($_)) {
88             return $f
89             } else {
90             return Cfn::Resource::Properties::Object::AWS::ACMPCA::CertificateAuthority::RevocationConfiguration->new( %$_ );
91             }
92             };
93              
94             package Cfn::Resource::Properties::Object::AWS::ACMPCA::CertificateAuthority::RevocationConfiguration {
95 1     1   3645 use Moose;
  1         2  
  1         5  
96 1     1   6707 use MooseX::StrictConstructor;
  1         3  
  1         5  
97             extends 'Cfn::Value::TypedValue';
98            
99             has CrlConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ACMPCA::CertificateAuthority::CrlConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
100             }
101              
102             package Cfn::Resource::Properties::AWS::ACMPCA::CertificateAuthority {
103 1     1   3479 use Moose;
  1         3  
  1         4  
104 1     1   6652 use MooseX::StrictConstructor;
  1         2  
  1         6  
105             extends 'Cfn::Resource::Properties';
106            
107             has KeyAlgorithm => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
108             has RevocationConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ACMPCA::CertificateAuthority::RevocationConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
109             has SigningAlgorithm => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
110             has Subject => (isa => 'Cfn::Resource::Properties::AWS::ACMPCA::CertificateAuthority::Subject', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
111             has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
112             has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
113             }
114              
115             1;
116             ### main pod documentation begin ###
117              
118             =encoding UTF-8
119              
120             =head1 NAME
121              
122             Cfn::Resource::AWS::ACMPCA::CertificateAuthority - Cfn resource for AWS::ACMPCA::CertificateAuthority
123              
124             =head1 DESCRIPTION
125              
126             This module implements a Perl module that represents the CloudFormation object AWS::ACMPCA::CertificateAuthority.
127              
128             See L<Cfn> for more information on how to use it.
129              
130             =head1 AUTHOR
131              
132             Jose Luis Martinez
133             CAPSiDE
134             jlmartinez@capside.com
135              
136             =head1 COPYRIGHT and LICENSE
137              
138             Copyright (c) 2013 by CAPSiDE
139             This code is distributed under the Apache 2 License. The full text of the
140             license can be found in the LICENSE file included with this module.
141              
142             =cut