Skip to content

AccessKey

Source code in docs_src/capo_lightsail/types/access_key.py
class AccessKey(TypedDict, closed=True):
    access_key_id: NotRequired["capo_lightsail.types.iam_access_key_id.IAMAccessKeyId"]
    """<p>The ID of the access key.</p>"""
    secret_access_key: NotRequired[
        "capo_lightsail.types.non_empty_string.NonEmptyString"
    ]
    """<p>The secret access key used to sign requests.</p> <p>You should store the secret access key in a safe location. We recommend that you delete the access key if the secret access key is compromised.</p>"""
    status: NotRequired["capo_lightsail.types.status_type.StatusType"]
    """<p>The status of the access key.</p> <p>A status of <code>Active</code> means that the key is valid, while <code>Inactive</code> means it is not.</p>"""
    created_at: NotRequired["capo_lightsail.types.iso_date.IsoDate"]
    """<p>The timestamp when the access key was created.</p>"""
    last_used: NotRequired[
        "capo_lightsail.types.access_key_last_used.AccessKeyLastUsed"
    ]
    """<p>An object that describes the last time the access key was used.</p> <note> <p>This object does not include data in the response of a <a href="https://docs.aws.amazon.com/lightsail/2016-11-28/api-reference/API_CreateBucketAccessKey.html">CreateBucketAccessKey</a> action. If the access key has not been used, the <code>region</code> and <code>serviceName</code> values are <code>N/A</code>, and the <code>lastUsedDate</code> value is null.</p> </note>"""

access_key_id instance-attribute

access_key_id: NotRequired[IAMAccessKeyId]

The ID of the access key.

created_at instance-attribute

created_at: NotRequired[IsoDate]

The timestamp when the access key was created.

last_used instance-attribute

last_used: NotRequired[AccessKeyLastUsed]

An object that describes the last time the access key was used.

This object does not include data in the response of a CreateBucketAccessKey action. If the access key has not been used, the region and serviceName values are N/A, and the lastUsedDate value is null.

secret_access_key instance-attribute

secret_access_key: NotRequired[NonEmptyString]

The secret access key used to sign requests.

You should store the secret access key in a safe location. We recommend that you delete the access key if the secret access key is compromised.

status instance-attribute

status: NotRequired[StatusType]

The status of the access key.

A status of Active means that the key is valid, while Inactive means it is not.