File Coverage

blib/lib/Paws/EC2/CreateSecurityGroup.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::EC2::CreateSecurityGroup;
3 1     1   284 use Moose;
  1         3  
  1         5  
4             has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'GroupDescription' , required => 1);
5             has DryRun => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'dryRun' );
6             has GroupName => (is => 'ro', isa => 'Str', required => 1);
7             has VpcId => (is => 'ro', isa => 'Str');
8              
9 1     1   5296 use MooseX::ClassAttribute;
  1         4  
  1         7  
10              
11             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateSecurityGroup');
12             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::EC2::CreateSecurityGroupResult');
13             class_has _result_key => (isa => 'Str', is => 'ro');
14             1;
15              
16             ### main pod documentation begin ###
17              
18             =head1 NAME
19              
20             Paws::EC2::CreateSecurityGroup - Arguments for method CreateSecurityGroup on Paws::EC2
21              
22             =head1 DESCRIPTION
23              
24             This class represents the parameters used for calling the method CreateSecurityGroup on the
25             Amazon Elastic Compute Cloud service. Use the attributes of this class
26             as arguments to method CreateSecurityGroup.
27              
28             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateSecurityGroup.
29              
30             As an example:
31              
32             $service_obj->CreateSecurityGroup(Att1 => $value1, Att2 => $value2, ...);
33              
34             Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
35              
36             =head1 ATTRIBUTES
37              
38              
39             =head2 B<REQUIRED> Description => Str
40              
41             A description for the security group. This is informational only.
42              
43             Constraints: Up to 255 characters in length
44              
45             Constraints for EC2-Classic: ASCII characters
46              
47             Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and
48             ._-:/()#,@[]+=&;{}!$*
49              
50              
51              
52             =head2 DryRun => Bool
53              
54             Checks whether you have the required permissions for the action,
55             without actually making the request, and provides an error response. If
56             you have the required permissions, the error response is
57             C<DryRunOperation>. Otherwise, it is C<UnauthorizedOperation>.
58              
59              
60              
61             =head2 B<REQUIRED> GroupName => Str
62              
63             The name of the security group.
64              
65             Constraints: Up to 255 characters in length
66              
67             Constraints for EC2-Classic: ASCII characters
68              
69             Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and
70             ._-:/()#,@[]+=&;{}!$*
71              
72              
73              
74             =head2 VpcId => Str
75              
76             [EC2-VPC] The ID of the VPC. Required for EC2-VPC.
77              
78              
79              
80              
81             =head1 SEE ALSO
82              
83             This class forms part of L<Paws>, documenting arguments for method CreateSecurityGroup in L<Paws::EC2>
84              
85             =head1 BUGS and CONTRIBUTIONS
86              
87             The source code is located here: https://github.com/pplu/aws-sdk-perl
88              
89             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
90              
91             =cut
92