blib/lib/Paws/CodePipeline/UpdatePipeline.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::CodePipeline::UpdatePipeline;
3 use Moose;
4 has Pipeline => (is => 'ro', isa => 'Paws::CodePipeline::PipelineDeclaration', traits => ['NameInRequest'], request_name => 'pipeline' , required => 1);
5  
6 use MooseX::ClassAttribute;
7  
8 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdatePipeline');
9 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CodePipeline::UpdatePipelineOutput');
10 class_has _result_key => (isa => 'Str', is => 'ro');
11 1;
12  
13 ### main pod documentation begin ###
14  
15 =head1 NAME
16  
17 Paws::CodePipeline::UpdatePipeline - Arguments for method UpdatePipeline on L<Paws::CodePipeline>
18  
19 =head1 DESCRIPTION
20  
21 This class represents the parameters used for calling the method UpdatePipeline on the
22 L<AWS CodePipeline|Paws::CodePipeline> service. Use the attributes of this class
23 as arguments to method UpdatePipeline.
24  
25 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdatePipeline.
26  
27 =head1 SYNOPSIS
28  
29 my $codepipeline = Paws->service('CodePipeline');
30 my $UpdatePipelineOutput = $codepipeline->UpdatePipeline(
31 Pipeline => {
32 Name => 'MyPipelineName', # min: 1, max: 100
33 RoleArn => 'MyRoleArn', # max: 1024
34 Stages => [
35 {
36 Actions => [
37 {
38 ActionTypeId => {
39 Category => 'Source'
40 , # values: Source, Build, Deploy, Test, Invoke, Approval
41 Owner => 'AWS', # values: AWS, ThirdParty, Custom
42 Provider => 'MyActionProvider', # min: 1, max: 35
43 Version => 'MyVersion', # min: 1, max: 9
44  
45 },
46 Name => 'MyActionName', # min: 1, max: 100
47 Configuration => {
48 'MyActionConfigurationKey' => 'MyActionConfigurationValue'
49 , # key: min: 1, max: 50, value: min: 1, max: 1000
50 }, # OPTIONAL
51 InputArtifacts => [
52 {
53 Name => 'MyArtifactName', # min: 1, max: 100
54  
55 },
56 ...
57 ], # OPTIONAL
58 Namespace => 'MyActionNamespace', # min: 1, max: 100; OPTIONAL
59 OutputArtifacts => [
60 {
61 Name => 'MyArtifactName', # min: 1, max: 100
62  
63 },
64 ...
65 ], # OPTIONAL
66 Region => 'MyAWSRegionName', # min: 4, max: 30; OPTIONAL
67 RoleArn => 'MyRoleArn', # max: 1024
68 RunOrder => 1, # min: 1, max: 999; OPTIONAL
69 },
70 ...
71 ],
72 Name => 'MyStageName', # min: 1, max: 100
73 Blockers => [
74 {
75 Name => 'MyBlockerName', # min: 1, max: 100
76 Type => 'Schedule', # values: Schedule
77  
78 },
79 ...
80 ], # OPTIONAL
81 },
82 ...
83 ],
84 ArtifactStore => {
85 Location => 'MyArtifactStoreLocation', # min: 3, max: 63
86 Type => 'S3', # values: S3
87 EncryptionKey => {
88 Id => 'MyEncryptionKeyId', # min: 1, max: 400
89 Type => 'KMS', # values: KMS
90  
91 }, # OPTIONAL
92 }, # OPTIONAL
93 ArtifactStores => {
94 'MyAWSRegionName' => {
95 Location => 'MyArtifactStoreLocation', # min: 3, max: 63
96 Type => 'S3', # values: S3
97 EncryptionKey => {
98 Id => 'MyEncryptionKeyId', # min: 1, max: 400
99 Type => 'KMS', # values: KMS
100  
101 }, # OPTIONAL
102 }, # key: min: 4, max: 30; OPTIONAL, value: OPTIONAL
103 }, # OPTIONAL
104 Version => 1, # min: 1; OPTIONAL
105 },
106  
107 );
108  
109 # Results:
110 my $Pipeline = $UpdatePipelineOutput->Pipeline;
111  
112 # Returns a L<Paws::CodePipeline::UpdatePipelineOutput> object.
113  
114 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.
115 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/codepipeline/UpdatePipeline>
116  
117 =head1 ATTRIBUTES
118  
119  
120 =head2 B<REQUIRED> Pipeline => L<Paws::CodePipeline::PipelineDeclaration>
121  
122 The name of the pipeline to be updated.
123  
124  
125  
126  
127 =head1 SEE ALSO
128  
129 This class forms part of L<Paws>, documenting arguments for method UpdatePipeline in L<Paws::CodePipeline>
130  
131 =head1 BUGS and CONTRIBUTIONS
132  
133 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
134  
135 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
136  
137 =cut
138