blib/lib/Paws/AutoScaling/StartInstanceRefresh.pm untested

filter: Statementstmt 0.0% 0 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 14 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::AutoScaling::StartInstanceRefresh;
3 use Moose;
4 has AutoScalingGroupName => (is => 'ro', isa => 'Str', required => 1);
5 has Preferences => (is => 'ro', isa => 'Paws::AutoScaling::RefreshPreferences');
6 has Strategy => (is => 'ro', isa => 'Str');
7  
8 use MooseX::ClassAttribute;
9  
10 class_has _api_call => (isa => 'Str', is => 'ro', default => 'StartInstanceRefresh');
11 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::AutoScaling::StartInstanceRefreshAnswer');
12 class_has _result_key => (isa => 'Str', is => 'ro', default => 'StartInstanceRefreshResult');
13 1;
14  
15 ### main pod documentation begin ###
16  
17 =head1 NAME
18  
19 Paws::AutoScaling::StartInstanceRefresh - Arguments for method StartInstanceRefresh on L<Paws::AutoScaling>
20  
21 =head1 DESCRIPTION
22  
23 This class represents the parameters used for calling the method StartInstanceRefresh on the
24 L<Auto Scaling|Paws::AutoScaling> service. Use the attributes of this class
25 as arguments to method StartInstanceRefresh.
26  
27 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to StartInstanceRefresh.
28  
29 =head1 SYNOPSIS
30  
31 my $autoscaling = Paws->service('AutoScaling');
32 # To start an instance refresh
33 # This example starts an instance refresh for the specified Auto Scaling group.
34 my $StartInstanceRefreshAnswer = $autoscaling->StartInstanceRefresh(
35 'AutoScalingGroupName' => 'my-auto-scaling-group',
36 'Preferences' => {
37 'InstanceWarmup' => 400,
38 'MinHealthyPercentage' => 50
39 }
40 );
41  
42 # Results:
43 my $InstanceRefreshId = $StartInstanceRefreshAnswer->InstanceRefreshId;
44  
45 # Returns a L<Paws::AutoScaling::StartInstanceRefreshAnswer> object.
46  
47 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.
48 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/autoscaling/StartInstanceRefresh>
49  
50 =head1 ATTRIBUTES
51  
52  
53 =head2 B<REQUIRED> AutoScalingGroupName => Str
54  
55 The name of the Auto Scaling group.
56  
57  
58  
59 =head2 Preferences => L<Paws::AutoScaling::RefreshPreferences>
60  
61 Set of preferences associated with the instance refresh request.
62  
63 If not provided, the default values are used. For
64 C<MinHealthyPercentage>, the default value is C<90>. For
65 C<InstanceWarmup>, the default is to use the value specified for the
66 health check grace period for the Auto Scaling group.
67  
68 For more information, see RefreshPreferences
69 (https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_RefreshPreferences.html)
70 in the I<Amazon EC2 Auto Scaling API Reference>.
71  
72  
73  
74 =head2 Strategy => Str
75  
76 The strategy to use for the instance refresh. The only valid value is
77 C<Rolling>.
78  
79 A rolling update is an update that is applied to all instances in an
80 Auto Scaling group until all instances have been updated. A rolling
81 update can fail due to failed health checks or if instances are on
82 standby or are protected from scale in. If the rolling update process
83 fails, any instances that were already replaced are not rolled back to
84 their previous configuration.
85  
86 Valid values are: C<"Rolling">
87  
88  
89 =head1 SEE ALSO
90  
91 This class forms part of L<Paws>, documenting arguments for method StartInstanceRefresh in L<Paws::AutoScaling>
92  
93 =head1 BUGS and CONTRIBUTIONS
94  
95 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
96  
97 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
98  
99 =cut
100