libZSservicesZSamazonka-iamZSamazonka-iam
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.IAM.GetAccessKeyLastUsed

Description

Retrieves information about when the specified access key was last used. The information includes the date and time of last use, along with the Amazon Web Services service and Region that were specified in the last request made with that key.

Synopsis

Creating a Request

data GetAccessKeyLastUsed Source #

See: newGetAccessKeyLastUsed smart constructor.

Constructors

GetAccessKeyLastUsed' 

Fields

  • accessKeyId :: AccessKey

    The identifier of an access key.

    This parameter allows (through its regex pattern) a string of characters that can consist of any upper or lowercased letter or digit.

Instances

Instances details
Eq GetAccessKeyLastUsed Source # 
Instance details

Defined in Amazonka.IAM.GetAccessKeyLastUsed

Read GetAccessKeyLastUsed Source # 
Instance details

Defined in Amazonka.IAM.GetAccessKeyLastUsed

Show GetAccessKeyLastUsed Source # 
Instance details

Defined in Amazonka.IAM.GetAccessKeyLastUsed

Generic GetAccessKeyLastUsed Source # 
Instance details

Defined in Amazonka.IAM.GetAccessKeyLastUsed

Associated Types

type Rep GetAccessKeyLastUsed :: Type -> Type #

NFData GetAccessKeyLastUsed Source # 
Instance details

Defined in Amazonka.IAM.GetAccessKeyLastUsed

Methods

rnf :: GetAccessKeyLastUsed -> () #

Hashable GetAccessKeyLastUsed Source # 
Instance details

Defined in Amazonka.IAM.GetAccessKeyLastUsed

AWSRequest GetAccessKeyLastUsed Source # 
Instance details

Defined in Amazonka.IAM.GetAccessKeyLastUsed

Associated Types

type AWSResponse GetAccessKeyLastUsed #

ToHeaders GetAccessKeyLastUsed Source # 
Instance details

Defined in Amazonka.IAM.GetAccessKeyLastUsed

ToPath GetAccessKeyLastUsed Source # 
Instance details

Defined in Amazonka.IAM.GetAccessKeyLastUsed

ToQuery GetAccessKeyLastUsed Source # 
Instance details

Defined in Amazonka.IAM.GetAccessKeyLastUsed

type Rep GetAccessKeyLastUsed Source # 
Instance details

Defined in Amazonka.IAM.GetAccessKeyLastUsed

type Rep GetAccessKeyLastUsed = D1 ('MetaData "GetAccessKeyLastUsed" "Amazonka.IAM.GetAccessKeyLastUsed" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "GetAccessKeyLastUsed'" 'PrefixI 'True) (S1 ('MetaSel ('Just "accessKeyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 AccessKey)))
type AWSResponse GetAccessKeyLastUsed Source # 
Instance details

Defined in Amazonka.IAM.GetAccessKeyLastUsed

newGetAccessKeyLastUsed Source #

Create a value of GetAccessKeyLastUsed with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:accessKeyId:GetAccessKeyLastUsed', getAccessKeyLastUsed_accessKeyId - The identifier of an access key.

This parameter allows (through its regex pattern) a string of characters that can consist of any upper or lowercased letter or digit.

Request Lenses

getAccessKeyLastUsed_accessKeyId :: Lens' GetAccessKeyLastUsed AccessKey Source #

The identifier of an access key.

This parameter allows (through its regex pattern) a string of characters that can consist of any upper or lowercased letter or digit.

Destructuring the Response

data GetAccessKeyLastUsedResponse Source #

Contains the response to a successful GetAccessKeyLastUsed request. It is also returned as a member of the AccessKeyMetaData structure returned by the ListAccessKeys action.

See: newGetAccessKeyLastUsedResponse smart constructor.

Constructors

GetAccessKeyLastUsedResponse' 

Fields

Instances

Instances details
Eq GetAccessKeyLastUsedResponse Source # 
Instance details

Defined in Amazonka.IAM.GetAccessKeyLastUsed

Read GetAccessKeyLastUsedResponse Source # 
Instance details

Defined in Amazonka.IAM.GetAccessKeyLastUsed

Show GetAccessKeyLastUsedResponse Source # 
Instance details

Defined in Amazonka.IAM.GetAccessKeyLastUsed

Generic GetAccessKeyLastUsedResponse Source # 
Instance details

Defined in Amazonka.IAM.GetAccessKeyLastUsed

Associated Types

type Rep GetAccessKeyLastUsedResponse :: Type -> Type #

NFData GetAccessKeyLastUsedResponse Source # 
Instance details

Defined in Amazonka.IAM.GetAccessKeyLastUsed

type Rep GetAccessKeyLastUsedResponse Source # 
Instance details

Defined in Amazonka.IAM.GetAccessKeyLastUsed

type Rep GetAccessKeyLastUsedResponse = D1 ('MetaData "GetAccessKeyLastUsedResponse" "Amazonka.IAM.GetAccessKeyLastUsed" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "GetAccessKeyLastUsedResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "userName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "accessKeyLastUsed") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AccessKeyLastUsed)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetAccessKeyLastUsedResponse Source #

Create a value of GetAccessKeyLastUsedResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:userName:GetAccessKeyLastUsedResponse', getAccessKeyLastUsedResponse_userName - The name of the IAM user that owns this access key.

$sel:accessKeyLastUsed:GetAccessKeyLastUsedResponse', getAccessKeyLastUsedResponse_accessKeyLastUsed - Contains information about the last time the access key was used.

$sel:httpStatus:GetAccessKeyLastUsedResponse', getAccessKeyLastUsedResponse_httpStatus - The response's http status code.

Response Lenses

getAccessKeyLastUsedResponse_userName :: Lens' GetAccessKeyLastUsedResponse (Maybe Text) Source #

The name of the IAM user that owns this access key.

getAccessKeyLastUsedResponse_accessKeyLastUsed :: Lens' GetAccessKeyLastUsedResponse (Maybe AccessKeyLastUsed) Source #

Contains information about the last time the access key was used.