Learn R Programming

paws.security.identity (version 0.1.12)

kms_list_keys: Gets a list of all customer master keys (CMKs) in the caller's AWS account and Region

Description

Gets a list of all customer master keys (CMKs) in the caller's AWS account and Region.

Cross-account use: No. You cannot perform this operation on a CMK in a different AWS account.

Required permissions: kms:ListKeys (IAM policy)

Related operations:

  • create_key

  • describe_key

  • list_aliases

  • list_resource_tags

Usage

kms_list_keys(Limit, Marker)

Value

A list with the following syntax:

list(
  Keys = list(
    list(
      KeyId = "string",
      KeyArn = "string"
    )
  ),
  NextMarker = "string",
  Truncated = TRUE|FALSE
)

Arguments

Limit

Use this parameter to specify the maximum number of items to return. When this value is present, AWS KMS does not return more than the specified number of items, but it might return fewer.

This value is optional. If you include a value, it must be between 1 and 1000, inclusive. If you do not include a value, it defaults to 100.

Marker

Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextMarker from the truncated response you just received.

Request syntax

svc$list_keys(
  Limit = 123,
  Marker = "string"
)

Examples

Run this code
if (FALSE) {
# The following example lists CMKs.
svc$list_keys()
}

Run the code above in your browser using DataLab