| 1 | # AWS::LicenseManager::License generated from spec 34.0.0 | ||
| 2 | use Moose::Util::TypeConstraints; | ||
| 3 | |||
| 4 | coerce 'Cfn::Resource::Properties::AWS::LicenseManager::License', | ||
| 5 | from 'HashRef', | ||
| 6 | via { Cfn::Resource::Properties::AWS::LicenseManager::License->new( %$_ ) }; | ||
| 7 | |||
| 8 | package Cfn::Resource::AWS::LicenseManager::License { | ||
| 9 | use Moose; | ||
| 10 | extends 'Cfn::Resource'; | ||
| 11 | has Properties => (isa => 'Cfn::Resource::Properties::AWS::LicenseManager::License', is => 'rw', coerce => 1); | ||
| 12 | |||
| 13 | sub AttributeList { | ||
| 14 | [ 'LicenseArn','Version' ] | ||
| 15 | } | ||
| 16 | sub supported_regions { | ||
| 17 | [ 'ap-northeast-1','ap-southeast-2','eu-central-1','eu-west-1','sa-east-1','us-east-1','us-east-2','us-west-2' ] | ||
| 18 | } | ||
| 19 | } | ||
| 20 | |||
| 21 | |||
| 22 | |||
| 23 | subtype 'Cfn::Resource::Properties::AWS::LicenseManager::License::ProvisionalConfiguration', | ||
| 24 | as 'Cfn::Value'; | ||
| 25 | |||
| 26 | coerce 'Cfn::Resource::Properties::AWS::LicenseManager::License::ProvisionalConfiguration', | ||
| 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::LicenseManager::License::ProvisionalConfiguration->new( %$_ ); | ||
| 33 | } | ||
| 34 | }; | ||
| 35 | |||
| 36 | package Cfn::Resource::Properties::Object::AWS::LicenseManager::License::ProvisionalConfiguration { | ||
| 37 | use Moose; | ||
| 38 | use MooseX::StrictConstructor; | ||
| 39 | extends 'Cfn::Value::TypedValue'; | ||
| 40 | |||
| 41 | has MaxTimeToLiveInMinutes => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 42 | } | ||
| 43 | |||
| 44 | subtype 'Cfn::Resource::Properties::AWS::LicenseManager::License::BorrowConfiguration', | ||
| 45 | as 'Cfn::Value'; | ||
| 46 | |||
| 47 | coerce 'Cfn::Resource::Properties::AWS::LicenseManager::License::BorrowConfiguration', | ||
| 48 | from 'HashRef', | ||
| 49 | via { | ||
| 50 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 51 | return $f | ||
| 52 | } else { | ||
| 53 | return Cfn::Resource::Properties::Object::AWS::LicenseManager::License::BorrowConfiguration->new( %$_ ); | ||
| 54 | } | ||
| 55 | }; | ||
| 56 | |||
| 57 | package Cfn::Resource::Properties::Object::AWS::LicenseManager::License::BorrowConfiguration { | ||
| 58 | use Moose; | ||
| 59 | use MooseX::StrictConstructor; | ||
| 60 | extends 'Cfn::Value::TypedValue'; | ||
| 61 | |||
| 62 | has AllowEarlyCheckIn => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 63 | has MaxTimeToLiveInMinutes => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 64 | } | ||
| 65 | |||
| 66 | subtype 'Cfn::Resource::Properties::AWS::LicenseManager::License::ValidityDateFormat', | ||
| 67 | as 'Cfn::Value'; | ||
| 68 | |||
| 69 | coerce 'Cfn::Resource::Properties::AWS::LicenseManager::License::ValidityDateFormat', | ||
| 70 | from 'HashRef', | ||
| 71 | via { | ||
| 72 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 73 | return $f | ||
| 74 | } else { | ||
| 75 | return Cfn::Resource::Properties::Object::AWS::LicenseManager::License::ValidityDateFormat->new( %$_ ); | ||
| 76 | } | ||
| 77 | }; | ||
| 78 | |||
| 79 | package Cfn::Resource::Properties::Object::AWS::LicenseManager::License::ValidityDateFormat { | ||
| 80 | use Moose; | ||
| 81 | use MooseX::StrictConstructor; | ||
| 82 | extends 'Cfn::Value::TypedValue'; | ||
| 83 | |||
| 84 | has Begin => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 85 | has End => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 86 | } | ||
| 87 | subtype 'ArrayOfCfn::Resource::Properties::AWS::LicenseManager::License::Metadata', | ||
| 88 | as 'Cfn::Value', | ||
| 89 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 90 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 91 | |||
| 92 | coerce 'ArrayOfCfn::Resource::Properties::AWS::LicenseManager::License::Metadata', | ||
| 93 | from 'HashRef', | ||
| 94 | via { | ||
| 95 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 96 | return $f | ||
| 97 | } else { | ||
| 98 | die 'Only accepts functions'; | ||
| 99 | } | ||
| 100 | }, | ||
| 101 | from 'ArrayRef', | ||
| 102 | via { | ||
| 103 | Cfn::Value::Array->new(Value => [ | ||
| 104 | map { | ||
| 105 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::LicenseManager::License::Metadata')->coerce($_) | ||
| 106 | } @$_ | ||
| 107 | ]); | ||
| 108 | }; | ||
| 109 | |||
| 110 | subtype 'Cfn::Resource::Properties::AWS::LicenseManager::License::Metadata', | ||
| 111 | as 'Cfn::Value'; | ||
| 112 | |||
| 113 | coerce 'Cfn::Resource::Properties::AWS::LicenseManager::License::Metadata', | ||
| 114 | from 'HashRef', | ||
| 115 | via { | ||
| 116 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 117 | return $f | ||
| 118 | } else { | ||
| 119 | return Cfn::Resource::Properties::Object::AWS::LicenseManager::License::Metadata->new( %$_ ); | ||
| 120 | } | ||
| 121 | }; | ||
| 122 | |||
| 123 | package Cfn::Resource::Properties::Object::AWS::LicenseManager::License::Metadata { | ||
| 124 | use Moose; | ||
| 125 | use MooseX::StrictConstructor; | ||
| 126 | extends 'Cfn::Value::TypedValue'; | ||
| 127 | |||
| 128 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 129 | has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 130 | } | ||
| 131 | |||
| 132 | subtype 'Cfn::Resource::Properties::AWS::LicenseManager::License::IssuerData', | ||
| 133 | as 'Cfn::Value'; | ||
| 134 | |||
| 135 | coerce 'Cfn::Resource::Properties::AWS::LicenseManager::License::IssuerData', | ||
| 136 | from 'HashRef', | ||
| 137 | via { | ||
| 138 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 139 | return $f | ||
| 140 | } else { | ||
| 141 | return Cfn::Resource::Properties::Object::AWS::LicenseManager::License::IssuerData->new( %$_ ); | ||
| 142 | } | ||
| 143 | }; | ||
| 144 | |||
| 145 | package Cfn::Resource::Properties::Object::AWS::LicenseManager::License::IssuerData { | ||
| 146 | use Moose; | ||
| 147 | use MooseX::StrictConstructor; | ||
| 148 | extends 'Cfn::Value::TypedValue'; | ||
| 149 | |||
| 150 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 151 | has SignKey => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 152 | } | ||
| 153 | subtype 'ArrayOfCfn::Resource::Properties::AWS::LicenseManager::License::Entitlement', | ||
| 154 | as 'Cfn::Value', | ||
| 155 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 156 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 157 | |||
| 158 | coerce 'ArrayOfCfn::Resource::Properties::AWS::LicenseManager::License::Entitlement', | ||
| 159 | from 'HashRef', | ||
| 160 | via { | ||
| 161 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 162 | return $f | ||
| 163 | } else { | ||
| 164 | die 'Only accepts functions'; | ||
| 165 | } | ||
| 166 | }, | ||
| 167 | from 'ArrayRef', | ||
| 168 | via { | ||
| 169 | Cfn::Value::Array->new(Value => [ | ||
| 170 | map { | ||
| 171 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::LicenseManager::License::Entitlement')->coerce($_) | ||
| 172 | } @$_ | ||
| 173 | ]); | ||
| 174 | }; | ||
| 175 | |||
| 176 | subtype 'Cfn::Resource::Properties::AWS::LicenseManager::License::Entitlement', | ||
| 177 | as 'Cfn::Value'; | ||
| 178 | |||
| 179 | coerce 'Cfn::Resource::Properties::AWS::LicenseManager::License::Entitlement', | ||
| 180 | from 'HashRef', | ||
| 181 | via { | ||
| 182 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 183 | return $f | ||
| 184 | } else { | ||
| 185 | return Cfn::Resource::Properties::Object::AWS::LicenseManager::License::Entitlement->new( %$_ ); | ||
| 186 | } | ||
| 187 | }; | ||
| 188 | |||
| 189 | package Cfn::Resource::Properties::Object::AWS::LicenseManager::License::Entitlement { | ||
| 190 | use Moose; | ||
| 191 | use MooseX::StrictConstructor; | ||
| 192 | extends 'Cfn::Value::TypedValue'; | ||
| 193 | |||
| 194 | has AllowCheckIn => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 195 | has MaxCount => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 196 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 197 | has Overage => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 198 | has Unit => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 199 | has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 200 | } | ||
| 201 | |||
| 202 | subtype 'Cfn::Resource::Properties::AWS::LicenseManager::License::ConsumptionConfiguration', | ||
| 203 | as 'Cfn::Value'; | ||
| 204 | |||
| 205 | coerce 'Cfn::Resource::Properties::AWS::LicenseManager::License::ConsumptionConfiguration', | ||
| 206 | from 'HashRef', | ||
| 207 | via { | ||
| 208 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 209 | return $f | ||
| 210 | } else { | ||
| 211 | return Cfn::Resource::Properties::Object::AWS::LicenseManager::License::ConsumptionConfiguration->new( %$_ ); | ||
| 212 | } | ||
| 213 | }; | ||
| 214 | |||
| 215 | package Cfn::Resource::Properties::Object::AWS::LicenseManager::License::ConsumptionConfiguration { | ||
| 216 | use Moose; | ||
| 217 | use MooseX::StrictConstructor; | ||
| 218 | extends 'Cfn::Value::TypedValue'; | ||
| 219 | |||
| 220 | has BorrowConfiguration => (isa => 'Cfn::Resource::Properties::AWS::LicenseManager::License::BorrowConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 221 | has ProvisionalConfiguration => (isa => 'Cfn::Resource::Properties::AWS::LicenseManager::License::ProvisionalConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 222 | has RenewType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 223 | } | ||
| 224 | |||
| 225 | package Cfn::Resource::Properties::AWS::LicenseManager::License { | ||
| 226 | use Moose; | ||
| 227 | use MooseX::StrictConstructor; | ||
| 228 | extends 'Cfn::Resource::Properties'; | ||
| 229 | |||
| 230 | has Beneficiary => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 231 | has ConsumptionConfiguration => (isa => 'Cfn::Resource::Properties::AWS::LicenseManager::License::ConsumptionConfiguration', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 232 | has Entitlements => (isa => 'ArrayOfCfn::Resource::Properties::AWS::LicenseManager::License::Entitlement', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 233 | has HomeRegion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 234 | has Issuer => (isa => 'Cfn::Resource::Properties::AWS::LicenseManager::License::IssuerData', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 235 | has LicenseMetadata => (isa => 'ArrayOfCfn::Resource::Properties::AWS::LicenseManager::License::Metadata', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 236 | has LicenseName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 237 | has ProductName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 238 | has ProductSKU => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 239 | has Status => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 240 | has Validity => (isa => 'Cfn::Resource::Properties::AWS::LicenseManager::License::ValidityDateFormat', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 241 | } | ||
| 242 | |||
| 243 | 1; | ||
| 244 | ### main pod documentation begin ### | ||
| 245 | |||
| 246 | =encoding UTF-8 | ||
| 247 | |||
| 248 | =head1 NAME | ||
| 249 | |||
| 250 | Cfn::Resource::AWS::LicenseManager::License - Cfn resource for AWS::LicenseManager::License | ||
| 251 | |||
| 252 | =head1 DESCRIPTION | ||
| 253 | |||
| 254 | This module implements a Perl module that represents the CloudFormation object AWS::LicenseManager::License. | ||
| 255 | |||
| 256 | See L<Cfn> for more information on how to use it. | ||
| 257 | |||
| 258 | =head1 AUTHOR | ||
| 259 | |||
| 260 | Jose Luis Martinez | ||
| 261 | CAPSiDE | ||
| 262 | jlmartinez@capside.com | ||
| 263 | |||
| 264 | =head1 COPYRIGHT and LICENSE | ||
| 265 | |||
| 266 | Copyright (c) 2013 by CAPSiDE | ||
| 267 | This code is distributed under the Apache 2 License. The full text of the | ||
| 268 | license can be found in the LICENSE file included with this module. | ||
| 269 | |||
| 270 | =cut |