blib/lib/Paws/ImageBuilder/CreateImagePipeline.pm untested

filter: Statementstmt 0.0% 0 / 34 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 36 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::ImageBuilder::CreateImagePipeline;
3 use Moose;
4 has ClientToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'clientToken', required => 1);
5 has ContainerRecipeArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'containerRecipeArn');
6 has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description');
7 has DistributionConfigurationArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'distributionConfigurationArn');
8 has EnhancedImageMetadataEnabled => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'enhancedImageMetadataEnabled');
9 has ImageRecipeArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'imageRecipeArn');
10 has ImageTestsConfiguration => (is => 'ro', isa => 'Paws::ImageBuilder::ImageTestsConfiguration', traits => ['NameInRequest'], request_name => 'imageTestsConfiguration');
11 has InfrastructureConfigurationArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'infrastructureConfigurationArn', required => 1);
12 has Name => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'name', required => 1);
13 has Schedule => (is => 'ro', isa => 'Paws::ImageBuilder::Schedule', traits => ['NameInRequest'], request_name => 'schedule');
14 has Status => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'status');
15 has Tags => (is => 'ro', isa => 'Paws::ImageBuilder::TagMap', traits => ['NameInRequest'], request_name => 'tags');
16  
17 use MooseX::ClassAttribute;
18  
19 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateImagePipeline');
20 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/CreateImagePipeline');
21 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
22 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ImageBuilder::CreateImagePipelineResponse');
23 1;
24  
25 ### main pod documentation begin ###
26  
27 =head1 NAME
28  
29 Paws::ImageBuilder::CreateImagePipeline - Arguments for method CreateImagePipeline on L<Paws::ImageBuilder>
30  
31 =head1 DESCRIPTION
32  
33 This class represents the parameters used for calling the method CreateImagePipeline on the
34 L<EC2 Image Builder|Paws::ImageBuilder> service. Use the attributes of this class
35 as arguments to method CreateImagePipeline.
36  
37 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateImagePipeline.
38  
39 =head1 SYNOPSIS
40  
41 my $imagebuilder = Paws->service('ImageBuilder');
42 my $CreateImagePipelineResponse = $imagebuilder->CreateImagePipeline(
43 ClientToken => 'MyClientToken',
44 InfrastructureConfigurationArn => 'MyInfrastructureConfigurationArn',
45 Name => 'MyResourceName',
46 ContainerRecipeArn => 'MyContainerRecipeArn', # OPTIONAL
47 Description => 'MyNonEmptyString', # OPTIONAL
48 DistributionConfigurationArn =>
49 'MyDistributionConfigurationArn', # OPTIONAL
50 EnhancedImageMetadataEnabled => 1, # OPTIONAL
51 ImageRecipeArn => 'MyImageRecipeArn', # OPTIONAL
52 ImageTestsConfiguration => {
53 ImageTestsEnabled => 1,
54 TimeoutMinutes => 1, # min: 60, max: 1440; OPTIONAL
55 }, # OPTIONAL
56 Schedule => {
57 PipelineExecutionStartCondition => 'EXPRESSION_MATCH_ONLY'
58 , # values: EXPRESSION_MATCH_ONLY, EXPRESSION_MATCH_AND_DEPENDENCY_UPDATES_AVAILABLE; OPTIONAL
59 ScheduleExpression => 'MyNonEmptyString', # min: 1, max: 1024
60 Timezone => 'MyTimezone', # min: 3, max: 100; OPTIONAL
61 }, # OPTIONAL
62 Status => 'DISABLED', # OPTIONAL
63 Tags => {
64 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256
65 }, # OPTIONAL
66 );
67  
68 # Results:
69 my $ClientToken = $CreateImagePipelineResponse->ClientToken;
70 my $ImagePipelineArn = $CreateImagePipelineResponse->ImagePipelineArn;
71 my $RequestId = $CreateImagePipelineResponse->RequestId;
72  
73 # Returns a L<Paws::ImageBuilder::CreateImagePipelineResponse> object.
74  
75 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.
76 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/imagebuilder/CreateImagePipeline>
77  
78 =head1 ATTRIBUTES
79  
80  
81 =head2 B<REQUIRED> ClientToken => Str
82  
83 The idempotency token used to make this request idempotent.
84  
85  
86  
87 =head2 ContainerRecipeArn => Str
88  
89 The Amazon Resource Name (ARN) of the container recipe that is used to
90 configure images created by this container pipeline.
91  
92  
93  
94 =head2 Description => Str
95  
96 The description of the image pipeline.
97  
98  
99  
100 =head2 DistributionConfigurationArn => Str
101  
102 The Amazon Resource Name (ARN) of the distribution configuration that
103 will be used to configure and distribute images created by this image
104 pipeline.
105  
106  
107  
108 =head2 EnhancedImageMetadataEnabled => Bool
109  
110 Collects additional information about the image being created,
111 including the operating system (OS) version and package list. This
112 information is used to enhance the overall experience of using EC2
113 Image Builder. Enabled by default.
114  
115  
116  
117 =head2 ImageRecipeArn => Str
118  
119 The Amazon Resource Name (ARN) of the image recipe that will be used to
120 configure images created by this image pipeline.
121  
122  
123  
124 =head2 ImageTestsConfiguration => L<Paws::ImageBuilder::ImageTestsConfiguration>
125  
126 The image test configuration of the image pipeline.
127  
128  
129  
130 =head2 B<REQUIRED> InfrastructureConfigurationArn => Str
131  
132 The Amazon Resource Name (ARN) of the infrastructure configuration that
133 will be used to build images created by this image pipeline.
134  
135  
136  
137 =head2 B<REQUIRED> Name => Str
138  
139 The name of the image pipeline.
140  
141  
142  
143 =head2 Schedule => L<Paws::ImageBuilder::Schedule>
144  
145 The schedule of the image pipeline.
146  
147  
148  
149 =head2 Status => Str
150  
151 The status of the image pipeline.
152  
153 Valid values are: C<"DISABLED">, C<"ENABLED">
154  
155 =head2 Tags => L<Paws::ImageBuilder::TagMap>
156  
157 The tags of the image pipeline.
158  
159  
160  
161  
162 =head1 SEE ALSO
163  
164 This class forms part of L<Paws>, documenting arguments for method CreateImagePipeline in L<Paws::ImageBuilder>
165  
166 =head1 BUGS and CONTRIBUTIONS
167  
168 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
169  
170 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
171  
172 =cut
173