« Cfn/Resource/AWS/ElasticLoadBalancingV2/LoadBalancer.pm
↑ Summary
Cfn/Resource/AWS/Route53/RecordSetGroup.pm »
| 1 | # AWS::EC2::SecurityGroup generated from spec 18.4.0 | ||||||||||
| 2 | 5 | ▶ | use Moose::Util::TypeConstraints; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | coerce 'Cfn::Resource::Properties::AWS::EC2::SecurityGroup', | ||||||||||
| 5 | from 'HashRef', | ||||||||||
| 6 | 132 | ▶ | via { Cfn::Resource::Properties::AWS::EC2::SecurityGroup->new( %$_ ) }; | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 5 | package Cfn::Resource::AWS::EC2::SecurityGroup { | |||||||||
| 9 | 5 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 5 | extends 'Cfn::Resource'; | |||||||||
| 11 | 5 | has Properties => (isa => 'Cfn::Resource::Properties::AWS::EC2::SecurityGroup', is => 'rw', coerce => 1); | |||||||||
| 12 | |||||||||||
| 13 | sub AttributeList { | ||||||||||
| 14 | 1 | ▶ | [ 'GroupId','VpcId' ] | ||||||||
|
Subroutine
AttributeList: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 15 | } | ||||||||||
| 16 | sub supported_regions { | ||||||||||
| 17 | 1 | ▶ | [ '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' ] | ||||||||
|
Subroutine
supported_regions: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 18 | } | ||||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | |||||||||||
| 22 | subtype 'ArrayOfCfn::Resource::Properties::AWS::EC2::SecurityGroup::Ingress', | ||||||||||
| 23 | as 'Cfn::Value', | ||||||||||
| 24 | 119 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 25 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 26 | |||||||||||
| 27 | coerce 'ArrayOfCfn::Resource::Properties::AWS::EC2::SecurityGroup::Ingress', | ||||||||||
| 28 | from 'HashRef', | ||||||||||
| 29 | via { | ||||||||||
| 30 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 31 | 0 | return $f | |||||||||
| 32 | } else { | ||||||||||
| 33 | 0 | die 'Only accepts functions'; | |||||||||
| 34 | } | ||||||||||
| 35 | }, | ||||||||||
| 36 | from 'ArrayRef', | ||||||||||
| 37 | via { | ||||||||||
| 38 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 39 | map { | ||||||||||
| 40 | 119 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EC2::SecurityGroup::Ingress')->coerce($_) | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 41 | } @$_ | ||||||||||
| 42 | ]); | ||||||||||
| 43 | 5 | }; | |||||||||
| 44 | |||||||||||
| 45 | 5 | subtype 'Cfn::Resource::Properties::AWS::EC2::SecurityGroup::Ingress', | |||||||||
| 46 | as 'Cfn::Value'; | ||||||||||
| 47 | |||||||||||
| 48 | coerce 'Cfn::Resource::Properties::AWS::EC2::SecurityGroup::Ingress', | ||||||||||
| 49 | from 'HashRef', | ||||||||||
| 50 | via { | ||||||||||
| 51 | 227 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 52 | 0 | return $f | |||||||||
| 53 | } else { | ||||||||||
| 54 | 227 | return Cfn::Resource::Properties::Object::AWS::EC2::SecurityGroup::Ingress->new( %$_ ); | |||||||||
| 55 | } | ||||||||||
| 56 | 5 | }; | |||||||||
| 57 | |||||||||||
| 58 | 5 | package Cfn::Resource::Properties::Object::AWS::EC2::SecurityGroup::Ingress { | |||||||||
| 59 | 5 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 60 | 5 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 61 | 5 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 62 | |||||||||||
| 63 | 5 | has CidrIp => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 64 | 5 | has CidrIpv6 => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 65 | 5 | has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 66 | 5 | has FromPort => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 67 | 5 | has IpProtocol => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 68 | 5 | has SourcePrefixListId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 69 | 5 | has SourceSecurityGroupId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 70 | 5 | has SourceSecurityGroupName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 71 | 5 | has SourceSecurityGroupOwnerId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 72 | 5 | has ToPort => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 73 | } | ||||||||||
| 74 | subtype 'ArrayOfCfn::Resource::Properties::AWS::EC2::SecurityGroup::Egress', | ||||||||||
| 75 | as 'Cfn::Value', | ||||||||||
| 76 | 16 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 77 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 78 | |||||||||||
| 79 | coerce 'ArrayOfCfn::Resource::Properties::AWS::EC2::SecurityGroup::Egress', | ||||||||||
| 80 | from 'HashRef', | ||||||||||
| 81 | via { | ||||||||||
| 82 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 83 | 0 | return $f | |||||||||
| 84 | } else { | ||||||||||
| 85 | 0 | die 'Only accepts functions'; | |||||||||
| 86 | } | ||||||||||
| 87 | }, | ||||||||||
| 88 | from 'ArrayRef', | ||||||||||
| 89 | via { | ||||||||||
| 90 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 91 | map { | ||||||||||
| 92 | 16 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EC2::SecurityGroup::Egress')->coerce($_) | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 93 | } @$_ | ||||||||||
| 94 | ]); | ||||||||||
| 95 | 5 | }; | |||||||||
| 96 | |||||||||||
| 97 | 5 | subtype 'Cfn::Resource::Properties::AWS::EC2::SecurityGroup::Egress', | |||||||||
| 98 | as 'Cfn::Value'; | ||||||||||
| 99 | |||||||||||
| 100 | coerce 'Cfn::Resource::Properties::AWS::EC2::SecurityGroup::Egress', | ||||||||||
| 101 | from 'HashRef', | ||||||||||
| 102 | via { | ||||||||||
| 103 | 22 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 104 | 0 | return $f | |||||||||
| 105 | } else { | ||||||||||
| 106 | 22 | return Cfn::Resource::Properties::Object::AWS::EC2::SecurityGroup::Egress->new( %$_ ); | |||||||||
| 107 | } | ||||||||||
| 108 | 5 | }; | |||||||||
| 109 | |||||||||||
| 110 | 5 | package Cfn::Resource::Properties::Object::AWS::EC2::SecurityGroup::Egress { | |||||||||
| 111 | 5 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 112 | 5 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 113 | 5 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 114 | |||||||||||
| 115 | 5 | has CidrIp => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 116 | 5 | has CidrIpv6 => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 117 | 5 | has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 118 | 5 | has DestinationPrefixListId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 119 | 5 | has DestinationSecurityGroupId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 120 | 5 | has FromPort => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 121 | 5 | has IpProtocol => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 122 | 5 | has ToPort => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 123 | } | ||||||||||
| 124 | |||||||||||
| 125 | 5 | package Cfn::Resource::Properties::AWS::EC2::SecurityGroup { | |||||||||
| 126 | 5 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 127 | 5 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 128 | 5 | extends 'Cfn::Resource::Properties'; | |||||||||
| 129 | |||||||||||
| 130 | 5 | has GroupDescription => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 131 | 5 | has GroupName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 132 | 5 | has SecurityGroupEgress => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EC2::SecurityGroup::Egress', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 133 | 5 | has SecurityGroupIngress => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EC2::SecurityGroup::Ingress', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 134 | 5 | has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 135 | 5 | has VpcId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 136 | } | ||||||||||
| 137 | |||||||||||
| 138 | 5 | 1; | |||||||||
| 139 | ### main pod documentation begin ### | ||||||||||
| 140 | |||||||||||
| 141 | =encoding UTF-8 | ||||||||||
| 142 | |||||||||||
| 143 | =head1 NAME | ||||||||||
| 144 | |||||||||||
| 145 | Cfn::Resource::AWS::EC2::SecurityGroup - Cfn resource for AWS::EC2::SecurityGroup | ||||||||||
| 146 | |||||||||||
| 147 | =head1 DESCRIPTION | ||||||||||
| 148 | |||||||||||
| 149 | This module implements a Perl module that represents the CloudFormation object AWS::EC2::SecurityGroup. | ||||||||||
| 150 | |||||||||||
| 151 | See L<Cfn> for more information on how to use it. | ||||||||||
| 152 | |||||||||||
| 153 | =head1 AUTHOR | ||||||||||
| 154 | |||||||||||
| 155 | Jose Luis Martinez | ||||||||||
| 156 | CAPSiDE | ||||||||||
| 157 | jlmartinez@capside.com | ||||||||||
| 158 | |||||||||||
| 159 | =head1 COPYRIGHT and LICENSE | ||||||||||
| 160 | |||||||||||
| 161 | Copyright (c) 2013 by CAPSiDE | ||||||||||
| 162 | This code is distributed under the Apache 2 License. The full text of the | ||||||||||
| 163 | license can be found in the LICENSE file included with this module. | ||||||||||
| 164 | |||||||||||
| 165 | =cut | ||||||||||