| 1 | # AWS::SSM::MaintenanceWindowTask generated from spec 34.0.0 | ||
| 2 | use Moose::Util::TypeConstraints; | ||
| 3 | |||
| 4 | coerce 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask', | ||
| 5 | from 'HashRef', | ||
| 6 | via { Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask->new( %$_ ) }; | ||
| 7 | |||
| 8 | package Cfn::Resource::AWS::SSM::MaintenanceWindowTask { | ||
| 9 | use Moose; | ||
| 10 | extends 'Cfn::Resource'; | ||
| 11 | has Properties => (isa => 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask', 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','ca-central-1','cn-north-1','eu-central-1','eu-west-1','eu-west-2','eu-west-3','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::SSM::MaintenanceWindowTask::NotificationConfig', | ||
| 24 | as 'Cfn::Value'; | ||
| 25 | |||
| 26 | coerce 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::NotificationConfig', | ||
| 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::SSM::MaintenanceWindowTask::NotificationConfig->new( %$_ ); | ||
| 33 | } | ||
| 34 | }; | ||
| 35 | |||
| 36 | package Cfn::Resource::Properties::Object::AWS::SSM::MaintenanceWindowTask::NotificationConfig { | ||
| 37 | use Moose; | ||
| 38 | use MooseX::StrictConstructor; | ||
| 39 | extends 'Cfn::Value::TypedValue'; | ||
| 40 | |||
| 41 | has NotificationArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 42 | has NotificationEvents => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 43 | has NotificationType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 44 | } | ||
| 45 | |||
| 46 | subtype 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowStepFunctionsParameters', | ||
| 47 | as 'Cfn::Value'; | ||
| 48 | |||
| 49 | coerce 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowStepFunctionsParameters', | ||
| 50 | from 'HashRef', | ||
| 51 | via { | ||
| 52 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 53 | return $f | ||
| 54 | } else { | ||
| 55 | return Cfn::Resource::Properties::Object::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowStepFunctionsParameters->new( %$_ ); | ||
| 56 | } | ||
| 57 | }; | ||
| 58 | |||
| 59 | package Cfn::Resource::Properties::Object::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowStepFunctionsParameters { | ||
| 60 | use Moose; | ||
| 61 | use MooseX::StrictConstructor; | ||
| 62 | extends 'Cfn::Value::TypedValue'; | ||
| 63 | |||
| 64 | has Input => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 65 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 66 | } | ||
| 67 | |||
| 68 | subtype 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowRunCommandParameters', | ||
| 69 | as 'Cfn::Value'; | ||
| 70 | |||
| 71 | coerce 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowRunCommandParameters', | ||
| 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::SSM::MaintenanceWindowTask::MaintenanceWindowRunCommandParameters->new( %$_ ); | ||
| 78 | } | ||
| 79 | }; | ||
| 80 | |||
| 81 | package Cfn::Resource::Properties::Object::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowRunCommandParameters { | ||
| 82 | use Moose; | ||
| 83 | use MooseX::StrictConstructor; | ||
| 84 | extends 'Cfn::Value::TypedValue'; | ||
| 85 | |||
| 86 | has Comment => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 87 | has DocumentHash => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 88 | has DocumentHashType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 89 | has NotificationConfig => (isa => 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::NotificationConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 90 | has OutputS3BucketName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 91 | has OutputS3KeyPrefix => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 92 | has Parameters => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 93 | has ServiceRoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 94 | has TimeoutSeconds => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 95 | } | ||
| 96 | |||
| 97 | subtype 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowLambdaParameters', | ||
| 98 | as 'Cfn::Value'; | ||
| 99 | |||
| 100 | coerce 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowLambdaParameters', | ||
| 101 | from 'HashRef', | ||
| 102 | via { | ||
| 103 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 104 | return $f | ||
| 105 | } else { | ||
| 106 | return Cfn::Resource::Properties::Object::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowLambdaParameters->new( %$_ ); | ||
| 107 | } | ||
| 108 | }; | ||
| 109 | |||
| 110 | package Cfn::Resource::Properties::Object::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowLambdaParameters { | ||
| 111 | use Moose; | ||
| 112 | use MooseX::StrictConstructor; | ||
| 113 | extends 'Cfn::Value::TypedValue'; | ||
| 114 | |||
| 115 | has ClientContext => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 116 | has Payload => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 117 | has Qualifier => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 118 | } | ||
| 119 | |||
| 120 | subtype 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowAutomationParameters', | ||
| 121 | as 'Cfn::Value'; | ||
| 122 | |||
| 123 | coerce 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowAutomationParameters', | ||
| 124 | from 'HashRef', | ||
| 125 | via { | ||
| 126 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 127 | return $f | ||
| 128 | } else { | ||
| 129 | return Cfn::Resource::Properties::Object::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowAutomationParameters->new( %$_ ); | ||
| 130 | } | ||
| 131 | }; | ||
| 132 | |||
| 133 | package Cfn::Resource::Properties::Object::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowAutomationParameters { | ||
| 134 | use Moose; | ||
| 135 | use MooseX::StrictConstructor; | ||
| 136 | extends 'Cfn::Value::TypedValue'; | ||
| 137 | |||
| 138 | has DocumentVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 139 | has Parameters => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 140 | } | ||
| 141 | |||
| 142 | subtype 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::TaskInvocationParameters', | ||
| 143 | as 'Cfn::Value'; | ||
| 144 | |||
| 145 | coerce 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::TaskInvocationParameters', | ||
| 146 | from 'HashRef', | ||
| 147 | via { | ||
| 148 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 149 | return $f | ||
| 150 | } else { | ||
| 151 | return Cfn::Resource::Properties::Object::AWS::SSM::MaintenanceWindowTask::TaskInvocationParameters->new( %$_ ); | ||
| 152 | } | ||
| 153 | }; | ||
| 154 | |||
| 155 | package Cfn::Resource::Properties::Object::AWS::SSM::MaintenanceWindowTask::TaskInvocationParameters { | ||
| 156 | use Moose; | ||
| 157 | use MooseX::StrictConstructor; | ||
| 158 | extends 'Cfn::Value::TypedValue'; | ||
| 159 | |||
| 160 | has MaintenanceWindowAutomationParameters => (isa => 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowAutomationParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 161 | has MaintenanceWindowLambdaParameters => (isa => 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowLambdaParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 162 | has MaintenanceWindowRunCommandParameters => (isa => 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowRunCommandParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 163 | has MaintenanceWindowStepFunctionsParameters => (isa => 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::MaintenanceWindowStepFunctionsParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 164 | } | ||
| 165 | subtype 'ArrayOfCfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::Target', | ||
| 166 | as 'Cfn::Value', | ||
| 167 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 168 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 169 | |||
| 170 | coerce 'ArrayOfCfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::Target', | ||
| 171 | from 'HashRef', | ||
| 172 | via { | ||
| 173 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 174 | return $f | ||
| 175 | } else { | ||
| 176 | die 'Only accepts functions'; | ||
| 177 | } | ||
| 178 | }, | ||
| 179 | from 'ArrayRef', | ||
| 180 | via { | ||
| 181 | Cfn::Value::Array->new(Value => [ | ||
| 182 | map { | ||
| 183 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::Target')->coerce($_) | ||
| 184 | } @$_ | ||
| 185 | ]); | ||
| 186 | }; | ||
| 187 | |||
| 188 | subtype 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::Target', | ||
| 189 | as 'Cfn::Value'; | ||
| 190 | |||
| 191 | coerce 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::Target', | ||
| 192 | from 'HashRef', | ||
| 193 | via { | ||
| 194 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 195 | return $f | ||
| 196 | } else { | ||
| 197 | return Cfn::Resource::Properties::Object::AWS::SSM::MaintenanceWindowTask::Target->new( %$_ ); | ||
| 198 | } | ||
| 199 | }; | ||
| 200 | |||
| 201 | package Cfn::Resource::Properties::Object::AWS::SSM::MaintenanceWindowTask::Target { | ||
| 202 | use Moose; | ||
| 203 | use MooseX::StrictConstructor; | ||
| 204 | extends 'Cfn::Value::TypedValue'; | ||
| 205 | |||
| 206 | has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 207 | has Values => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 208 | } | ||
| 209 | |||
| 210 | subtype 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::LoggingInfo', | ||
| 211 | as 'Cfn::Value'; | ||
| 212 | |||
| 213 | coerce 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::LoggingInfo', | ||
| 214 | from 'HashRef', | ||
| 215 | via { | ||
| 216 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 217 | return $f | ||
| 218 | } else { | ||
| 219 | return Cfn::Resource::Properties::Object::AWS::SSM::MaintenanceWindowTask::LoggingInfo->new( %$_ ); | ||
| 220 | } | ||
| 221 | }; | ||
| 222 | |||
| 223 | package Cfn::Resource::Properties::Object::AWS::SSM::MaintenanceWindowTask::LoggingInfo { | ||
| 224 | use Moose; | ||
| 225 | use MooseX::StrictConstructor; | ||
| 226 | extends 'Cfn::Value::TypedValue'; | ||
| 227 | |||
| 228 | has Region => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 229 | has S3Bucket => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 230 | has S3Prefix => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 231 | } | ||
| 232 | |||
| 233 | package Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask { | ||
| 234 | use Moose; | ||
| 235 | use MooseX::StrictConstructor; | ||
| 236 | extends 'Cfn::Resource::Properties'; | ||
| 237 | |||
| 238 | has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 239 | has LoggingInfo => (isa => 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::LoggingInfo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 240 | has MaxConcurrency => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 241 | has MaxErrors => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 242 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 243 | has Priority => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 244 | has ServiceRoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 245 | has Targets => (isa => 'ArrayOfCfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::Target', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 246 | has TaskArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 247 | has TaskInvocationParameters => (isa => 'Cfn::Resource::Properties::AWS::SSM::MaintenanceWindowTask::TaskInvocationParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 248 | has TaskParameters => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 249 | has TaskType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 250 | has WindowId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 251 | } | ||
| 252 | |||
| 253 | 1; | ||
| 254 | ### main pod documentation begin ### | ||
| 255 | |||
| 256 | =encoding UTF-8 | ||
| 257 | |||
| 258 | =head1 NAME | ||
| 259 | |||
| 260 | Cfn::Resource::AWS::SSM::MaintenanceWindowTask - Cfn resource for AWS::SSM::MaintenanceWindowTask | ||
| 261 | |||
| 262 | =head1 DESCRIPTION | ||
| 263 | |||
| 264 | This module implements a Perl module that represents the CloudFormation object AWS::SSM::MaintenanceWindowTask. | ||
| 265 | |||
| 266 | See L<Cfn> for more information on how to use it. | ||
| 267 | |||
| 268 | =head1 AUTHOR | ||
| 269 | |||
| 270 | Jose Luis Martinez | ||
| 271 | CAPSiDE | ||
| 272 | jlmartinez@capside.com | ||
| 273 | |||
| 274 | =head1 COPYRIGHT and LICENSE | ||
| 275 | |||
| 276 | Copyright (c) 2013 by CAPSiDE | ||
| 277 | This code is distributed under the Apache 2 License. The full text of the | ||
| 278 | license can be found in the LICENSE file included with this module. | ||
| 279 | |||
| 280 | =cut |