« Cfn/Resource/AWS/S3Outposts/AccessPoint.pm
↑ Summary
Cfn/Resource/AWS/S3Outposts/BucketPolicy.pm »
| 1 | # AWS::S3Outposts::Bucket generated from spec 34.0.0 | ||
| 2 | use Moose::Util::TypeConstraints; | ||
| 3 | |||
| 4 | coerce 'Cfn::Resource::Properties::AWS::S3Outposts::Bucket', | ||
| 5 | from 'HashRef', | ||
| 6 | via { Cfn::Resource::Properties::AWS::S3Outposts::Bucket->new( %$_ ) }; | ||
| 7 | |||
| 8 | package Cfn::Resource::AWS::S3Outposts::Bucket { | ||
| 9 | use Moose; | ||
| 10 | extends 'Cfn::Resource'; | ||
| 11 | has Properties => (isa => 'Cfn::Resource::Properties::AWS::S3Outposts::Bucket', is => 'rw', coerce => 1); | ||
| 12 | |||
| 13 | sub AttributeList { | ||
| 14 | [ 'Arn' ] | ||
| 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','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::S3Outposts::Bucket::AbortIncompleteMultipartUpload', | ||
| 24 | as 'Cfn::Value'; | ||
| 25 | |||
| 26 | coerce 'Cfn::Resource::Properties::AWS::S3Outposts::Bucket::AbortIncompleteMultipartUpload', | ||
| 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::S3Outposts::Bucket::AbortIncompleteMultipartUpload->new( %$_ ); | ||
| 33 | } | ||
| 34 | }; | ||
| 35 | |||
| 36 | package Cfn::Resource::Properties::Object::AWS::S3Outposts::Bucket::AbortIncompleteMultipartUpload { | ||
| 37 | use Moose; | ||
| 38 | use MooseX::StrictConstructor; | ||
| 39 | extends 'Cfn::Value::TypedValue'; | ||
| 40 | |||
| 41 | has DaysAfterInitiation => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 42 | } | ||
| 43 | subtype 'ArrayOfCfn::Resource::Properties::AWS::S3Outposts::Bucket::Rule', | ||
| 44 | as 'Cfn::Value', | ||
| 45 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 46 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 47 | |||
| 48 | coerce 'ArrayOfCfn::Resource::Properties::AWS::S3Outposts::Bucket::Rule', | ||
| 49 | from 'HashRef', | ||
| 50 | via { | ||
| 51 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 52 | return $f | ||
| 53 | } else { | ||
| 54 | die 'Only accepts functions'; | ||
| 55 | } | ||
| 56 | }, | ||
| 57 | from 'ArrayRef', | ||
| 58 | via { | ||
| 59 | Cfn::Value::Array->new(Value => [ | ||
| 60 | map { | ||
| 61 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::S3Outposts::Bucket::Rule')->coerce($_) | ||
| 62 | } @$_ | ||
| 63 | ]); | ||
| 64 | }; | ||
| 65 | |||
| 66 | subtype 'Cfn::Resource::Properties::AWS::S3Outposts::Bucket::Rule', | ||
| 67 | as 'Cfn::Value'; | ||
| 68 | |||
| 69 | coerce 'Cfn::Resource::Properties::AWS::S3Outposts::Bucket::Rule', | ||
| 70 | from 'HashRef', | ||
| 71 | via { | ||
| 72 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 73 | return $f | ||
| 74 | } else { | ||
| 75 | return Cfn::Resource::Properties::Object::AWS::S3Outposts::Bucket::Rule->new( %$_ ); | ||
| 76 | } | ||
| 77 | }; | ||
| 78 | |||
| 79 | package Cfn::Resource::Properties::Object::AWS::S3Outposts::Bucket::Rule { | ||
| 80 | use Moose; | ||
| 81 | use MooseX::StrictConstructor; | ||
| 82 | extends 'Cfn::Value::TypedValue'; | ||
| 83 | |||
| 84 | has AbortIncompleteMultipartUpload => (isa => 'Cfn::Resource::Properties::AWS::S3Outposts::Bucket::AbortIncompleteMultipartUpload', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 85 | has ExpirationDate => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 86 | has ExpirationInDays => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 87 | has Filter => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 88 | has Id => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 89 | has Status => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 90 | } | ||
| 91 | |||
| 92 | subtype 'Cfn::Resource::Properties::AWS::S3Outposts::Bucket::LifecycleConfiguration', | ||
| 93 | as 'Cfn::Value'; | ||
| 94 | |||
| 95 | coerce 'Cfn::Resource::Properties::AWS::S3Outposts::Bucket::LifecycleConfiguration', | ||
| 96 | from 'HashRef', | ||
| 97 | via { | ||
| 98 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 99 | return $f | ||
| 100 | } else { | ||
| 101 | return Cfn::Resource::Properties::Object::AWS::S3Outposts::Bucket::LifecycleConfiguration->new( %$_ ); | ||
| 102 | } | ||
| 103 | }; | ||
| 104 | |||
| 105 | package Cfn::Resource::Properties::Object::AWS::S3Outposts::Bucket::LifecycleConfiguration { | ||
| 106 | use Moose; | ||
| 107 | use MooseX::StrictConstructor; | ||
| 108 | extends 'Cfn::Value::TypedValue'; | ||
| 109 | |||
| 110 | has Rules => (isa => 'ArrayOfCfn::Resource::Properties::AWS::S3Outposts::Bucket::Rule', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 111 | } | ||
| 112 | |||
| 113 | package Cfn::Resource::Properties::AWS::S3Outposts::Bucket { | ||
| 114 | use Moose; | ||
| 115 | use MooseX::StrictConstructor; | ||
| 116 | extends 'Cfn::Resource::Properties'; | ||
| 117 | |||
| 118 | has BucketName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 119 | has LifecycleConfiguration => (isa => 'Cfn::Resource::Properties::AWS::S3Outposts::Bucket::LifecycleConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 120 | has OutpostId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 121 | has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 122 | } | ||
| 123 | |||
| 124 | 1; | ||
| 125 | ### main pod documentation begin ### | ||
| 126 | |||
| 127 | =encoding UTF-8 | ||
| 128 | |||
| 129 | =head1 NAME | ||
| 130 | |||
| 131 | Cfn::Resource::AWS::S3Outposts::Bucket - Cfn resource for AWS::S3Outposts::Bucket | ||
| 132 | |||
| 133 | =head1 DESCRIPTION | ||
| 134 | |||
| 135 | This module implements a Perl module that represents the CloudFormation object AWS::S3Outposts::Bucket. | ||
| 136 | |||
| 137 | See L<Cfn> for more information on how to use it. | ||
| 138 | |||
| 139 | =head1 AUTHOR | ||
| 140 | |||
| 141 | Jose Luis Martinez | ||
| 142 | CAPSiDE | ||
| 143 | jlmartinez@capside.com | ||
| 144 | |||
| 145 | =head1 COPYRIGHT and LICENSE | ||
| 146 | |||
| 147 | Copyright (c) 2013 by CAPSiDE | ||
| 148 | This code is distributed under the Apache 2 License. The full text of the | ||
| 149 | license can be found in the LICENSE file included with this module. | ||
| 150 | |||
| 151 | =cut |