Describe Key Pairs
ec2_describe_key_pairs | R Documentation |
Describes the specified key pairs or all of your key pairs¶
Description¶
Describes the specified key pairs or all of your key pairs.
For more information about key pairs, see Amazon EC2 key pairs in the Amazon EC2 User Guide.
Usage¶
ec2_describe_key_pairs(KeyNames, KeyPairIds, IncludePublicKey, DryRun,
Filters)
Arguments¶
KeyNames |
The key pair names. Default: Describes all of your key pairs. |
KeyPairIds |
The IDs of the key pairs. |
IncludePublicKey |
If Default: |
DryRun |
Checks whether you have the required permissions for the action,
without actually making the request, and provides an error response. If
you have the required permissions, the error response is
|
Filters |
The filters.
|
Value¶
A list with the following syntax:
list(
KeyPairs = list(
list(
KeyPairId = "string",
KeyType = "rsa"|"ed25519",
Tags = list(
list(
Key = "string",
Value = "string"
)
),
PublicKey = "string",
CreateTime = as.POSIXct(
"2015-01-01"
),
KeyName = "string",
KeyFingerprint = "string"
)
)
)
Request syntax¶
svc$describe_key_pairs(
KeyNames = list(
"string"
),
KeyPairIds = list(
"string"
),
IncludePublicKey = TRUE|FALSE,
DryRun = TRUE|FALSE,
Filters = list(
list(
Name = "string",
Values = list(
"string"
)
)
)
)
Examples¶
## Not run:
# This example displays the fingerprint for the specified key.
svc$describe_key_pairs(
KeyNames = list(
"my-key-pair"
)
)
## End(Not run)