« blib/lib/Paws/SSM/DescribePatchPropertiesResult.pm
↑ Summary
blib/lib/Paws/SSM/DescribeSessionsResponse.pm »
| 1 | |||
| 2 | package Paws::SSM::DescribeSessions; | ||
| 3 | use Moose; | ||
| 4 | has Filters => (is => 'ro', isa => 'ArrayRef[Paws::SSM::SessionFilter]'); | ||
| 5 | has MaxResults => (is => 'ro', isa => 'Int'); | ||
| 6 | has NextToken => (is => 'ro', isa => 'Str'); | ||
| 7 | has State => (is => 'ro', isa => 'Str', required => 1); | ||
| 8 | |||
| 9 | use MooseX::ClassAttribute; | ||
| 10 | |||
| 11 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'DescribeSessions'); | ||
| 12 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::SSM::DescribeSessionsResponse'); | ||
| 13 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 14 | 1; | ||
| 15 | |||
| 16 | ### main pod documentation begin ### | ||
| 17 | |||
| 18 | =head1 NAME | ||
| 19 | |||
| 20 | Paws::SSM::DescribeSessions - Arguments for method DescribeSessions on L<Paws::SSM> | ||
| 21 | |||
| 22 | =head1 DESCRIPTION | ||
| 23 | |||
| 24 | This class represents the parameters used for calling the method DescribeSessions on the | ||
| 25 | L<Amazon Simple Systems Manager (SSM)|Paws::SSM> service. Use the attributes of this class | ||
| 26 | as arguments to method DescribeSessions. | ||
| 27 | |||
| 28 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DescribeSessions. | ||
| 29 | |||
| 30 | =head1 SYNOPSIS | ||
| 31 | |||
| 32 | my $ssm = Paws->service('SSM'); | ||
| 33 | my $DescribeSessionsResponse = $ssm->DescribeSessions( | ||
| 34 | State => 'Active', | ||
| 35 | Filters => [ | ||
| 36 | { | ||
| 37 | Key => 'InvokedAfter' | ||
| 38 | , # values: InvokedAfter, InvokedBefore, Target, Owner, Status, SessionId | ||
| 39 | Value => 'MySessionFilterValue', # min: 1, max: 400 | ||
| 40 | |||
| 41 | }, | ||
| 42 | ... | ||
| 43 | ], # OPTIONAL | ||
| 44 | MaxResults => 1, # OPTIONAL | ||
| 45 | NextToken => 'MyNextToken', # OPTIONAL | ||
| 46 | ); | ||
| 47 | |||
| 48 | # Results: | ||
| 49 | my $NextToken = $DescribeSessionsResponse->NextToken; | ||
| 50 | my $Sessions = $DescribeSessionsResponse->Sessions; | ||
| 51 | |||
| 52 | # Returns a L<Paws::SSM::DescribeSessionsResponse> object. | ||
| 53 | |||
| 54 | 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. | ||
| 55 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ssm/DescribeSessions> | ||
| 56 | |||
| 57 | =head1 ATTRIBUTES | ||
| 58 | |||
| 59 | |||
| 60 | =head2 Filters => ArrayRef[L<Paws::SSM::SessionFilter>] | ||
| 61 | |||
| 62 | One or more filters to limit the type of sessions returned by the | ||
| 63 | request. | ||
| 64 | |||
| 65 | |||
| 66 | |||
| 67 | =head2 MaxResults => Int | ||
| 68 | |||
| 69 | The maximum number of items to return for this call. The call also | ||
| 70 | returns a token that you can specify in a subsequent call to get the | ||
| 71 | next set of results. | ||
| 72 | |||
| 73 | |||
| 74 | |||
| 75 | =head2 NextToken => Str | ||
| 76 | |||
| 77 | The token for the next set of items to return. (You received this token | ||
| 78 | from a previous call.) | ||
| 79 | |||
| 80 | |||
| 81 | |||
| 82 | =head2 B<REQUIRED> State => Str | ||
| 83 | |||
| 84 | The session status to retrieve a list of sessions for. For example, | ||
| 85 | "Active". | ||
| 86 | |||
| 87 | Valid values are: C<"Active">, C<"History"> | ||
| 88 | |||
| 89 | |||
| 90 | =head1 SEE ALSO | ||
| 91 | |||
| 92 | This class forms part of L<Paws>, documenting arguments for method DescribeSessions in L<Paws::SSM> | ||
| 93 | |||
| 94 | =head1 BUGS and CONTRIBUTIONS | ||
| 95 | |||
| 96 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 97 | |||
| 98 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 99 | |||
| 100 | =cut | ||
| 101 |