get_access_key_info¶
Operation¶
get_access_key_info
¶
get_access_key_info(request: GetAccessKeyInfoInput | GetAccessKeyInfoInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[GetAccessKeyInfoInputDict]) -> GetAccessKeyInfoOutput
Returns the account identifier for the specified access key ID.
Access keys consist of two parts: an access key ID (for example,
AKIAIOSFODNN7EXAMPLE) and a secret access key (for example,
wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY). For more information about
access keys, see Managing Access Keys for IAM
Users
in the IAM User Guide.
When you pass an access key ID to this operation, it returns the ID of
the Amazon Web Services account to which the keys belong. Access key IDs
beginning with AKIA are long-term credentials for an IAM user or the
Amazon Web Services account root user. Access key IDs beginning with
ASIA are temporary credentials that are created using STS operations.
If the account in the response belongs to you, you can sign in as the
root user and review your root user access keys. Then, you can pull a
credentials
report
to learn which IAM user owns the keys. To learn who requested the
temporary credentials for an ASIA access key, view the STS events in
your CloudTrail
logs
in the IAM User Guide.
This operation does not indicate the state of the access key. The key might be active, inactive, or deleted. Active keys might not have permissions to perform an operation. Providing a deleted access key might return an error that the key doesn't exist.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
request
|
GetAccessKeyInfoInput | GetAccessKeyInfoInputDict | None
|
The input as a model or dictionary. Pass this or keyword arguments, not both. |
None
|
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
**kwargs
|
Unpack[GetAccessKeyInfoInputDict]
|
The input fields as keyword arguments. |
{}
|
Returns:
| Type | Description |
|---|---|
GetAccessKeyInfoOutput
|
An instance of |
get_access_key_info
async
¶
get_access_key_info(request: GetAccessKeyInfoInput | GetAccessKeyInfoInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[GetAccessKeyInfoInputDict]) -> GetAccessKeyInfoOutput
Returns the account identifier for the specified access key ID.
Access keys consist of two parts: an access key ID (for example,
AKIAIOSFODNN7EXAMPLE) and a secret access key (for example,
wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY). For more information about
access keys, see Managing Access Keys for IAM
Users
in the IAM User Guide.
When you pass an access key ID to this operation, it returns the ID of
the Amazon Web Services account to which the keys belong. Access key IDs
beginning with AKIA are long-term credentials for an IAM user or the
Amazon Web Services account root user. Access key IDs beginning with
ASIA are temporary credentials that are created using STS operations.
If the account in the response belongs to you, you can sign in as the
root user and review your root user access keys. Then, you can pull a
credentials
report
to learn which IAM user owns the keys. To learn who requested the
temporary credentials for an ASIA access key, view the STS events in
your CloudTrail
logs
in the IAM User Guide.
This operation does not indicate the state of the access key. The key might be active, inactive, or deleted. Active keys might not have permissions to perform an operation. Providing a deleted access key might return an error that the key doesn't exist.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
request
|
GetAccessKeyInfoInput | GetAccessKeyInfoInputDict | None
|
The input as a model or dictionary. Pass this or keyword arguments, not both. |
None
|
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
**kwargs
|
Unpack[GetAccessKeyInfoInputDict]
|
The input fields as keyword arguments. |
{}
|
Returns:
| Type | Description |
|---|---|
GetAccessKeyInfoOutput
|
An instance of |
Input¶
Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.
Output¶
GetAccessKeyInfoOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for GetAccessKeyInfoOutput structure.
Attributes¶
account
class-attribute
instance-attribute
¶
account: str | None = ...
The number used to identify the Amazon Web Services account.
response_metadata
class-attribute
instance-attribute
¶
Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.