blib/lib/Paws/CodeStarConnections/CreateConnection.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 15 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::CodeStarConnections::CreateConnection;
3 use Moose;
4 has ConnectionName => (is => 'ro', isa => 'Str', required => 1);
5 has HostArn => (is => 'ro', isa => 'Str');
6 has ProviderType => (is => 'ro', isa => 'Str');
7 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::CodeStarConnections::Tag]');
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateConnection');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CodeStarConnections::CreateConnectionOutput');
13 class_has _result_key => (isa => 'Str', is => 'ro');
14 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::CodeStarConnections::CreateConnection - Arguments for method CreateConnection on L<Paws::CodeStarConnections>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method CreateConnection on the
25 L<AWS CodeStar connections|Paws::CodeStarConnections> service. Use the attributes of this class
26 as arguments to method CreateConnection.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateConnection.
29  
30 =head1 SYNOPSIS
31  
32 my $codestar-connections = Paws->service('CodeStarConnections');
33 my $CreateConnectionOutput = $codestar -connections->CreateConnection(
34 ConnectionName => 'MyConnectionName',
35 HostArn => 'MyHostArn', # OPTIONAL
36 ProviderType => 'Bitbucket', # OPTIONAL
37 Tags => [
38 {
39 Key => 'MyTagKey', # min: 1, max: 128
40 Value => 'MyTagValue', # max: 256
41  
42 },
43 ...
44 ], # OPTIONAL
45 );
46  
47 # Results:
48 my $ConnectionArn = $CreateConnectionOutput->ConnectionArn;
49 my $Tags = $CreateConnectionOutput->Tags;
50  
51 # Returns a L<Paws::CodeStarConnections::CreateConnectionOutput> object.
52  
53 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.
54 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/codestar-connections/CreateConnection>
55  
56 =head1 ATTRIBUTES
57  
58  
59 =head2 B<REQUIRED> ConnectionName => Str
60  
61 The name of the connection to be created. The name must be unique in
62 the calling AWS account.
63  
64  
65  
66 =head2 HostArn => Str
67  
68 The Amazon Resource Name (ARN) of the host associated with the
69 connection to be created.
70  
71  
72  
73 =head2 ProviderType => Str
74  
75 The name of the external provider where your third-party code
76 repository is configured.
77  
78 Valid values are: C<"Bitbucket">, C<"GitHub">, C<"GitHubEnterpriseServer">
79  
80 =head2 Tags => ArrayRef[L<Paws::CodeStarConnections::Tag>]
81  
82 The key-value pair to use when tagging the resource.
83  
84  
85  
86  
87 =head1 SEE ALSO
88  
89 This class forms part of L<Paws>, documenting arguments for method CreateConnection in L<Paws::CodeStarConnections>
90  
91 =head1 BUGS and CONTRIBUTIONS
92  
93 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
94  
95 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
96  
97 =cut
98