| 1 | # Generated by default/object.tt | ||
| 2 | package Paws::IAM::ServiceLastAccessed; | ||
| 3 | use Moose; | ||
| 4 | has LastAuthenticated => (is => 'ro', isa => 'Str'); | ||
| 5 | has LastAuthenticatedEntity => (is => 'ro', isa => 'Str'); | ||
| 6 | has LastAuthenticatedRegion => (is => 'ro', isa => 'Str'); | ||
| 7 | has ServiceName => (is => 'ro', isa => 'Str', required => 1); | ||
| 8 | has ServiceNamespace => (is => 'ro', isa => 'Str', required => 1); | ||
| 9 | has TotalAuthenticatedEntities => (is => 'ro', isa => 'Int'); | ||
| 10 | has TrackedActionsLastAccessed => (is => 'ro', isa => 'ArrayRef[Paws::IAM::TrackedActionLastAccessed]'); | ||
| 11 | |||
| 12 | 1; | ||
| 13 | |||
| 14 | ### main pod documentation begin ### | ||
| 15 | |||
| 16 | =head1 NAME | ||
| 17 | |||
| 18 | Paws::IAM::ServiceLastAccessed | ||
| 19 | |||
| 20 | =head1 USAGE | ||
| 21 | |||
| 22 | This class represents one of two things: | ||
| 23 | |||
| 24 | =head3 Arguments in a call to a service | ||
| 25 | |||
| 26 | Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. | ||
| 27 | Each attribute should be used as a named argument in the calls that expect this type of object. | ||
| 28 | |||
| 29 | As an example, if Att1 is expected to be a Paws::IAM::ServiceLastAccessed object: | ||
| 30 | |||
| 31 | $service_obj->Method(Att1 => { LastAuthenticated => $value, ..., TrackedActionsLastAccessed => $value }); | ||
| 32 | |||
| 33 | =head3 Results returned from an API call | ||
| 34 | |||
| 35 | Use accessors for each attribute. If Att1 is expected to be an Paws::IAM::ServiceLastAccessed object: | ||
| 36 | |||
| 37 | $result = $service_obj->Method(...); | ||
| 38 | $result->Att1->LastAuthenticated | ||
| 39 | |||
| 40 | =head1 DESCRIPTION | ||
| 41 | |||
| 42 | Contains details about the most recent attempt to access the service. | ||
| 43 | |||
| 44 | This data type is used as a response element in the | ||
| 45 | GetServiceLastAccessedDetails operation. | ||
| 46 | |||
| 47 | =head1 ATTRIBUTES | ||
| 48 | |||
| 49 | |||
| 50 | =head2 LastAuthenticated => Str | ||
| 51 | |||
| 52 | The date and time, in ISO 8601 date-time format | ||
| 53 | (http://www.iso.org/iso/iso8601), when an authenticated entity most | ||
| 54 | recently attempted to access the service. AWS does not report | ||
| 55 | unauthenticated requests. | ||
| 56 | |||
| 57 | This field is null if no IAM entities attempted to access the service | ||
| 58 | within the reporting period | ||
| 59 | (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#service-last-accessed-reporting-period). | ||
| 60 | |||
| 61 | |||
| 62 | =head2 LastAuthenticatedEntity => Str | ||
| 63 | |||
| 64 | The ARN of the authenticated entity (user or role) that last attempted | ||
| 65 | to access the service. AWS does not report unauthenticated requests. | ||
| 66 | |||
| 67 | This field is null if no IAM entities attempted to access the service | ||
| 68 | within the reporting period | ||
| 69 | (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#service-last-accessed-reporting-period). | ||
| 70 | |||
| 71 | |||
| 72 | =head2 LastAuthenticatedRegion => Str | ||
| 73 | |||
| 74 | The Region from which the authenticated entity (user or role) last | ||
| 75 | attempted to access the service. AWS does not report unauthenticated | ||
| 76 | requests. | ||
| 77 | |||
| 78 | This field is null if no IAM entities attempted to access the service | ||
| 79 | within the reporting period | ||
| 80 | (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#service-last-accessed-reporting-period). | ||
| 81 | |||
| 82 | |||
| 83 | =head2 B<REQUIRED> ServiceName => Str | ||
| 84 | |||
| 85 | The name of the service in which access was attempted. | ||
| 86 | |||
| 87 | |||
| 88 | =head2 B<REQUIRED> ServiceNamespace => Str | ||
| 89 | |||
| 90 | The namespace of the service in which access was attempted. | ||
| 91 | |||
| 92 | To learn the service namespace of a service, see Actions, resources, | ||
| 93 | and condition keys for AWS services | ||
| 94 | (https://docs.aws.amazon.com/service-authorization/latest/reference/reference_policies_actions-resources-contextkeys.html) | ||
| 95 | in the I<Service Authorization Reference>. Choose the name of the | ||
| 96 | service to view details for that service. In the first paragraph, find | ||
| 97 | the service prefix. For example, C<(service prefix: a4b)>. For more | ||
| 98 | information about service namespaces, see AWS Service Namespaces | ||
| 99 | (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) | ||
| 100 | in the I<AWS General Reference>. | ||
| 101 | |||
| 102 | |||
| 103 | =head2 TotalAuthenticatedEntities => Int | ||
| 104 | |||
| 105 | The total number of authenticated principals (root user, IAM users, or | ||
| 106 | IAM roles) that have attempted to access the service. | ||
| 107 | |||
| 108 | This field is null if no principals attempted to access the service | ||
| 109 | within the reporting period | ||
| 110 | (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#service-last-accessed-reporting-period). | ||
| 111 | |||
| 112 | |||
| 113 | =head2 TrackedActionsLastAccessed => ArrayRef[L<Paws::IAM::TrackedActionLastAccessed>] | ||
| 114 | |||
| 115 | An object that contains details about the most recent attempt to access | ||
| 116 | a tracked action within the service. | ||
| 117 | |||
| 118 | This field is null if there no tracked actions or if the principal did | ||
| 119 | not use the tracked actions within the reporting period | ||
| 120 | (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#service-last-accessed-reporting-period). | ||
| 121 | This field is also null if the report was generated at the service | ||
| 122 | level and not the action level. For more information, see the | ||
| 123 | C<Granularity> field in GenerateServiceLastAccessedDetails. | ||
| 124 | |||
| 125 | |||
| 126 | |||
| 127 | =head1 SEE ALSO | ||
| 128 | |||
| 129 | This class forms part of L<Paws>, describing an object used in L<Paws::IAM> | ||
| 130 | |||
| 131 | =head1 BUGS and CONTRIBUTIONS | ||
| 132 | |||
| 133 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 134 | |||
| 135 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 136 | |||
| 137 | =cut | ||
| 138 |