Skip to content

IAM  >  Structures  >  AccessKey

AccessKey

Structure Class

AccessKey dataclass

Bases: _SerdeShape

Contains information about an Amazon Web Services access key.

This data type is used as a response element in the CreateAccessKey and ListAccessKeys operations.

Note

The SecretAccessKey value is returned only in response to CreateAccessKey. You can get a secret access key only when you first create an access key; you cannot recover the secret access key later. If you lose a secret access key, you must create a new access key.

Attributes

access_key_id instance-attribute
access_key_id: str

The ID for this access key.

create_date class-attribute instance-attribute
create_date: datetime | None = ...

The date when the access key was created.

secret_access_key instance-attribute
secret_access_key: str

The secret key used to sign requests.

status instance-attribute
status: str

The status of the access key. Active means that the key is valid for API calls, while Inactive means it is not.

user_name instance-attribute
user_name: str

The name of the IAM user that the access key is associated with.