« Cfn/Resource/AWS/EKS/Cluster.pm
↑ Summary
Cfn/Resource/AWS/SES/ConfigurationSetEventDestination.pm »
| 1 | # AWS::Glue::Database generated from spec 21.0.0 | ||||||||||
| 2 | 1 | ▶ | use Moose::Util::TypeConstraints; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | coerce 'Cfn::Resource::Properties::AWS::Glue::Database', | ||||||||||
| 5 | from 'HashRef', | ||||||||||
| 6 | 0 | ▶ | via { Cfn::Resource::Properties::AWS::Glue::Database->new( %$_ ) }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 7 | |||||||||||
| 8 | 1 | package Cfn::Resource::AWS::Glue::Database { | |||||||||
| 9 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 1 | extends 'Cfn::Resource'; | |||||||||
| 11 | 1 | has Properties => (isa => 'Cfn::Resource::Properties::AWS::Glue::Database', is => 'rw', coerce => 1); | |||||||||
| 12 | |||||||||||
| 13 | sub AttributeList { | ||||||||||
| 14 | 1 | ▶ | [ ] | ||||||||
|
Subroutine
AttributeList: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 15 | } | ||||||||||
| 16 | sub supported_regions { | ||||||||||
| 17 | 1 | ▶ | [ 'ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','cn-northwest-1','eu-central-1','eu-north-1','eu-west-1','eu-west-2','eu-west-3','us-east-1','us-east-2','us-west-1','us-west-2' ] | ||||||||
|
Subroutine
supported_regions: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 18 | } | ||||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | |||||||||||
| 22 | |||||||||||
| 23 | 1 | subtype 'Cfn::Resource::Properties::AWS::Glue::Database::DataLakePrincipal', | |||||||||
| 24 | as 'Cfn::Value'; | ||||||||||
| 25 | |||||||||||
| 26 | coerce 'Cfn::Resource::Properties::AWS::Glue::Database::DataLakePrincipal', | ||||||||||
| 27 | from 'HashRef', | ||||||||||
| 28 | via { | ||||||||||
| 29 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 30 | 0 | return $f | |||||||||
| 31 | } else { | ||||||||||
| 32 | 0 | return Cfn::Resource::Properties::Object::AWS::Glue::Database::DataLakePrincipal->new( %$_ ); | |||||||||
| 33 | } | ||||||||||
| 34 | 1 | }; | |||||||||
| 35 | |||||||||||
| 36 | 1 | package Cfn::Resource::Properties::Object::AWS::Glue::Database::DataLakePrincipal { | |||||||||
| 37 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 38 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 39 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 40 | |||||||||||
| 41 | 1 | has DataLakePrincipalIdentifier => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 42 | } | ||||||||||
| 43 | subtype 'ArrayOfCfn::Resource::Properties::AWS::Glue::Database::PrincipalPrivileges', | ||||||||||
| 44 | as 'Cfn::Value', | ||||||||||
| 45 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 46 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 47 | |||||||||||
| 48 | coerce 'ArrayOfCfn::Resource::Properties::AWS::Glue::Database::PrincipalPrivileges', | ||||||||||
| 49 | from 'HashRef', | ||||||||||
| 50 | via { | ||||||||||
| 51 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 52 | 0 | return $f | |||||||||
| 53 | } else { | ||||||||||
| 54 | 0 | die 'Only accepts functions'; | |||||||||
| 55 | } | ||||||||||
| 56 | }, | ||||||||||
| 57 | from 'ArrayRef', | ||||||||||
| 58 | via { | ||||||||||
| 59 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 60 | map { | ||||||||||
| 61 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Glue::Database::PrincipalPrivileges')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 62 | } @$_ | ||||||||||
| 63 | ]); | ||||||||||
| 64 | 1 | }; | |||||||||
| 65 | |||||||||||
| 66 | 1 | subtype 'Cfn::Resource::Properties::AWS::Glue::Database::PrincipalPrivileges', | |||||||||
| 67 | as 'Cfn::Value'; | ||||||||||
| 68 | |||||||||||
| 69 | coerce 'Cfn::Resource::Properties::AWS::Glue::Database::PrincipalPrivileges', | ||||||||||
| 70 | from 'HashRef', | ||||||||||
| 71 | via { | ||||||||||
| 72 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 73 | 0 | return $f | |||||||||
| 74 | } else { | ||||||||||
| 75 | 0 | return Cfn::Resource::Properties::Object::AWS::Glue::Database::PrincipalPrivileges->new( %$_ ); | |||||||||
| 76 | } | ||||||||||
| 77 | 1 | }; | |||||||||
| 78 | |||||||||||
| 79 | 1 | package Cfn::Resource::Properties::Object::AWS::Glue::Database::PrincipalPrivileges { | |||||||||
| 80 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 81 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 82 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 83 | |||||||||||
| 84 | 1 | has Permissions => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 85 | 1 | has Principal => (isa => 'Cfn::Resource::Properties::AWS::Glue::Database::DataLakePrincipal', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 86 | } | ||||||||||
| 87 | |||||||||||
| 88 | 1 | subtype 'Cfn::Resource::Properties::AWS::Glue::Database::DatabaseIdentifier', | |||||||||
| 89 | as 'Cfn::Value'; | ||||||||||
| 90 | |||||||||||
| 91 | coerce 'Cfn::Resource::Properties::AWS::Glue::Database::DatabaseIdentifier', | ||||||||||
| 92 | from 'HashRef', | ||||||||||
| 93 | via { | ||||||||||
| 94 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 95 | 0 | return $f | |||||||||
| 96 | } else { | ||||||||||
| 97 | 0 | return Cfn::Resource::Properties::Object::AWS::Glue::Database::DatabaseIdentifier->new( %$_ ); | |||||||||
| 98 | } | ||||||||||
| 99 | 1 | }; | |||||||||
| 100 | |||||||||||
| 101 | 1 | package Cfn::Resource::Properties::Object::AWS::Glue::Database::DatabaseIdentifier { | |||||||||
| 102 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 103 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 104 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 105 | |||||||||||
| 106 | 1 | has CatalogId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 107 | 1 | has DatabaseName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 108 | } | ||||||||||
| 109 | |||||||||||
| 110 | 1 | subtype 'Cfn::Resource::Properties::AWS::Glue::Database::DatabaseInput', | |||||||||
| 111 | as 'Cfn::Value'; | ||||||||||
| 112 | |||||||||||
| 113 | coerce 'Cfn::Resource::Properties::AWS::Glue::Database::DatabaseInput', | ||||||||||
| 114 | from 'HashRef', | ||||||||||
| 115 | via { | ||||||||||
| 116 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 117 | 0 | return $f | |||||||||
| 118 | } else { | ||||||||||
| 119 | 0 | return Cfn::Resource::Properties::Object::AWS::Glue::Database::DatabaseInput->new( %$_ ); | |||||||||
| 120 | } | ||||||||||
| 121 | 1 | }; | |||||||||
| 122 | |||||||||||
| 123 | 1 | package Cfn::Resource::Properties::Object::AWS::Glue::Database::DatabaseInput { | |||||||||
| 124 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 125 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 126 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 127 | |||||||||||
| 128 | 1 | has CreateTableDefaultPermissions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Glue::Database::PrincipalPrivileges', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 129 | 1 | has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 130 | 1 | has LocationUri => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 131 | 1 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 132 | 1 | has Parameters => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 133 | 1 | has TargetDatabase => (isa => 'Cfn::Resource::Properties::AWS::Glue::Database::DatabaseIdentifier', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 134 | } | ||||||||||
| 135 | |||||||||||
| 136 | 1 | package Cfn::Resource::Properties::AWS::Glue::Database { | |||||||||
| 137 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 138 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 139 | 1 | extends 'Cfn::Resource::Properties'; | |||||||||
| 140 | |||||||||||
| 141 | 1 | has CatalogId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 142 | 1 | has DatabaseInput => (isa => 'Cfn::Resource::Properties::AWS::Glue::Database::DatabaseInput', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 143 | } | ||||||||||
| 144 | |||||||||||
| 145 | 1 | 1; | |||||||||
| 146 | ### main pod documentation begin ### | ||||||||||
| 147 | |||||||||||
| 148 | =encoding UTF-8 | ||||||||||
| 149 | |||||||||||
| 150 | =head1 NAME | ||||||||||
| 151 | |||||||||||
| 152 | Cfn::Resource::AWS::Glue::Database - Cfn resource for AWS::Glue::Database | ||||||||||
| 153 | |||||||||||
| 154 | =head1 DESCRIPTION | ||||||||||
| 155 | |||||||||||
| 156 | This module implements a Perl module that represents the CloudFormation object AWS::Glue::Database. | ||||||||||
| 157 | |||||||||||
| 158 | See L<Cfn> for more information on how to use it. | ||||||||||
| 159 | |||||||||||
| 160 | =head1 AUTHOR | ||||||||||
| 161 | |||||||||||
| 162 | Jose Luis Martinez | ||||||||||
| 163 | CAPSiDE | ||||||||||
| 164 | jlmartinez@capside.com | ||||||||||
| 165 | |||||||||||
| 166 | =head1 COPYRIGHT and LICENSE | ||||||||||
| 167 | |||||||||||
| 168 | Copyright (c) 2013 by CAPSiDE | ||||||||||
| 169 | This code is distributed under the Apache 2 License. The full text of the | ||||||||||
| 170 | license can be found in the LICENSE file included with this module. | ||||||||||
| 171 | |||||||||||
| 172 | =cut | ||||||||||