« blib/lib/Paws/AutoScaling/CapacityForecast.pm
↑ Summary
blib/lib/Paws/AutoScaling/CompleteLifecycleActionAnswer.pm »
| 1 | |||
| 2 | package Paws::AutoScaling::CompleteLifecycleAction; | ||
| 3 | use Moose; | ||
| 4 | has AutoScalingGroupName => (is => 'ro', isa => 'Str', required => 1); | ||
| 5 | has InstanceId => (is => 'ro', isa => 'Str'); | ||
| 6 | has LifecycleActionResult => (is => 'ro', isa => 'Str', required => 1); | ||
| 7 | has LifecycleActionToken => (is => 'ro', isa => 'Str'); | ||
| 8 | has LifecycleHookName => (is => 'ro', isa => 'Str', required => 1); | ||
| 9 | |||
| 10 | use MooseX::ClassAttribute; | ||
| 11 | |||
| 12 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CompleteLifecycleAction'); | ||
| 13 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::AutoScaling::CompleteLifecycleActionAnswer'); | ||
| 14 | class_has _result_key => (isa => 'Str', is => 'ro', default => 'CompleteLifecycleActionResult'); | ||
| 15 | 1; | ||
| 16 | |||
| 17 | ### main pod documentation begin ### | ||
| 18 | |||
| 19 | =head1 NAME | ||
| 20 | |||
| 21 | Paws::AutoScaling::CompleteLifecycleAction - Arguments for method CompleteLifecycleAction on L<Paws::AutoScaling> | ||
| 22 | |||
| 23 | =head1 DESCRIPTION | ||
| 24 | |||
| 25 | This class represents the parameters used for calling the method CompleteLifecycleAction on the | ||
| 26 | L<Auto Scaling|Paws::AutoScaling> service. Use the attributes of this class | ||
| 27 | as arguments to method CompleteLifecycleAction. | ||
| 28 | |||
| 29 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CompleteLifecycleAction. | ||
| 30 | |||
| 31 | =head1 SYNOPSIS | ||
| 32 | |||
| 33 | my $autoscaling = Paws->service('AutoScaling'); | ||
| 34 | # To complete the lifecycle action | ||
| 35 | # This example notifies Auto Scaling that the specified lifecycle action is | ||
| 36 | # complete so that it can finish launching or terminating the instance. | ||
| 37 | my $CompleteLifecycleActionAnswer = $autoscaling->CompleteLifecycleAction( | ||
| 38 | 'AutoScalingGroupName' => 'my-auto-scaling-group', | ||
| 39 | 'LifecycleActionResult' => 'CONTINUE', | ||
| 40 | 'LifecycleActionToken' => 'bcd2f1b8-9a78-44d3-8a7a-4dd07d7cf635', | ||
| 41 | 'LifecycleHookName' => 'my-lifecycle-hook' | ||
| 42 | ); | ||
| 43 | |||
| 44 | |||
| 45 | 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. | ||
| 46 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/autoscaling/CompleteLifecycleAction> | ||
| 47 | |||
| 48 | =head1 ATTRIBUTES | ||
| 49 | |||
| 50 | |||
| 51 | =head2 B<REQUIRED> AutoScalingGroupName => Str | ||
| 52 | |||
| 53 | The name of the Auto Scaling group. | ||
| 54 | |||
| 55 | |||
| 56 | |||
| 57 | =head2 InstanceId => Str | ||
| 58 | |||
| 59 | The ID of the instance. | ||
| 60 | |||
| 61 | |||
| 62 | |||
| 63 | =head2 B<REQUIRED> LifecycleActionResult => Str | ||
| 64 | |||
| 65 | The action for the group to take. This parameter can be either | ||
| 66 | C<CONTINUE> or C<ABANDON>. | ||
| 67 | |||
| 68 | |||
| 69 | |||
| 70 | =head2 LifecycleActionToken => Str | ||
| 71 | |||
| 72 | A universally unique identifier (UUID) that identifies a specific | ||
| 73 | lifecycle action associated with an instance. Amazon EC2 Auto Scaling | ||
| 74 | sends this token to the notification target you specified when you | ||
| 75 | created the lifecycle hook. | ||
| 76 | |||
| 77 | |||
| 78 | |||
| 79 | =head2 B<REQUIRED> LifecycleHookName => Str | ||
| 80 | |||
| 81 | The name of the lifecycle hook. | ||
| 82 | |||
| 83 | |||
| 84 | |||
| 85 | |||
| 86 | =head1 SEE ALSO | ||
| 87 | |||
| 88 | This class forms part of L<Paws>, documenting arguments for method CompleteLifecycleAction in L<Paws::AutoScaling> | ||
| 89 | |||
| 90 | =head1 BUGS and CONTRIBUTIONS | ||
| 91 | |||
| 92 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 93 | |||
| 94 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 95 | |||
| 96 | =cut | ||
| 97 |