blib/lib/Paws/CodeStar/CreateProject.pm untested

filter: Statementstmt 0.0% 0 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 25 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::CodeStar::CreateProject;
3 use Moose;
4 has ClientRequestToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'clientRequestToken' );
5 has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description' );
6 has Id => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'id' , required => 1);
7 has Name => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'name' , required => 1);
8 has SourceCode => (is => 'ro', isa => 'ArrayRef[Paws::CodeStar::Code]', traits => ['NameInRequest'], request_name => 'sourceCode' );
9 has Tags => (is => 'ro', isa => 'Paws::CodeStar::Tags', traits => ['NameInRequest'], request_name => 'tags' );
10 has Toolchain => (is => 'ro', isa => 'Paws::CodeStar::Toolchain', traits => ['NameInRequest'], request_name => 'toolchain' );
11  
12 use MooseX::ClassAttribute;
13  
14 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateProject');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CodeStar::CreateProjectResult');
16 class_has _result_key => (isa => 'Str', is => 'ro');
17 1;
18  
19 ### main pod documentation begin ###
20  
21 =head1 NAME
22  
23 Paws::CodeStar::CreateProject - Arguments for method CreateProject on L<Paws::CodeStar>
24  
25 =head1 DESCRIPTION
26  
27 This class represents the parameters used for calling the method CreateProject on the
28 L<AWS CodeStar|Paws::CodeStar> service. Use the attributes of this class
29 as arguments to method CreateProject.
30  
31 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateProject.
32  
33 =head1 SYNOPSIS
34  
35 my $codestar = Paws->service('CodeStar');
36 my $CreateProjectResult = $codestar->CreateProject(
37 Id => 'MyProjectId',
38 Name => 'MyProjectName',
39 ClientRequestToken => 'MyClientRequestToken', # OPTIONAL
40 Description => 'MyProjectDescription', # OPTIONAL
41 SourceCode => [
42 {
43 Destination => {
44 CodeCommit => {
45 Name => 'MyRepositoryName', # min: 1, max: 100
46  
47 }, # OPTIONAL
48 GitHub => {
49 IssuesEnabled => 1,
50 Name => 'MyRepositoryName', # min: 1, max: 100
51 Owner => 'MyRepositoryOwner', # min: 1, max: 100
52 PrivateRepository => 1,
53 Token => 'MyGitHubPersonalToken', # min: 1
54 Type => 'MyRepositoryType',
55 Description =>
56 'MyRepositoryDescription', # min: 1, max: 1000; OPTIONAL
57 }, # OPTIONAL
58 },
59 Source => {
60 S3 => {
61 BucketKey => 'MyBucketKey', # OPTIONAL
62 BucketName => 'MyBucketName', # min: 3, max: 63; OPTIONAL
63 },
64  
65 },
66  
67 },
68 ...
69 ], # OPTIONAL
70 Tags => {
71 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256
72 }, # OPTIONAL
73 Toolchain => {
74 Source => {
75 S3 => {
76 BucketKey => 'MyBucketKey', # OPTIONAL
77 BucketName => 'MyBucketName', # min: 3, max: 63; OPTIONAL
78 },
79  
80 },
81 RoleArn => 'MyRoleArn', # min: 1, max: 1224; OPTIONAL
82 StackParameters => {
83 'MyTemplateParameterKey' => 'MyTemplateParameterValue'
84 , # key: min: 1, max: 30, value: min: 1, max: 100
85 }, # max: 25; OPTIONAL
86 }, # OPTIONAL
87 );
88  
89 # Results:
90 my $Arn = $CreateProjectResult->Arn;
91 my $ClientRequestToken = $CreateProjectResult->ClientRequestToken;
92 my $Id = $CreateProjectResult->Id;
93 my $ProjectTemplateId = $CreateProjectResult->ProjectTemplateId;
94  
95 # Returns a L<Paws::CodeStar::CreateProjectResult> object.
96  
97 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.
98 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/codestar/CreateProject>
99  
100 =head1 ATTRIBUTES
101  
102  
103 =head2 ClientRequestToken => Str
104  
105 A user- or system-generated token that identifies the entity that
106 requested project creation. This token can be used to repeat the
107 request.
108  
109  
110  
111 =head2 Description => Str
112  
113 The description of the project, if any.
114  
115  
116  
117 =head2 B<REQUIRED> Id => Str
118  
119 The ID of the project to be created in AWS CodeStar.
120  
121  
122  
123 =head2 B<REQUIRED> Name => Str
124  
125 The display name for the project to be created in AWS CodeStar.
126  
127  
128  
129 =head2 SourceCode => ArrayRef[L<Paws::CodeStar::Code>]
130  
131 A list of the Code objects submitted with the project request. If this
132 parameter is specified, the request must also include the toolchain
133 parameter.
134  
135  
136  
137 =head2 Tags => L<Paws::CodeStar::Tags>
138  
139 The tags created for the project.
140  
141  
142  
143 =head2 Toolchain => L<Paws::CodeStar::Toolchain>
144  
145 The name of the toolchain template file submitted with the project
146 request. If this parameter is specified, the request must also include
147 the sourceCode parameter.
148  
149  
150  
151  
152 =head1 SEE ALSO
153  
154 This class forms part of L<Paws>, documenting arguments for method CreateProject in L<Paws::CodeStar>
155  
156 =head1 BUGS and CONTRIBUTIONS
157  
158 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
159  
160 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
161  
162 =cut
163