| 1 | # AWS::SageMaker::UserProfile generated from spec 34.0.0 | ||
| 2 | use Moose::Util::TypeConstraints; | ||
| 3 | |||
| 4 | coerce 'Cfn::Resource::Properties::AWS::SageMaker::UserProfile', | ||
| 5 | from 'HashRef', | ||
| 6 | via { Cfn::Resource::Properties::AWS::SageMaker::UserProfile->new( %$_ ) }; | ||
| 7 | |||
| 8 | package Cfn::Resource::AWS::SageMaker::UserProfile { | ||
| 9 | use Moose; | ||
| 10 | extends 'Cfn::Resource'; | ||
| 11 | has Properties => (isa => 'Cfn::Resource::Properties::AWS::SageMaker::UserProfile', is => 'rw', coerce => 1); | ||
| 12 | |||
| 13 | sub AttributeList { | ||
| 14 | [ 'UserProfileArn' ] | ||
| 15 | } | ||
| 16 | sub supported_regions { | ||
| 17 | [ 'af-south-1','ap-east-1','ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','cn-north-1','cn-northwest-1','eu-central-1','eu-north-1','eu-south-1','eu-west-1','eu-west-2','eu-west-3','me-south-1','sa-east-1','us-east-1','us-east-2','us-west-1','us-west-2' ] | ||
| 18 | } | ||
| 19 | } | ||
| 20 | |||
| 21 | |||
| 22 | |||
| 23 | subtype 'Cfn::Resource::Properties::AWS::SageMaker::UserProfile::ResourceSpec', | ||
| 24 | as 'Cfn::Value'; | ||
| 25 | |||
| 26 | coerce 'Cfn::Resource::Properties::AWS::SageMaker::UserProfile::ResourceSpec', | ||
| 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::SageMaker::UserProfile::ResourceSpec->new( %$_ ); | ||
| 33 | } | ||
| 34 | }; | ||
| 35 | |||
| 36 | package Cfn::Resource::Properties::Object::AWS::SageMaker::UserProfile::ResourceSpec { | ||
| 37 | use Moose; | ||
| 38 | use MooseX::StrictConstructor; | ||
| 39 | extends 'Cfn::Value::TypedValue'; | ||
| 40 | |||
| 41 | has InstanceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 42 | has SageMakerImageArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 43 | has SageMakerImageVersionArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 44 | } | ||
| 45 | subtype 'ArrayOfCfn::Resource::Properties::AWS::SageMaker::UserProfile::CustomImage', | ||
| 46 | as 'Cfn::Value', | ||
| 47 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 48 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 49 | |||
| 50 | coerce 'ArrayOfCfn::Resource::Properties::AWS::SageMaker::UserProfile::CustomImage', | ||
| 51 | from 'HashRef', | ||
| 52 | via { | ||
| 53 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 54 | return $f | ||
| 55 | } else { | ||
| 56 | die 'Only accepts functions'; | ||
| 57 | } | ||
| 58 | }, | ||
| 59 | from 'ArrayRef', | ||
| 60 | via { | ||
| 61 | Cfn::Value::Array->new(Value => [ | ||
| 62 | map { | ||
| 63 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::SageMaker::UserProfile::CustomImage')->coerce($_) | ||
| 64 | } @$_ | ||
| 65 | ]); | ||
| 66 | }; | ||
| 67 | |||
| 68 | subtype 'Cfn::Resource::Properties::AWS::SageMaker::UserProfile::CustomImage', | ||
| 69 | as 'Cfn::Value'; | ||
| 70 | |||
| 71 | coerce 'Cfn::Resource::Properties::AWS::SageMaker::UserProfile::CustomImage', | ||
| 72 | from 'HashRef', | ||
| 73 | via { | ||
| 74 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 75 | return $f | ||
| 76 | } else { | ||
| 77 | return Cfn::Resource::Properties::Object::AWS::SageMaker::UserProfile::CustomImage->new( %$_ ); | ||
| 78 | } | ||
| 79 | }; | ||
| 80 | |||
| 81 | package Cfn::Resource::Properties::Object::AWS::SageMaker::UserProfile::CustomImage { | ||
| 82 | use Moose; | ||
| 83 | use MooseX::StrictConstructor; | ||
| 84 | extends 'Cfn::Value::TypedValue'; | ||
| 85 | |||
| 86 | has AppImageConfigName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 87 | has ImageName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 88 | has ImageVersionNumber => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 89 | } | ||
| 90 | |||
| 91 | subtype 'Cfn::Resource::Properties::AWS::SageMaker::UserProfile::SharingSettings', | ||
| 92 | as 'Cfn::Value'; | ||
| 93 | |||
| 94 | coerce 'Cfn::Resource::Properties::AWS::SageMaker::UserProfile::SharingSettings', | ||
| 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::SageMaker::UserProfile::SharingSettings->new( %$_ ); | ||
| 101 | } | ||
| 102 | }; | ||
| 103 | |||
| 104 | package Cfn::Resource::Properties::Object::AWS::SageMaker::UserProfile::SharingSettings { | ||
| 105 | use Moose; | ||
| 106 | use MooseX::StrictConstructor; | ||
| 107 | extends 'Cfn::Value::TypedValue'; | ||
| 108 | |||
| 109 | has NotebookOutputOption => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 110 | has S3KmsKeyId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 111 | has S3OutputPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 112 | } | ||
| 113 | |||
| 114 | subtype 'Cfn::Resource::Properties::AWS::SageMaker::UserProfile::KernelGatewayAppSettings', | ||
| 115 | as 'Cfn::Value'; | ||
| 116 | |||
| 117 | coerce 'Cfn::Resource::Properties::AWS::SageMaker::UserProfile::KernelGatewayAppSettings', | ||
| 118 | from 'HashRef', | ||
| 119 | via { | ||
| 120 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 121 | return $f | ||
| 122 | } else { | ||
| 123 | return Cfn::Resource::Properties::Object::AWS::SageMaker::UserProfile::KernelGatewayAppSettings->new( %$_ ); | ||
| 124 | } | ||
| 125 | }; | ||
| 126 | |||
| 127 | package Cfn::Resource::Properties::Object::AWS::SageMaker::UserProfile::KernelGatewayAppSettings { | ||
| 128 | use Moose; | ||
| 129 | use MooseX::StrictConstructor; | ||
| 130 | extends 'Cfn::Value::TypedValue'; | ||
| 131 | |||
| 132 | has CustomImages => (isa => 'ArrayOfCfn::Resource::Properties::AWS::SageMaker::UserProfile::CustomImage', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 133 | has DefaultResourceSpec => (isa => 'Cfn::Resource::Properties::AWS::SageMaker::UserProfile::ResourceSpec', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 134 | } | ||
| 135 | |||
| 136 | subtype 'Cfn::Resource::Properties::AWS::SageMaker::UserProfile::JupyterServerAppSettings', | ||
| 137 | as 'Cfn::Value'; | ||
| 138 | |||
| 139 | coerce 'Cfn::Resource::Properties::AWS::SageMaker::UserProfile::JupyterServerAppSettings', | ||
| 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::SageMaker::UserProfile::JupyterServerAppSettings->new( %$_ ); | ||
| 146 | } | ||
| 147 | }; | ||
| 148 | |||
| 149 | package Cfn::Resource::Properties::Object::AWS::SageMaker::UserProfile::JupyterServerAppSettings { | ||
| 150 | use Moose; | ||
| 151 | use MooseX::StrictConstructor; | ||
| 152 | extends 'Cfn::Value::TypedValue'; | ||
| 153 | |||
| 154 | has DefaultResourceSpec => (isa => 'Cfn::Resource::Properties::AWS::SageMaker::UserProfile::ResourceSpec', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 155 | } | ||
| 156 | |||
| 157 | subtype 'Cfn::Resource::Properties::AWS::SageMaker::UserProfile::UserSettings', | ||
| 158 | as 'Cfn::Value'; | ||
| 159 | |||
| 160 | coerce 'Cfn::Resource::Properties::AWS::SageMaker::UserProfile::UserSettings', | ||
| 161 | from 'HashRef', | ||
| 162 | via { | ||
| 163 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 164 | return $f | ||
| 165 | } else { | ||
| 166 | return Cfn::Resource::Properties::Object::AWS::SageMaker::UserProfile::UserSettings->new( %$_ ); | ||
| 167 | } | ||
| 168 | }; | ||
| 169 | |||
| 170 | package Cfn::Resource::Properties::Object::AWS::SageMaker::UserProfile::UserSettings { | ||
| 171 | use Moose; | ||
| 172 | use MooseX::StrictConstructor; | ||
| 173 | extends 'Cfn::Value::TypedValue'; | ||
| 174 | |||
| 175 | has ExecutionRole => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 176 | has JupyterServerAppSettings => (isa => 'Cfn::Resource::Properties::AWS::SageMaker::UserProfile::JupyterServerAppSettings', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 177 | has KernelGatewayAppSettings => (isa => 'Cfn::Resource::Properties::AWS::SageMaker::UserProfile::KernelGatewayAppSettings', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 178 | has SecurityGroups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 179 | has SharingSettings => (isa => 'Cfn::Resource::Properties::AWS::SageMaker::UserProfile::SharingSettings', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 180 | } | ||
| 181 | |||
| 182 | package Cfn::Resource::Properties::AWS::SageMaker::UserProfile { | ||
| 183 | use Moose; | ||
| 184 | use MooseX::StrictConstructor; | ||
| 185 | extends 'Cfn::Resource::Properties'; | ||
| 186 | |||
| 187 | has DomainId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 188 | has SingleSignOnUserIdentifier => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 189 | has SingleSignOnUserValue => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 190 | has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 191 | has UserProfileName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 192 | has UserSettings => (isa => 'Cfn::Resource::Properties::AWS::SageMaker::UserProfile::UserSettings', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 193 | } | ||
| 194 | |||
| 195 | 1; | ||
| 196 | ### main pod documentation begin ### | ||
| 197 | |||
| 198 | =encoding UTF-8 | ||
| 199 | |||
| 200 | =head1 NAME | ||
| 201 | |||
| 202 | Cfn::Resource::AWS::SageMaker::UserProfile - Cfn resource for AWS::SageMaker::UserProfile | ||
| 203 | |||
| 204 | =head1 DESCRIPTION | ||
| 205 | |||
| 206 | This module implements a Perl module that represents the CloudFormation object AWS::SageMaker::UserProfile. | ||
| 207 | |||
| 208 | See L<Cfn> for more information on how to use it. | ||
| 209 | |||
| 210 | =head1 AUTHOR | ||
| 211 | |||
| 212 | Jose Luis Martinez | ||
| 213 | CAPSiDE | ||
| 214 | jlmartinez@capside.com | ||
| 215 | |||
| 216 | =head1 COPYRIGHT and LICENSE | ||
| 217 | |||
| 218 | Copyright (c) 2013 by CAPSiDE | ||
| 219 | This code is distributed under the Apache 2 License. The full text of the | ||
| 220 | license can be found in the LICENSE file included with this module. | ||
| 221 | |||
| 222 | =cut |