| 1 | # AWS::IoTSiteWise::AccessPolicy generated from spec 34.0.0 | ||
| 2 | use Moose::Util::TypeConstraints; | ||
| 3 | |||
| 4 | coerce 'Cfn::Resource::Properties::AWS::IoTSiteWise::AccessPolicy', | ||
| 5 | from 'HashRef', | ||
| 6 | via { Cfn::Resource::Properties::AWS::IoTSiteWise::AccessPolicy->new( %$_ ) }; | ||
| 7 | |||
| 8 | package Cfn::Resource::AWS::IoTSiteWise::AccessPolicy { | ||
| 9 | use Moose; | ||
| 10 | extends 'Cfn::Resource'; | ||
| 11 | has Properties => (isa => 'Cfn::Resource::Properties::AWS::IoTSiteWise::AccessPolicy', is => 'rw', coerce => 1); | ||
| 12 | |||
| 13 | sub AttributeList { | ||
| 14 | [ 'AccessPolicyArn','AccessPolicyId' ] | ||
| 15 | } | ||
| 16 | sub supported_regions { | ||
| 17 | [ 'ap-southeast-1','ap-southeast-2','cn-north-1','eu-central-1','eu-west-1','us-east-1','us-west-2' ] | ||
| 18 | } | ||
| 19 | } | ||
| 20 | |||
| 21 | |||
| 22 | |||
| 23 | subtype 'Cfn::Resource::Properties::AWS::IoTSiteWise::AccessPolicy::User', | ||
| 24 | as 'Cfn::Value'; | ||
| 25 | |||
| 26 | coerce 'Cfn::Resource::Properties::AWS::IoTSiteWise::AccessPolicy::User', | ||
| 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::IoTSiteWise::AccessPolicy::User->new( %$_ ); | ||
| 33 | } | ||
| 34 | }; | ||
| 35 | |||
| 36 | package Cfn::Resource::Properties::Object::AWS::IoTSiteWise::AccessPolicy::User { | ||
| 37 | use Moose; | ||
| 38 | use MooseX::StrictConstructor; | ||
| 39 | extends 'Cfn::Value::TypedValue'; | ||
| 40 | |||
| 41 | has id => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 42 | } | ||
| 43 | |||
| 44 | subtype 'Cfn::Resource::Properties::AWS::IoTSiteWise::AccessPolicy::Project', | ||
| 45 | as 'Cfn::Value'; | ||
| 46 | |||
| 47 | coerce 'Cfn::Resource::Properties::AWS::IoTSiteWise::AccessPolicy::Project', | ||
| 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::IoTSiteWise::AccessPolicy::Project->new( %$_ ); | ||
| 54 | } | ||
| 55 | }; | ||
| 56 | |||
| 57 | package Cfn::Resource::Properties::Object::AWS::IoTSiteWise::AccessPolicy::Project { | ||
| 58 | use Moose; | ||
| 59 | use MooseX::StrictConstructor; | ||
| 60 | extends 'Cfn::Value::TypedValue'; | ||
| 61 | |||
| 62 | has id => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 63 | } | ||
| 64 | |||
| 65 | subtype 'Cfn::Resource::Properties::AWS::IoTSiteWise::AccessPolicy::Portal', | ||
| 66 | as 'Cfn::Value'; | ||
| 67 | |||
| 68 | coerce 'Cfn::Resource::Properties::AWS::IoTSiteWise::AccessPolicy::Portal', | ||
| 69 | from 'HashRef', | ||
| 70 | via { | ||
| 71 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 72 | return $f | ||
| 73 | } else { | ||
| 74 | return Cfn::Resource::Properties::Object::AWS::IoTSiteWise::AccessPolicy::Portal->new( %$_ ); | ||
| 75 | } | ||
| 76 | }; | ||
| 77 | |||
| 78 | package Cfn::Resource::Properties::Object::AWS::IoTSiteWise::AccessPolicy::Portal { | ||
| 79 | use Moose; | ||
| 80 | use MooseX::StrictConstructor; | ||
| 81 | extends 'Cfn::Value::TypedValue'; | ||
| 82 | |||
| 83 | has id => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 84 | } | ||
| 85 | |||
| 86 | subtype 'Cfn::Resource::Properties::AWS::IoTSiteWise::AccessPolicy::IamUser', | ||
| 87 | as 'Cfn::Value'; | ||
| 88 | |||
| 89 | coerce 'Cfn::Resource::Properties::AWS::IoTSiteWise::AccessPolicy::IamUser', | ||
| 90 | from 'HashRef', | ||
| 91 | via { | ||
| 92 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 93 | return $f | ||
| 94 | } else { | ||
| 95 | return Cfn::Resource::Properties::Object::AWS::IoTSiteWise::AccessPolicy::IamUser->new( %$_ ); | ||
| 96 | } | ||
| 97 | }; | ||
| 98 | |||
| 99 | package Cfn::Resource::Properties::Object::AWS::IoTSiteWise::AccessPolicy::IamUser { | ||
| 100 | use Moose; | ||
| 101 | use MooseX::StrictConstructor; | ||
| 102 | extends 'Cfn::Value::TypedValue'; | ||
| 103 | |||
| 104 | has arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 105 | } | ||
| 106 | |||
| 107 | subtype 'Cfn::Resource::Properties::AWS::IoTSiteWise::AccessPolicy::IamRole', | ||
| 108 | as 'Cfn::Value'; | ||
| 109 | |||
| 110 | coerce 'Cfn::Resource::Properties::AWS::IoTSiteWise::AccessPolicy::IamRole', | ||
| 111 | from 'HashRef', | ||
| 112 | via { | ||
| 113 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 114 | return $f | ||
| 115 | } else { | ||
| 116 | return Cfn::Resource::Properties::Object::AWS::IoTSiteWise::AccessPolicy::IamRole->new( %$_ ); | ||
| 117 | } | ||
| 118 | }; | ||
| 119 | |||
| 120 | package Cfn::Resource::Properties::Object::AWS::IoTSiteWise::AccessPolicy::IamRole { | ||
| 121 | use Moose; | ||
| 122 | use MooseX::StrictConstructor; | ||
| 123 | extends 'Cfn::Value::TypedValue'; | ||
| 124 | |||
| 125 | has arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 126 | } | ||
| 127 | |||
| 128 | subtype 'Cfn::Resource::Properties::AWS::IoTSiteWise::AccessPolicy::AccessPolicyResource', | ||
| 129 | as 'Cfn::Value'; | ||
| 130 | |||
| 131 | coerce 'Cfn::Resource::Properties::AWS::IoTSiteWise::AccessPolicy::AccessPolicyResource', | ||
| 132 | from 'HashRef', | ||
| 133 | via { | ||
| 134 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 135 | return $f | ||
| 136 | } else { | ||
| 137 | return Cfn::Resource::Properties::Object::AWS::IoTSiteWise::AccessPolicy::AccessPolicyResource->new( %$_ ); | ||
| 138 | } | ||
| 139 | }; | ||
| 140 | |||
| 141 | package Cfn::Resource::Properties::Object::AWS::IoTSiteWise::AccessPolicy::AccessPolicyResource { | ||
| 142 | use Moose; | ||
| 143 | use MooseX::StrictConstructor; | ||
| 144 | extends 'Cfn::Value::TypedValue'; | ||
| 145 | |||
| 146 | has Portal => (isa => 'Cfn::Resource::Properties::AWS::IoTSiteWise::AccessPolicy::Portal', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 147 | has Project => (isa => 'Cfn::Resource::Properties::AWS::IoTSiteWise::AccessPolicy::Project', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 148 | } | ||
| 149 | |||
| 150 | subtype 'Cfn::Resource::Properties::AWS::IoTSiteWise::AccessPolicy::AccessPolicyIdentity', | ||
| 151 | as 'Cfn::Value'; | ||
| 152 | |||
| 153 | coerce 'Cfn::Resource::Properties::AWS::IoTSiteWise::AccessPolicy::AccessPolicyIdentity', | ||
| 154 | from 'HashRef', | ||
| 155 | via { | ||
| 156 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 157 | return $f | ||
| 158 | } else { | ||
| 159 | return Cfn::Resource::Properties::Object::AWS::IoTSiteWise::AccessPolicy::AccessPolicyIdentity->new( %$_ ); | ||
| 160 | } | ||
| 161 | }; | ||
| 162 | |||
| 163 | package Cfn::Resource::Properties::Object::AWS::IoTSiteWise::AccessPolicy::AccessPolicyIdentity { | ||
| 164 | use Moose; | ||
| 165 | use MooseX::StrictConstructor; | ||
| 166 | extends 'Cfn::Value::TypedValue'; | ||
| 167 | |||
| 168 | has IamRole => (isa => 'Cfn::Resource::Properties::AWS::IoTSiteWise::AccessPolicy::IamRole', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 169 | has IamUser => (isa => 'Cfn::Resource::Properties::AWS::IoTSiteWise::AccessPolicy::IamUser', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 170 | has User => (isa => 'Cfn::Resource::Properties::AWS::IoTSiteWise::AccessPolicy::User', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 171 | } | ||
| 172 | |||
| 173 | package Cfn::Resource::Properties::AWS::IoTSiteWise::AccessPolicy { | ||
| 174 | use Moose; | ||
| 175 | use MooseX::StrictConstructor; | ||
| 176 | extends 'Cfn::Resource::Properties'; | ||
| 177 | |||
| 178 | has AccessPolicyIdentity => (isa => 'Cfn::Resource::Properties::AWS::IoTSiteWise::AccessPolicy::AccessPolicyIdentity', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 179 | has AccessPolicyPermission => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 180 | has AccessPolicyResource => (isa => 'Cfn::Resource::Properties::AWS::IoTSiteWise::AccessPolicy::AccessPolicyResource', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 181 | } | ||
| 182 | |||
| 183 | 1; | ||
| 184 | ### main pod documentation begin ### | ||
| 185 | |||
| 186 | =encoding UTF-8 | ||
| 187 | |||
| 188 | =head1 NAME | ||
| 189 | |||
| 190 | Cfn::Resource::AWS::IoTSiteWise::AccessPolicy - Cfn resource for AWS::IoTSiteWise::AccessPolicy | ||
| 191 | |||
| 192 | =head1 DESCRIPTION | ||
| 193 | |||
| 194 | This module implements a Perl module that represents the CloudFormation object AWS::IoTSiteWise::AccessPolicy. | ||
| 195 | |||
| 196 | See L<Cfn> for more information on how to use it. | ||
| 197 | |||
| 198 | =head1 AUTHOR | ||
| 199 | |||
| 200 | Jose Luis Martinez | ||
| 201 | CAPSiDE | ||
| 202 | jlmartinez@capside.com | ||
| 203 | |||
| 204 | =head1 COPYRIGHT and LICENSE | ||
| 205 | |||
| 206 | Copyright (c) 2013 by CAPSiDE | ||
| 207 | This code is distributed under the Apache 2 License. The full text of the | ||
| 208 | license can be found in the LICENSE file included with this module. | ||
| 209 | |||
| 210 | =cut |