blib/lib/Paws/Cloud9/CreateEnvironmentMembership.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Cloud9::CreateEnvironmentMembership;
3 use Moose;
4 has EnvironmentId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'environmentId' , required => 1);
5 has Permissions => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'permissions' , required => 1);
6 has UserArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'userArn' , required => 1);
7  
8 use MooseX::ClassAttribute;
9  
10 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateEnvironmentMembership');
11 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Cloud9::CreateEnvironmentMembershipResult');
12 class_has _result_key => (isa => 'Str', is => 'ro');
13 1;
14  
15 ### main pod documentation begin ###
16  
17 =head1 NAME
18  
19 Paws::Cloud9::CreateEnvironmentMembership - Arguments for method CreateEnvironmentMembership on L<Paws::Cloud9>
20  
21 =head1 DESCRIPTION
22  
23 This class represents the parameters used for calling the method CreateEnvironmentMembership on the
24 L<AWS Cloud9|Paws::Cloud9> service. Use the attributes of this class
25 as arguments to method CreateEnvironmentMembership.
26  
27 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateEnvironmentMembership.
28  
29 =head1 SYNOPSIS
30  
31 my $cloud9 = Paws->service('Cloud9');
32 # CreateEnvironmentMembership
33 my $CreateEnvironmentMembershipResult =
34 $cloud9->CreateEnvironmentMembership(
35 'EnvironmentId' => '8d9967e2f0624182b74e7690ad69ebEX',
36 'Permissions' => 'read-write',
37 'UserArn' => 'arn:aws:iam::123456789012:user/AnotherDemoUser'
38 );
39  
40 # Results:
41 my $membership = $CreateEnvironmentMembershipResult->membership;
42  
43 # Returns a L<Paws::Cloud9::CreateEnvironmentMembershipResult> object.
44  
45 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.
46 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/cloud9/CreateEnvironmentMembership>
47  
48 =head1 ATTRIBUTES
49  
50  
51 =head2 B<REQUIRED> EnvironmentId => Str
52  
53 The ID of the environment that contains the environment member you want
54 to add.
55  
56  
57  
58 =head2 B<REQUIRED> Permissions => Str
59  
60 The type of environment member permissions you want to associate with
61 this environment member. Available values include:
62  
63 =over
64  
65 =item *
66  
67 C<read-only>: Has read-only access to the environment.
68  
69 =item *
70  
71 C<read-write>: Has read-write access to the environment.
72  
73 =back
74  
75  
76 Valid values are: C<"read-write">, C<"read-only">
77  
78 =head2 B<REQUIRED> UserArn => Str
79  
80 The Amazon Resource Name (ARN) of the environment member you want to
81 add.
82  
83  
84  
85  
86 =head1 SEE ALSO
87  
88 This class forms part of L<Paws>, documenting arguments for method CreateEnvironmentMembership in L<Paws::Cloud9>
89  
90 =head1 BUGS and CONTRIBUTIONS
91  
92 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
93  
94 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
95  
96 =cut
97