blib/lib/Paws/AppRunner/CreateAutoScalingConfiguration.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::AppRunner::CreateAutoScalingConfiguration;
3 use Moose;
4 has AutoScalingConfigurationName => (is => 'ro', isa => 'Str', required => 1);
5 has MaxConcurrency => (is => 'ro', isa => 'Int');
6 has MaxSize => (is => 'ro', isa => 'Int');
7 has MinSize => (is => 'ro', isa => 'Int');
8 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::AppRunner::Tag]');
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateAutoScalingConfiguration');
13 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::AppRunner::CreateAutoScalingConfigurationResponse');
14 class_has _result_key => (isa => 'Str', is => 'ro');
15 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::AppRunner::CreateAutoScalingConfiguration - Arguments for method CreateAutoScalingConfiguration on L<Paws::AppRunner>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method CreateAutoScalingConfiguration on the
26 L<AWS App Runner|Paws::AppRunner> service. Use the attributes of this class
27 as arguments to method CreateAutoScalingConfiguration.
28  
29 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateAutoScalingConfiguration.
30  
31 =head1 SYNOPSIS
32  
33 my $apprunner = Paws->service('AppRunner');
34 my $CreateAutoScalingConfigurationResponse =
35 $apprunner->CreateAutoScalingConfiguration(
36 AutoScalingConfigurationName => 'MyAutoScalingConfigurationName',
37 MaxConcurrency => 1, # OPTIONAL
38 MaxSize => 1, # OPTIONAL
39 MinSize => 1, # OPTIONAL
40 Tags => [
41 {
42 Key => 'MyTagKey', # min: 1, max: 128; OPTIONAL
43 Value => 'MyTagValue', # max: 256; OPTIONAL
44 },
45 ...
46 ], # OPTIONAL
47 );
48  
49 # Results:
50 my $AutoScalingConfiguration =
51 $CreateAutoScalingConfigurationResponse->AutoScalingConfiguration;
52  
53 # Returns a L<Paws::AppRunner::CreateAutoScalingConfigurationResponse> object.
54  
55 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.
56 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/apprunner/CreateAutoScalingConfiguration>
57  
58 =head1 ATTRIBUTES
59  
60  
61 =head2 B<REQUIRED> AutoScalingConfigurationName => Str
62  
63 A name for the auto scaling configuration. When you use it for the
64 first time in an AWS Region, App Runner creates revision number C<1> of
65 this name. When you use the same name in subsequent calls, App Runner
66 creates incremental revisions of the configuration.
67  
68  
69  
70 =head2 MaxConcurrency => Int
71  
72 The maximum number of concurrent requests that you want an instance to
73 process. If the number of concurrent requests exceeds this limit, App
74 Runner scales up your service.
75  
76 Default: C<100>
77  
78  
79  
80 =head2 MaxSize => Int
81  
82 The maximum number of instances that your service scales up to. At most
83 C<MaxSize> instances actively serve traffic for your service.
84  
85 Default: C<25>
86  
87  
88  
89 =head2 MinSize => Int
90  
91 The minimum number of instances that App Runner provisions for your
92 service. The service always has at least C<MinSize> provisioned
93 instances. Some of them actively serve traffic. The rest of them
94 (provisioned and inactive instances) are a cost-effective compute
95 capacity reserve and are ready to be quickly activated. You pay for
96 memory usage of all the provisioned instances. You pay for CPU usage of
97 only the active subset.
98  
99 App Runner temporarily doubles the number of provisioned instances
100 during deployments, to maintain the same capacity for both old and new
101 code.
102  
103 Default: C<1>
104  
105  
106  
107 =head2 Tags => ArrayRef[L<Paws::AppRunner::Tag>]
108  
109 A list of metadata items that you can associate with your auto scaling
110 configuration resource. A tag is a key-value pair.
111  
112  
113  
114  
115 =head1 SEE ALSO
116  
117 This class forms part of L<Paws>, documenting arguments for method CreateAutoScalingConfiguration in L<Paws::AppRunner>
118  
119 =head1 BUGS and CONTRIBUTIONS
120  
121 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
122  
123 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
124  
125 =cut
126