blib/lib/Paws/IAM/CreateGroup.pm untested

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 13 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::IAM::CreateGroup;
3 use Moose;
4 has GroupName => (is => 'ro', isa => 'Str', required => 1);
5 has Path => (is => 'ro', isa => 'Str');
6  
7 use MooseX::ClassAttribute;
8  
9 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateGroup');
10 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::IAM::CreateGroupResponse');
11 class_has _result_key => (isa => 'Str', is => 'ro', default => 'CreateGroupResult');
12 1;
13  
14 ### main pod documentation begin ###
15  
16 =head1 NAME
17  
18 Paws::IAM::CreateGroup - Arguments for method CreateGroup on L<Paws::IAM>
19  
20 =head1 DESCRIPTION
21  
22 This class represents the parameters used for calling the method CreateGroup on the
23 L<AWS Identity and Access Management|Paws::IAM> service. Use the attributes of this class
24 as arguments to method CreateGroup.
25  
26 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateGroup.
27  
28 =head1 SYNOPSIS
29  
30 my $iam = Paws->service('IAM');
31 # To create an IAM group
32 # The following command creates an IAM group named Admins.
33 my $CreateGroupResponse = $iam->CreateGroup( 'GroupName' => 'Admins' );
34  
35 # Results:
36 my $Group = $CreateGroupResponse->Group;
37  
38 # Returns a L<Paws::IAM::CreateGroupResponse> object.
39  
40 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.
41 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/iam/CreateGroup>
42  
43 =head1 ATTRIBUTES
44  
45  
46 =head2 B<REQUIRED> GroupName => Str
47  
48 The name of the group to create. Do not include the path in this value.
49  
50 IAM user, group, role, and policy names must be unique within the
51 account. Names are not distinguished by case. For example, you cannot
52 create resources named both "MyResource" and "myresource".
53  
54  
55  
56 =head2 Path => Str
57  
58 The path to the group. For more information about paths, see IAM
59 identifiers
60 (https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html)
61 in the I<IAM User Guide>.
62  
63 This parameter is optional. If it is not included, it defaults to a
64 slash (/).
65  
66 This parameter allows (through its regex pattern
67 (http://wikipedia.org/wiki/regex)) a string of characters consisting of
68 either a forward slash (/) by itself or a string that must begin and
69 end with forward slashes. In addition, it can contain any ASCII
70 character from the ! (C<\u0021>) through the DEL character (C<\u007F>),
71 including most punctuation characters, digits, and upper and lowercased
72 letters.
73  
74  
75  
76  
77 =head1 SEE ALSO
78  
79 This class forms part of L<Paws>, documenting arguments for method CreateGroup in L<Paws::IAM>
80  
81 =head1 BUGS and CONTRIBUTIONS
82  
83 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
84  
85 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
86  
87 =cut
88