blib/lib/Paws/Proton/CreateEnvironmentAccountConnection.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 19 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Proton::CreateEnvironmentAccountConnection;
3 use Moose;
4 has ClientToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'clientToken' );
5 has EnvironmentName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'environmentName' , required => 1);
6 has ManagementAccountId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'managementAccountId' , required => 1);
7 has RoleArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'roleArn' , required => 1);
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateEnvironmentAccountConnection');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Proton::CreateEnvironmentAccountConnectionOutput');
13 class_has _result_key => (isa => 'Str', is => 'ro');
14 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::Proton::CreateEnvironmentAccountConnection - Arguments for method CreateEnvironmentAccountConnection on L<Paws::Proton>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method CreateEnvironmentAccountConnection on the
25 L<AWS Proton|Paws::Proton> service. Use the attributes of this class
26 as arguments to method CreateEnvironmentAccountConnection.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateEnvironmentAccountConnection.
29  
30 =head1 SYNOPSIS
31  
32 my $proton = Paws->service('Proton');
33 my $CreateEnvironmentAccountConnectionOutput =
34 $proton->CreateEnvironmentAccountConnection(
35 EnvironmentName => 'MyResourceName',
36 ManagementAccountId => 'MyAwsAccountId',
37 RoleArn => 'MyArn',
38 ClientToken => 'MyClientToken', # OPTIONAL
39 );
40  
41 # Results:
42 my $EnvironmentAccountConnection =
43 $CreateEnvironmentAccountConnectionOutput->EnvironmentAccountConnection;
44  
45 # Returns a L<Paws::Proton::CreateEnvironmentAccountConnectionOutput> object.
46  
47 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.
48 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/proton/CreateEnvironmentAccountConnection>
49  
50 =head1 ATTRIBUTES
51  
52  
53 =head2 ClientToken => Str
54  
55 When included, if two identicial requests are made with the same client
56 token, AWS Proton returns the environment account connection that the
57 first request created.
58  
59  
60  
61 =head2 B<REQUIRED> EnvironmentName => Str
62  
63 The name of the AWS Proton environment that's created in the associated
64 management account.
65  
66  
67  
68 =head2 B<REQUIRED> ManagementAccountId => Str
69  
70 The ID of the management account that accepts or rejects the
71 environment account connection. You create an manage the AWS Proton
72 environment in this account. If the management account accepts the
73 environment account connection, AWS Proton can use the associated IAM
74 role to provision environment infrastructure resources in the
75 associated environment account.
76  
77  
78  
79 =head2 B<REQUIRED> RoleArn => Str
80  
81 The Amazon Resource Name (ARN) of the IAM service role that's created
82 in the environment account. AWS Proton uses this role to provision
83 infrastructure resources in the associated environment account.
84  
85  
86  
87  
88 =head1 SEE ALSO
89  
90 This class forms part of L<Paws>, documenting arguments for method CreateEnvironmentAccountConnection in L<Paws::Proton>
91  
92 =head1 BUGS and CONTRIBUTIONS
93  
94 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
95  
96 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
97  
98 =cut
99