« blib/lib/Paws/Inspector/NetworkInterface.pm
↑ Summary
blib/lib/Paws/Inspector/PreviewAgentsResponse.pm »
| 1 | |||
| 2 | package Paws::Inspector::PreviewAgents; | ||
| 3 | use Moose; | ||
| 4 | has MaxResults => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'maxResults' ); | ||
| 5 | has NextToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'nextToken' ); | ||
| 6 | has PreviewAgentsArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'previewAgentsArn' , required => 1); | ||
| 7 | |||
| 8 | use MooseX::ClassAttribute; | ||
| 9 | |||
| 10 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'PreviewAgents'); | ||
| 11 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Inspector::PreviewAgentsResponse'); | ||
| 12 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 13 | 1; | ||
| 14 | |||
| 15 | ### main pod documentation begin ### | ||
| 16 | |||
| 17 | =head1 NAME | ||
| 18 | |||
| 19 | Paws::Inspector::PreviewAgents - Arguments for method PreviewAgents on L<Paws::Inspector> | ||
| 20 | |||
| 21 | =head1 DESCRIPTION | ||
| 22 | |||
| 23 | This class represents the parameters used for calling the method PreviewAgents on the | ||
| 24 | L<Amazon Inspector|Paws::Inspector> service. Use the attributes of this class | ||
| 25 | as arguments to method PreviewAgents. | ||
| 26 | |||
| 27 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PreviewAgents. | ||
| 28 | |||
| 29 | =head1 SYNOPSIS | ||
| 30 | |||
| 31 | my $inspector = Paws->service('Inspector'); | ||
| 32 | # Preview agents | ||
| 33 | # Previews the agents installed on the EC2 instances that are part of the | ||
| 34 | # specified assessment target. | ||
| 35 | my $PreviewAgentsResponse = $inspector->PreviewAgents( | ||
| 36 | 'MaxResults' => 123, | ||
| 37 | 'PreviewAgentsArn' => | ||
| 38 | 'arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq' | ||
| 39 | ); | ||
| 40 | |||
| 41 | # Results: | ||
| 42 | my $agentPreviews = $PreviewAgentsResponse->agentPreviews; | ||
| 43 | my $nextToken = $PreviewAgentsResponse->nextToken; | ||
| 44 | |||
| 45 | # Returns a L<Paws::Inspector::PreviewAgentsResponse> 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/inspector/PreviewAgents> | ||
| 49 | |||
| 50 | =head1 ATTRIBUTES | ||
| 51 | |||
| 52 | |||
| 53 | =head2 MaxResults => Int | ||
| 54 | |||
| 55 | You can use this parameter to indicate the maximum number of items you | ||
| 56 | want in the response. The default value is 10. The maximum value is | ||
| 57 | 500. | ||
| 58 | |||
| 59 | |||
| 60 | |||
| 61 | =head2 NextToken => Str | ||
| 62 | |||
| 63 | You can use this parameter when paginating results. Set the value of | ||
| 64 | this parameter to null on your first call to the B<PreviewAgents> | ||
| 65 | action. Subsequent calls to the action fill B<nextToken> in the request | ||
| 66 | with the value of B<NextToken> from the previous response to continue | ||
| 67 | listing data. | ||
| 68 | |||
| 69 | |||
| 70 | |||
| 71 | =head2 B<REQUIRED> PreviewAgentsArn => Str | ||
| 72 | |||
| 73 | The ARN of the assessment target whose agents you want to preview. | ||
| 74 | |||
| 75 | |||
| 76 | |||
| 77 | |||
| 78 | =head1 SEE ALSO | ||
| 79 | |||
| 80 | This class forms part of L<Paws>, documenting arguments for method PreviewAgents in L<Paws::Inspector> | ||
| 81 | |||
| 82 | =head1 BUGS and CONTRIBUTIONS | ||
| 83 | |||
| 84 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 85 | |||
| 86 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 87 | |||
| 88 | =cut | ||
| 89 |