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