« Cfn/Resource/AWS/ACMPCA/CertificateAuthorityActivation.pm
↑ Summary
Cfn/Resource/AWS/AmazonMQ/Configuration.pm »
| 1 | # AWS::AmazonMQ::Broker generated from spec 34.0.0 | ||
| 2 | use Moose::Util::TypeConstraints; | ||
| 3 | |||
| 4 | coerce 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker', | ||
| 5 | from 'HashRef', | ||
| 6 | via { Cfn::Resource::Properties::AWS::AmazonMQ::Broker->new( %$_ ) }; | ||
| 7 | |||
| 8 | package Cfn::Resource::AWS::AmazonMQ::Broker { | ||
| 9 | use Moose; | ||
| 10 | extends 'Cfn::Resource'; | ||
| 11 | has Properties => (isa => 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker', is => 'rw', coerce => 1); | ||
| 12 | |||
| 13 | sub AttributeList { | ||
| 14 | [ 'AmqpEndpoints','Arn','ConfigurationId','ConfigurationRevision','IpAddresses','MqttEndpoints','OpenWireEndpoints','StompEndpoints','WssEndpoints' ] | ||
| 15 | } | ||
| 16 | sub supported_regions { | ||
| 17 | [ 'ap-northeast-1','ap-northeast-2','ap-northeast-3','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','eu-central-1','eu-south-1','eu-west-1','eu-west-3','us-east-1','us-east-2','us-west-1','us-west-2' ] | ||
| 18 | } | ||
| 19 | } | ||
| 20 | |||
| 21 | |||
| 22 | subtype 'ArrayOfCfn::Resource::Properties::AWS::AmazonMQ::Broker::User', | ||
| 23 | as 'Cfn::Value', | ||
| 24 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 25 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 26 | |||
| 27 | coerce 'ArrayOfCfn::Resource::Properties::AWS::AmazonMQ::Broker::User', | ||
| 28 | from 'HashRef', | ||
| 29 | via { | ||
| 30 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 31 | return $f | ||
| 32 | } else { | ||
| 33 | die 'Only accepts functions'; | ||
| 34 | } | ||
| 35 | }, | ||
| 36 | from 'ArrayRef', | ||
| 37 | via { | ||
| 38 | Cfn::Value::Array->new(Value => [ | ||
| 39 | map { | ||
| 40 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::AmazonMQ::Broker::User')->coerce($_) | ||
| 41 | } @$_ | ||
| 42 | ]); | ||
| 43 | }; | ||
| 44 | |||
| 45 | subtype 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::User', | ||
| 46 | as 'Cfn::Value'; | ||
| 47 | |||
| 48 | coerce 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::User', | ||
| 49 | from 'HashRef', | ||
| 50 | via { | ||
| 51 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 52 | return $f | ||
| 53 | } else { | ||
| 54 | return Cfn::Resource::Properties::Object::AWS::AmazonMQ::Broker::User->new( %$_ ); | ||
| 55 | } | ||
| 56 | }; | ||
| 57 | |||
| 58 | package Cfn::Resource::Properties::Object::AWS::AmazonMQ::Broker::User { | ||
| 59 | use Moose; | ||
| 60 | use MooseX::StrictConstructor; | ||
| 61 | extends 'Cfn::Value::TypedValue'; | ||
| 62 | |||
| 63 | has ConsoleAccess => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 64 | has Groups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 65 | has Password => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 66 | has Username => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 67 | } | ||
| 68 | subtype 'ArrayOfCfn::Resource::Properties::AWS::AmazonMQ::Broker::TagsEntry', | ||
| 69 | as 'Cfn::Value', | ||
| 70 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 71 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 72 | |||
| 73 | coerce 'ArrayOfCfn::Resource::Properties::AWS::AmazonMQ::Broker::TagsEntry', | ||
| 74 | from 'HashRef', | ||
| 75 | via { | ||
| 76 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 77 | return $f | ||
| 78 | } else { | ||
| 79 | die 'Only accepts functions'; | ||
| 80 | } | ||
| 81 | }, | ||
| 82 | from 'ArrayRef', | ||
| 83 | via { | ||
| 84 | Cfn::Value::Array->new(Value => [ | ||
| 85 | map { | ||
| 86 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::AmazonMQ::Broker::TagsEntry')->coerce($_) | ||
| 87 | } @$_ | ||
| 88 | ]); | ||
| 89 | }; | ||
| 90 | |||
| 91 | subtype 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::TagsEntry', | ||
| 92 | as 'Cfn::Value'; | ||
| 93 | |||
| 94 | coerce 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::TagsEntry', | ||
| 95 | from 'HashRef', | ||
| 96 | via { | ||
| 97 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 98 | return $f | ||
| 99 | } else { | ||
| 100 | return Cfn::Resource::Properties::Object::AWS::AmazonMQ::Broker::TagsEntry->new( %$_ ); | ||
| 101 | } | ||
| 102 | }; | ||
| 103 | |||
| 104 | package Cfn::Resource::Properties::Object::AWS::AmazonMQ::Broker::TagsEntry { | ||
| 105 | use Moose; | ||
| 106 | use MooseX::StrictConstructor; | ||
| 107 | extends 'Cfn::Value::TypedValue'; | ||
| 108 | |||
| 109 | has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 110 | has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 111 | } | ||
| 112 | |||
| 113 | subtype 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::MaintenanceWindow', | ||
| 114 | as 'Cfn::Value'; | ||
| 115 | |||
| 116 | coerce 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::MaintenanceWindow', | ||
| 117 | from 'HashRef', | ||
| 118 | via { | ||
| 119 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 120 | return $f | ||
| 121 | } else { | ||
| 122 | return Cfn::Resource::Properties::Object::AWS::AmazonMQ::Broker::MaintenanceWindow->new( %$_ ); | ||
| 123 | } | ||
| 124 | }; | ||
| 125 | |||
| 126 | package Cfn::Resource::Properties::Object::AWS::AmazonMQ::Broker::MaintenanceWindow { | ||
| 127 | use Moose; | ||
| 128 | use MooseX::StrictConstructor; | ||
| 129 | extends 'Cfn::Value::TypedValue'; | ||
| 130 | |||
| 131 | has DayOfWeek => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 132 | has TimeOfDay => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 133 | has TimeZone => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 134 | } | ||
| 135 | |||
| 136 | subtype 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::LogList', | ||
| 137 | as 'Cfn::Value'; | ||
| 138 | |||
| 139 | coerce 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::LogList', | ||
| 140 | from 'HashRef', | ||
| 141 | via { | ||
| 142 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 143 | return $f | ||
| 144 | } else { | ||
| 145 | return Cfn::Resource::Properties::Object::AWS::AmazonMQ::Broker::LogList->new( %$_ ); | ||
| 146 | } | ||
| 147 | }; | ||
| 148 | |||
| 149 | package Cfn::Resource::Properties::Object::AWS::AmazonMQ::Broker::LogList { | ||
| 150 | use Moose; | ||
| 151 | use MooseX::StrictConstructor; | ||
| 152 | extends 'Cfn::Value::TypedValue'; | ||
| 153 | |||
| 154 | has Audit => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 155 | has General => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 156 | } | ||
| 157 | |||
| 158 | subtype 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::LdapServerMetadata', | ||
| 159 | as 'Cfn::Value'; | ||
| 160 | |||
| 161 | coerce 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::LdapServerMetadata', | ||
| 162 | from 'HashRef', | ||
| 163 | via { | ||
| 164 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 165 | return $f | ||
| 166 | } else { | ||
| 167 | return Cfn::Resource::Properties::Object::AWS::AmazonMQ::Broker::LdapServerMetadata->new( %$_ ); | ||
| 168 | } | ||
| 169 | }; | ||
| 170 | |||
| 171 | package Cfn::Resource::Properties::Object::AWS::AmazonMQ::Broker::LdapServerMetadata { | ||
| 172 | use Moose; | ||
| 173 | use MooseX::StrictConstructor; | ||
| 174 | extends 'Cfn::Value::TypedValue'; | ||
| 175 | |||
| 176 | has Hosts => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 177 | has RoleBase => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 178 | has RoleName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 179 | has RoleSearchMatching => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 180 | has RoleSearchSubtree => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 181 | has ServiceAccountPassword => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 182 | has ServiceAccountUsername => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 183 | has UserBase => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 184 | has UserRoleName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 185 | has UserSearchMatching => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 186 | has UserSearchSubtree => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 187 | } | ||
| 188 | |||
| 189 | subtype 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::EncryptionOptions', | ||
| 190 | as 'Cfn::Value'; | ||
| 191 | |||
| 192 | coerce 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::EncryptionOptions', | ||
| 193 | from 'HashRef', | ||
| 194 | via { | ||
| 195 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 196 | return $f | ||
| 197 | } else { | ||
| 198 | return Cfn::Resource::Properties::Object::AWS::AmazonMQ::Broker::EncryptionOptions->new( %$_ ); | ||
| 199 | } | ||
| 200 | }; | ||
| 201 | |||
| 202 | package Cfn::Resource::Properties::Object::AWS::AmazonMQ::Broker::EncryptionOptions { | ||
| 203 | use Moose; | ||
| 204 | use MooseX::StrictConstructor; | ||
| 205 | extends 'Cfn::Value::TypedValue'; | ||
| 206 | |||
| 207 | has KmsKeyId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 208 | has UseAwsOwnedKey => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 209 | } | ||
| 210 | |||
| 211 | subtype 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::ConfigurationId', | ||
| 212 | as 'Cfn::Value'; | ||
| 213 | |||
| 214 | coerce 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::ConfigurationId', | ||
| 215 | from 'HashRef', | ||
| 216 | via { | ||
| 217 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 218 | return $f | ||
| 219 | } else { | ||
| 220 | return Cfn::Resource::Properties::Object::AWS::AmazonMQ::Broker::ConfigurationId->new( %$_ ); | ||
| 221 | } | ||
| 222 | }; | ||
| 223 | |||
| 224 | package Cfn::Resource::Properties::Object::AWS::AmazonMQ::Broker::ConfigurationId { | ||
| 225 | use Moose; | ||
| 226 | use MooseX::StrictConstructor; | ||
| 227 | extends 'Cfn::Value::TypedValue'; | ||
| 228 | |||
| 229 | has Id => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 230 | has Revision => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 231 | } | ||
| 232 | |||
| 233 | package Cfn::Resource::Properties::AWS::AmazonMQ::Broker { | ||
| 234 | use Moose; | ||
| 235 | use MooseX::StrictConstructor; | ||
| 236 | extends 'Cfn::Resource::Properties'; | ||
| 237 | |||
| 238 | has AuthenticationStrategy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 239 | has AutoMinorVersionUpgrade => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 240 | has BrokerName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 241 | has Configuration => (isa => 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::ConfigurationId', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 242 | has DeploymentMode => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 243 | has EncryptionOptions => (isa => 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::EncryptionOptions', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 244 | has EngineType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 245 | has EngineVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 246 | has HostInstanceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 247 | has LdapServerMetadata => (isa => 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::LdapServerMetadata', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 248 | has Logs => (isa => 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::LogList', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 249 | has MaintenanceWindowStartTime => (isa => 'Cfn::Resource::Properties::AWS::AmazonMQ::Broker::MaintenanceWindow', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 250 | has PubliclyAccessible => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 251 | has SecurityGroups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 252 | has StorageType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 253 | has SubnetIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 254 | has Tags => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AmazonMQ::Broker::TagsEntry', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 255 | has Users => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AmazonMQ::Broker::User', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 256 | } | ||
| 257 | |||
| 258 | 1; | ||
| 259 | ### main pod documentation begin ### | ||
| 260 | |||
| 261 | =encoding UTF-8 | ||
| 262 | |||
| 263 | =head1 NAME | ||
| 264 | |||
| 265 | Cfn::Resource::AWS::AmazonMQ::Broker - Cfn resource for AWS::AmazonMQ::Broker | ||
| 266 | |||
| 267 | =head1 DESCRIPTION | ||
| 268 | |||
| 269 | This module implements a Perl module that represents the CloudFormation object AWS::AmazonMQ::Broker. | ||
| 270 | |||
| 271 | See L<Cfn> for more information on how to use it. | ||
| 272 | |||
| 273 | =head1 AUTHOR | ||
| 274 | |||
| 275 | Jose Luis Martinez | ||
| 276 | CAPSiDE | ||
| 277 | jlmartinez@capside.com | ||
| 278 | |||
| 279 | =head1 COPYRIGHT and LICENSE | ||
| 280 | |||
| 281 | Copyright (c) 2013 by CAPSiDE | ||
| 282 | This code is distributed under the Apache 2 License. The full text of the | ||
| 283 | license can be found in the LICENSE file included with this module. | ||
| 284 | |||
| 285 | =cut |