| 1 | # AWS::DynamoDB::Table generated from spec 34.0.0 | ||||||||||
| 2 | 3 | ▶ | use Moose::Util::TypeConstraints; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | coerce 'Cfn::Resource::Properties::AWS::DynamoDB::Table', | ||||||||||
| 5 | from 'HashRef', | ||||||||||
| 6 | 12 | ▶ | via { Cfn::Resource::Properties::AWS::DynamoDB::Table->new( %$_ ) }; | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 3 | package Cfn::Resource::AWS::DynamoDB::Table { | |||||||||
| 9 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 3 | extends 'Cfn::Resource'; | |||||||||
| 11 | 3 | has Properties => (isa => 'Cfn::Resource::Properties::AWS::DynamoDB::Table', is => 'rw', coerce => 1); | |||||||||
| 12 | |||||||||||
| 13 | 0 | ▶ | sub AttributeList { | ||||||||
|
Subroutine
AttributeList: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 14 | 0 | [ 'Arn','StreamArn' ] | |||||||||
| 15 | } | ||||||||||
| 16 | 0 | ▶ | sub supported_regions { | ||||||||
|
Subroutine
supported_regions: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 17 | 0 | [ 'af-south-1','ap-east-1','ap-northeast-1','ap-northeast-2','ap-northeast-3','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-gov-east-1','us-gov-west-1','us-west-1','us-west-2' ] | |||||||||
| 18 | } | ||||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | |||||||||||
| 22 | |||||||||||
| 23 | 3 | subtype 'Cfn::Resource::Properties::AWS::DynamoDB::Table::ProvisionedThroughput', | |||||||||
| 24 | as 'Cfn::Value'; | ||||||||||
| 25 | |||||||||||
| 26 | coerce 'Cfn::Resource::Properties::AWS::DynamoDB::Table::ProvisionedThroughput', | ||||||||||
| 27 | from 'HashRef', | ||||||||||
| 28 | 20 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
| |||||||||||
| 29 | 20 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 30 | 0 | return $f | |||||||||
| 31 | } else { | ||||||||||
| 32 | 20 | return Cfn::Resource::Properties::Object::AWS::DynamoDB::Table::ProvisionedThroughput->new( %$_ ); | |||||||||
| 33 | } | ||||||||||
| 34 | 3 | }; | |||||||||
| 35 | |||||||||||
| 36 | 3 | package Cfn::Resource::Properties::Object::AWS::DynamoDB::Table::ProvisionedThroughput { | |||||||||
| 37 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 38 | 3 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 39 | 3 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 40 | |||||||||||
| 41 | 3 | has ReadCapacityUnits => (isa => 'Cfn::Value::Long', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 42 | 3 | has WriteCapacityUnits => (isa => 'Cfn::Value::Long', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 43 | } | ||||||||||
| 44 | |||||||||||
| 45 | 3 | subtype 'Cfn::Resource::Properties::AWS::DynamoDB::Table::Projection', | |||||||||
| 46 | as 'Cfn::Value'; | ||||||||||
| 47 | |||||||||||
| 48 | coerce 'Cfn::Resource::Properties::AWS::DynamoDB::Table::Projection', | ||||||||||
| 49 | from 'HashRef', | ||||||||||
| 50 | 12 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
| |||||||||||
| 51 | 12 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 52 | 0 | return $f | |||||||||
| 53 | } else { | ||||||||||
| 54 | 12 | return Cfn::Resource::Properties::Object::AWS::DynamoDB::Table::Projection->new( %$_ ); | |||||||||
| 55 | } | ||||||||||
| 56 | 3 | }; | |||||||||
| 57 | |||||||||||
| 58 | 3 | package Cfn::Resource::Properties::Object::AWS::DynamoDB::Table::Projection { | |||||||||
| 59 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 60 | 3 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 61 | 3 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 62 | |||||||||||
| 63 | 3 | has NonKeyAttributes => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 64 | 3 | has ProjectionType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 65 | } | ||||||||||
| 66 | subtype 'ArrayOfCfn::Resource::Properties::AWS::DynamoDB::Table::KeySchema', | ||||||||||
| 67 | as 'Cfn::Value', | ||||||||||
| 68 | 24 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 69 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 70 | |||||||||||
| 71 | coerce 'ArrayOfCfn::Resource::Properties::AWS::DynamoDB::Table::KeySchema', | ||||||||||
| 72 | from 'HashRef', | ||||||||||
| 73 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 74 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 75 | 0 | return $f | |||||||||
| 76 | } else { | ||||||||||
| 77 | 0 | die 'Only accepts functions'; | |||||||||
| 78 | } | ||||||||||
| 79 | }, | ||||||||||
| 80 | from 'ArrayRef', | ||||||||||
| 81 | 24 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 82 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 83 | map { | ||||||||||
| 84 | 24 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::DynamoDB::Table::KeySchema')->coerce($_) | |||||||||
| 85 | } @$_ | ||||||||||
| 86 | ]); | ||||||||||
| 87 | 3 | }; | |||||||||
| 88 | |||||||||||
| 89 | 3 | subtype 'Cfn::Resource::Properties::AWS::DynamoDB::Table::KeySchema', | |||||||||
| 90 | as 'Cfn::Value'; | ||||||||||
| 91 | |||||||||||
| 92 | coerce 'Cfn::Resource::Properties::AWS::DynamoDB::Table::KeySchema', | ||||||||||
| 93 | from 'HashRef', | ||||||||||
| 94 | 40 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
| |||||||||||
| 95 | 40 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 96 | 0 | return $f | |||||||||
| 97 | } else { | ||||||||||
| 98 | 40 | return Cfn::Resource::Properties::Object::AWS::DynamoDB::Table::KeySchema->new( %$_ ); | |||||||||
| 99 | } | ||||||||||
| 100 | 3 | }; | |||||||||
| 101 | |||||||||||
| 102 | 3 | package Cfn::Resource::Properties::Object::AWS::DynamoDB::Table::KeySchema { | |||||||||
| 103 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 104 | 3 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 105 | 3 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 106 | |||||||||||
| 107 | 3 | has AttributeName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 108 | 3 | has KeyType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 109 | } | ||||||||||
| 110 | |||||||||||
| 111 | 3 | subtype 'Cfn::Resource::Properties::AWS::DynamoDB::Table::ContributorInsightsSpecification', | |||||||||
| 112 | as 'Cfn::Value'; | ||||||||||
| 113 | |||||||||||
| 114 | coerce 'Cfn::Resource::Properties::AWS::DynamoDB::Table::ContributorInsightsSpecification', | ||||||||||
| 115 | from 'HashRef', | ||||||||||
| 116 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 117 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 118 | 0 | return $f | |||||||||
| 119 | } else { | ||||||||||
| 120 | 0 | return Cfn::Resource::Properties::Object::AWS::DynamoDB::Table::ContributorInsightsSpecification->new( %$_ ); | |||||||||
| 121 | } | ||||||||||
| 122 | 3 | }; | |||||||||
| 123 | |||||||||||
| 124 | 3 | package Cfn::Resource::Properties::Object::AWS::DynamoDB::Table::ContributorInsightsSpecification { | |||||||||
| 125 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 126 | 3 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 127 | 3 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 128 | |||||||||||
| 129 | 3 | has Enabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 130 | } | ||||||||||
| 131 | |||||||||||
| 132 | 3 | subtype 'Cfn::Resource::Properties::AWS::DynamoDB::Table::TimeToLiveSpecification', | |||||||||
| 133 | as 'Cfn::Value'; | ||||||||||
| 134 | |||||||||||
| 135 | coerce 'Cfn::Resource::Properties::AWS::DynamoDB::Table::TimeToLiveSpecification', | ||||||||||
| 136 | from 'HashRef', | ||||||||||
| 137 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 138 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 139 | 0 | return $f | |||||||||
| 140 | } else { | ||||||||||
| 141 | 0 | return Cfn::Resource::Properties::Object::AWS::DynamoDB::Table::TimeToLiveSpecification->new( %$_ ); | |||||||||
| 142 | } | ||||||||||
| 143 | 3 | }; | |||||||||
| 144 | |||||||||||
| 145 | 3 | package Cfn::Resource::Properties::Object::AWS::DynamoDB::Table::TimeToLiveSpecification { | |||||||||
| 146 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 147 | 3 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 148 | 3 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 149 | |||||||||||
| 150 | 3 | has AttributeName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 151 | 3 | has Enabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 152 | } | ||||||||||
| 153 | |||||||||||
| 154 | 3 | subtype 'Cfn::Resource::Properties::AWS::DynamoDB::Table::StreamSpecification', | |||||||||
| 155 | as 'Cfn::Value'; | ||||||||||
| 156 | |||||||||||
| 157 | coerce 'Cfn::Resource::Properties::AWS::DynamoDB::Table::StreamSpecification', | ||||||||||
| 158 | from 'HashRef', | ||||||||||
| 159 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 160 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 161 | 0 | return $f | |||||||||
| 162 | } else { | ||||||||||
| 163 | 0 | return Cfn::Resource::Properties::Object::AWS::DynamoDB::Table::StreamSpecification->new( %$_ ); | |||||||||
| 164 | } | ||||||||||
| 165 | 3 | }; | |||||||||
| 166 | |||||||||||
| 167 | 3 | package Cfn::Resource::Properties::Object::AWS::DynamoDB::Table::StreamSpecification { | |||||||||
| 168 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 169 | 3 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 170 | 3 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 171 | |||||||||||
| 172 | 3 | has StreamViewType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 173 | } | ||||||||||
| 174 | |||||||||||
| 175 | 3 | subtype 'Cfn::Resource::Properties::AWS::DynamoDB::Table::SSESpecification', | |||||||||
| 176 | as 'Cfn::Value'; | ||||||||||
| 177 | |||||||||||
| 178 | coerce 'Cfn::Resource::Properties::AWS::DynamoDB::Table::SSESpecification', | ||||||||||
| 179 | from 'HashRef', | ||||||||||
| 180 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 181 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 182 | 0 | return $f | |||||||||
| 183 | } else { | ||||||||||
| 184 | 0 | return Cfn::Resource::Properties::Object::AWS::DynamoDB::Table::SSESpecification->new( %$_ ); | |||||||||
| 185 | } | ||||||||||
| 186 | 3 | }; | |||||||||
| 187 | |||||||||||
| 188 | 3 | package Cfn::Resource::Properties::Object::AWS::DynamoDB::Table::SSESpecification { | |||||||||
| 189 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 190 | 3 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 191 | 3 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 192 | |||||||||||
| 193 | 3 | has KMSMasterKeyId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 194 | 3 | has SSEEnabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 195 | 3 | has SSEType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 196 | } | ||||||||||
| 197 | |||||||||||
| 198 | 3 | subtype 'Cfn::Resource::Properties::AWS::DynamoDB::Table::PointInTimeRecoverySpecification', | |||||||||
| 199 | as 'Cfn::Value'; | ||||||||||
| 200 | |||||||||||
| 201 | coerce 'Cfn::Resource::Properties::AWS::DynamoDB::Table::PointInTimeRecoverySpecification', | ||||||||||
| 202 | from 'HashRef', | ||||||||||
| 203 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 204 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 205 | 0 | return $f | |||||||||
| 206 | } else { | ||||||||||
| 207 | 0 | return Cfn::Resource::Properties::Object::AWS::DynamoDB::Table::PointInTimeRecoverySpecification->new( %$_ ); | |||||||||
| 208 | } | ||||||||||
| 209 | 3 | }; | |||||||||
| 210 | |||||||||||
| 211 | 3 | package Cfn::Resource::Properties::Object::AWS::DynamoDB::Table::PointInTimeRecoverySpecification { | |||||||||
| 212 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 213 | 3 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 214 | 3 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 215 | |||||||||||
| 216 | 3 | has PointInTimeRecoveryEnabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 217 | } | ||||||||||
| 218 | subtype 'ArrayOfCfn::Resource::Properties::AWS::DynamoDB::Table::LocalSecondaryIndex', | ||||||||||
| 219 | as 'Cfn::Value', | ||||||||||
| 220 | 4 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 221 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 222 | |||||||||||
| 223 | coerce 'ArrayOfCfn::Resource::Properties::AWS::DynamoDB::Table::LocalSecondaryIndex', | ||||||||||
| 224 | from 'HashRef', | ||||||||||
| 225 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 226 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 227 | 0 | return $f | |||||||||
| 228 | } else { | ||||||||||
| 229 | 0 | die 'Only accepts functions'; | |||||||||
| 230 | } | ||||||||||
| 231 | }, | ||||||||||
| 232 | from 'ArrayRef', | ||||||||||
| 233 | 4 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 234 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 235 | map { | ||||||||||
| 236 | 4 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::DynamoDB::Table::LocalSecondaryIndex')->coerce($_) | |||||||||
| 237 | } @$_ | ||||||||||
| 238 | ]); | ||||||||||
| 239 | 3 | }; | |||||||||
| 240 | |||||||||||
| 241 | 3 | subtype 'Cfn::Resource::Properties::AWS::DynamoDB::Table::LocalSecondaryIndex', | |||||||||
| 242 | as 'Cfn::Value'; | ||||||||||
| 243 | |||||||||||
| 244 | coerce 'Cfn::Resource::Properties::AWS::DynamoDB::Table::LocalSecondaryIndex', | ||||||||||
| 245 | from 'HashRef', | ||||||||||
| 246 | 4 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
| |||||||||||
| 247 | 4 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 248 | 0 | return $f | |||||||||
| 249 | } else { | ||||||||||
| 250 | 4 | return Cfn::Resource::Properties::Object::AWS::DynamoDB::Table::LocalSecondaryIndex->new( %$_ ); | |||||||||
| 251 | } | ||||||||||
| 252 | 3 | }; | |||||||||
| 253 | |||||||||||
| 254 | 3 | package Cfn::Resource::Properties::Object::AWS::DynamoDB::Table::LocalSecondaryIndex { | |||||||||
| 255 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 256 | 3 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 257 | 3 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 258 | |||||||||||
| 259 | 3 | has IndexName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 260 | 3 | has KeySchema => (isa => 'ArrayOfCfn::Resource::Properties::AWS::DynamoDB::Table::KeySchema', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 261 | 3 | has Projection => (isa => 'Cfn::Resource::Properties::AWS::DynamoDB::Table::Projection', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 262 | } | ||||||||||
| 263 | |||||||||||
| 264 | 3 | subtype 'Cfn::Resource::Properties::AWS::DynamoDB::Table::KinesisStreamSpecification', | |||||||||
| 265 | as 'Cfn::Value'; | ||||||||||
| 266 | |||||||||||
| 267 | coerce 'Cfn::Resource::Properties::AWS::DynamoDB::Table::KinesisStreamSpecification', | ||||||||||
| 268 | from 'HashRef', | ||||||||||
| 269 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 270 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 271 | 0 | return $f | |||||||||
| 272 | } else { | ||||||||||
| 273 | 0 | return Cfn::Resource::Properties::Object::AWS::DynamoDB::Table::KinesisStreamSpecification->new( %$_ ); | |||||||||
| 274 | } | ||||||||||
| 275 | 3 | }; | |||||||||
| 276 | |||||||||||
| 277 | 3 | package Cfn::Resource::Properties::Object::AWS::DynamoDB::Table::KinesisStreamSpecification { | |||||||||
| 278 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 279 | 3 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 280 | 3 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 281 | |||||||||||
| 282 | 3 | has StreamArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 283 | } | ||||||||||
| 284 | subtype 'ArrayOfCfn::Resource::Properties::AWS::DynamoDB::Table::GlobalSecondaryIndex', | ||||||||||
| 285 | as 'Cfn::Value', | ||||||||||
| 286 | 6 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 287 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 288 | |||||||||||
| 289 | coerce 'ArrayOfCfn::Resource::Properties::AWS::DynamoDB::Table::GlobalSecondaryIndex', | ||||||||||
| 290 | from 'HashRef', | ||||||||||
| 291 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 292 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 293 | 0 | return $f | |||||||||
| 294 | } else { | ||||||||||
| 295 | 0 | die 'Only accepts functions'; | |||||||||
| 296 | } | ||||||||||
| 297 | }, | ||||||||||
| 298 | from 'ArrayRef', | ||||||||||
| 299 | 6 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 300 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 301 | map { | ||||||||||
| 302 | 6 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::DynamoDB::Table::GlobalSecondaryIndex')->coerce($_) | |||||||||
| 303 | } @$_ | ||||||||||
| 304 | ]); | ||||||||||
| 305 | 3 | }; | |||||||||
| 306 | |||||||||||
| 307 | 3 | subtype 'Cfn::Resource::Properties::AWS::DynamoDB::Table::GlobalSecondaryIndex', | |||||||||
| 308 | as 'Cfn::Value'; | ||||||||||
| 309 | |||||||||||
| 310 | coerce 'Cfn::Resource::Properties::AWS::DynamoDB::Table::GlobalSecondaryIndex', | ||||||||||
| 311 | from 'HashRef', | ||||||||||
| 312 | 8 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
| |||||||||||
| 313 | 8 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 314 | 0 | return $f | |||||||||
| 315 | } else { | ||||||||||
| 316 | 8 | return Cfn::Resource::Properties::Object::AWS::DynamoDB::Table::GlobalSecondaryIndex->new( %$_ ); | |||||||||
| 317 | } | ||||||||||
| 318 | 3 | }; | |||||||||
| 319 | |||||||||||
| 320 | 3 | package Cfn::Resource::Properties::Object::AWS::DynamoDB::Table::GlobalSecondaryIndex { | |||||||||
| 321 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 322 | 3 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 323 | 3 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 324 | |||||||||||
| 325 | 3 | has ContributorInsightsSpecification => (isa => 'Cfn::Resource::Properties::AWS::DynamoDB::Table::ContributorInsightsSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 326 | 3 | has IndexName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 327 | 3 | has KeySchema => (isa => 'ArrayOfCfn::Resource::Properties::AWS::DynamoDB::Table::KeySchema', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 328 | 3 | has Projection => (isa => 'Cfn::Resource::Properties::AWS::DynamoDB::Table::Projection', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 329 | 3 | has ProvisionedThroughput => (isa => 'Cfn::Resource::Properties::AWS::DynamoDB::Table::ProvisionedThroughput', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 330 | } | ||||||||||
| 331 | subtype 'ArrayOfCfn::Resource::Properties::AWS::DynamoDB::Table::AttributeDefinition', | ||||||||||
| 332 | as 'Cfn::Value', | ||||||||||
| 333 | 12 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 334 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 335 | |||||||||||
| 336 | coerce 'ArrayOfCfn::Resource::Properties::AWS::DynamoDB::Table::AttributeDefinition', | ||||||||||
| 337 | from 'HashRef', | ||||||||||
| 338 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 339 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 340 | 0 | return $f | |||||||||
| 341 | } else { | ||||||||||
| 342 | 0 | die 'Only accepts functions'; | |||||||||
| 343 | } | ||||||||||
| 344 | }, | ||||||||||
| 345 | from 'ArrayRef', | ||||||||||
| 346 | 12 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 347 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 348 | map { | ||||||||||
| 349 | 12 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::DynamoDB::Table::AttributeDefinition')->coerce($_) | |||||||||
| 350 | } @$_ | ||||||||||
| 351 | ]); | ||||||||||
| 352 | 3 | }; | |||||||||
| 353 | |||||||||||
| 354 | 3 | subtype 'Cfn::Resource::Properties::AWS::DynamoDB::Table::AttributeDefinition', | |||||||||
| 355 | as 'Cfn::Value'; | ||||||||||
| 356 | |||||||||||
| 357 | coerce 'Cfn::Resource::Properties::AWS::DynamoDB::Table::AttributeDefinition', | ||||||||||
| 358 | from 'HashRef', | ||||||||||
| 359 | 28 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
| |||||||||||
| 360 | 28 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 361 | 0 | return $f | |||||||||
| 362 | } else { | ||||||||||
| 363 | 28 | return Cfn::Resource::Properties::Object::AWS::DynamoDB::Table::AttributeDefinition->new( %$_ ); | |||||||||
| 364 | } | ||||||||||
| 365 | 3 | }; | |||||||||
| 366 | |||||||||||
| 367 | 3 | package Cfn::Resource::Properties::Object::AWS::DynamoDB::Table::AttributeDefinition { | |||||||||
| 368 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 369 | 3 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 370 | 3 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 371 | |||||||||||
| 372 | 3 | has AttributeName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 373 | 3 | has AttributeType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 374 | } | ||||||||||
| 375 | |||||||||||
| 376 | 3 | package Cfn::Resource::Properties::AWS::DynamoDB::Table { | |||||||||
| 377 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 378 | 3 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 379 | 3 | extends 'Cfn::Resource::Properties'; | |||||||||
| 380 | |||||||||||
| 381 | 3 | has AttributeDefinitions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::DynamoDB::Table::AttributeDefinition', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Conditional'); | |||||||||
| 382 | 3 | has BillingMode => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 383 | 3 | has ContributorInsightsSpecification => (isa => 'Cfn::Resource::Properties::AWS::DynamoDB::Table::ContributorInsightsSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 384 | 3 | has GlobalSecondaryIndexes => (isa => 'ArrayOfCfn::Resource::Properties::AWS::DynamoDB::Table::GlobalSecondaryIndex', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 385 | 3 | has KeySchema => (isa => 'ArrayOfCfn::Resource::Properties::AWS::DynamoDB::Table::KeySchema', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 386 | 3 | has KinesisStreamSpecification => (isa => 'Cfn::Resource::Properties::AWS::DynamoDB::Table::KinesisStreamSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 387 | 3 | has LocalSecondaryIndexes => (isa => 'ArrayOfCfn::Resource::Properties::AWS::DynamoDB::Table::LocalSecondaryIndex', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 388 | 3 | has PointInTimeRecoverySpecification => (isa => 'Cfn::Resource::Properties::AWS::DynamoDB::Table::PointInTimeRecoverySpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 389 | 3 | has ProvisionedThroughput => (isa => 'Cfn::Resource::Properties::AWS::DynamoDB::Table::ProvisionedThroughput', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 390 | 3 | has SSESpecification => (isa => 'Cfn::Resource::Properties::AWS::DynamoDB::Table::SSESpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 391 | 3 | has StreamSpecification => (isa => 'Cfn::Resource::Properties::AWS::DynamoDB::Table::StreamSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 392 | 3 | has TableName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 393 | 3 | has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 394 | 3 | has TimeToLiveSpecification => (isa => 'Cfn::Resource::Properties::AWS::DynamoDB::Table::TimeToLiveSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 395 | } | ||||||||||
| 396 | |||||||||||
| 397 | 3 | 1; | |||||||||
| 398 | ### main pod documentation begin ### | ||||||||||
| 399 | |||||||||||
| 400 | =encoding UTF-8 | ||||||||||
| 401 | |||||||||||
| 402 | =head1 NAME | ||||||||||
| 403 | |||||||||||
| 404 | Cfn::Resource::AWS::DynamoDB::Table - Cfn resource for AWS::DynamoDB::Table | ||||||||||
| 405 | |||||||||||
| 406 | =head1 DESCRIPTION | ||||||||||
| 407 | |||||||||||
| 408 | This module implements a Perl module that represents the CloudFormation object AWS::DynamoDB::Table. | ||||||||||
| 409 | |||||||||||
| 410 | See L<Cfn> for more information on how to use it. | ||||||||||
| 411 | |||||||||||
| 412 | =head1 AUTHOR | ||||||||||
| 413 | |||||||||||
| 414 | Jose Luis Martinez | ||||||||||
| 415 | CAPSiDE | ||||||||||
| 416 | jlmartinez@capside.com | ||||||||||
| 417 | |||||||||||
| 418 | =head1 COPYRIGHT and LICENSE | ||||||||||
| 419 | |||||||||||
| 420 | Copyright (c) 2013 by CAPSiDE | ||||||||||
| 421 | This code is distributed under the Apache 2 License. The full text of the | ||||||||||
| 422 | license can be found in the LICENSE file included with this module. | ||||||||||
| 423 | |||||||||||
| 424 | =cut | ||||||||||