« Cfn/Resource/AWS/Serverless/Function.pm
↑ Summary
Cfn/Resource/AWS/CloudFormation/WaitConditionHandle.pm »
| 1 | # AWS::IAM::Policy generated from spec 5.3.0 | ||
| 2 | 6 | ▶ | use Moose::Util::TypeConstraints; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | coerce 'Cfn::Resource::Properties::AWS::IAM::Policy', | ||
| 5 | from 'HashRef', | ||
| 6 | 23 | ▶ | via { Cfn::Resource::Properties::AWS::IAM::Policy->new( %$_ ) }; |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 6 | package Cfn::Resource::AWS::IAM::Policy { | |
| 9 | 6 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 6 | extends 'Cfn::Resource'; | |
| 11 | 6 | has Properties => (isa => 'Cfn::Resource::Properties::AWS::IAM::Policy', is => 'rw', coerce => 1); | |
| 12 | |||
| 13 | sub AttributeList { | ||
| 14 | 1 | ▶ | [ ] |
|
Subroutine
AttributeList: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 15 | } | ||
| 16 | sub supported_regions { | ||
| 17 | 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-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' ] |
|
Subroutine
supported_regions: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 18 | } | ||
| 19 | sub addStatement { | ||
| 20 | 1 | ▶ | my ($self, @args) = @_; |
|
Subroutine
addStatement: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 21 | 1 | require Moose::Util::TypeConstraints; | |
| 22 | 1 | my @statements = map { Moose::Util::TypeConstraints::find_type_constraint('Cfn::Value')->coerce($_) } @args; | |
| 23 | 1 | push @{ $self->Properties->PolicyDocument->Value->{Statement}->Value }, @statements; | |
| 24 | } | ||
| 25 | |||
| 26 | } | ||
| 27 | |||
| 28 | |||
| 29 | |||
| 30 | 6 | package Cfn::Resource::Properties::AWS::IAM::Policy { | |
| 31 | 6 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 32 | 6 | ▶ | use MooseX::StrictConstructor; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 33 | 6 | extends 'Cfn::Resource::Properties'; | |
| 34 | |||
| 35 | 6 | has Groups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |
| 36 | 6 | has PolicyDocument => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |
| 37 | 6 | has PolicyName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |
| 38 | 6 | has Roles => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |
| 39 | 6 | has Users => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |
| 40 | } | ||
| 41 | |||
| 42 | 6 | 1; | |