Skip to content

aws.payment_cryptography.list_keys

Example SQL Queries

SELECT * FROM
aws.payment_cryptography.list_keys;

Description

Lists the keys in the caller's Amazon Web Services account and Amazon Web Services Region. You can filter the list of keys.

This is a paginated operation, which means that each response might contain only a subset of all the keys. When the response contains only a subset of keys, it includes a NextToken value. Use this value in a subsequent ListKeys request to get more keys. When you receive a response with no NextToken (or an empty or null value), that means there are no more keys to get.

Cross-account use: This operation can't be used across different Amazon Web Services accounts.

Related operations:

Table Definition

Column NameColumn Data Type
key_state Input Column

The state of an Amazon Web Services Payment Cryptography that is being created or deleted.

VARCHAR
_aws_profile Input Column

The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role.

STRUCT(
"type" VARCHAR,
"name" VARCHAR,
"account_id" VARCHAR,
"via_profile_name" VARCHAR,
"assumed_role_arn" VARCHAR,
"organization" STRUCT(
"account_name" VARCHAR,
"id" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[],
"master_account" STRUCT(
"id" VARCHAR,
"email" VARCHAR
),
"parents" STRUCT(
"type" VARCHAR,
"id" VARCHAR,
"name" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[]
)[]
)
)
Show child fields
_aws_profile.account_id

The AWS account id

_aws_profile.assumed_role_arn

The ARN of the assumed role

_aws_profile.name

The unique name of the profile.

_aws_profile.organization

Information about this profile's membership in the AWS organization.

Show child fields
_aws_profile.organization.account_name

The name of account speciifed by the organization

_aws_profile.organization.id

The organization id

_aws_profile.organization.master_account
Show child fields
_aws_profile.organization.master_account.email

The organization master account email address

_aws_profile.organization.master_account.id

The organization master account id

_aws_profile.organization.parents[]
Show child fields
_aws_profile.organization.parents[].id

The id of the parent

_aws_profile.organization.parents[].name

The name of the parent

_aws_profile.organization.parents[].tags[]
Show child fields
_aws_profile.organization.parents[].tags[].key
_aws_profile.organization.parents[].tags[].value
_aws_profile.organization.parents[].type

The type of parent can be an organization unit or a root

_aws_profile.organization.tags[]
Show child fields
_aws_profile.organization.tags[].key
_aws_profile.organization.tags[].value
_aws_profile.type

The type of profile, either 'credentials' or 'assumed_role'

_aws_profile.via_profile_name

This IAM role for this profile is assumed by first utilizing another profile with this name to obtain credentials.

enabled

Specifies whether the key is enabled.

BOOLEAN
exportable

Specifies whether the key is exportable. This data is immutable after the key is created.

BOOLEAN
key_arn

The Amazon Resource Name (ARN) of the key.

VARCHAR
key_attributes

The role of the key, the algorithm it supports, and the cryptographic operations allowed with the key. This data is immutable after the key is created.

STRUCT(
"key_usage" VARCHAR,
"key_class" VARCHAR,
"key_algorithm" VARCHAR,
"key_modes_of_use" STRUCT(
"encrypt" BOOLEAN,
"decrypt" BOOLEAN,
"wrap" BOOLEAN,
"unwrap" BOOLEAN,
"generate" BOOLEAN,
"sign" BOOLEAN,
"verify" BOOLEAN,
"derive_key" BOOLEAN,
"no_restrictions" BOOLEAN
)
)
Show child fields
key_attributes.key_algorithm

The key algorithm to be use during creation of an Amazon Web Services Payment Cryptography key.

For symmetric keys, Amazon Web Services Payment Cryptography supports AES and TDES algorithms. For asymmetric keys, Amazon Web Services Payment Cryptography supports RSA and ECC_NIST algorithms.

key_attributes.key_class

The type of Amazon Web Services Payment Cryptography key to create, which determines the classification of the cryptographic method and whether Amazon Web Services Payment Cryptography key contains a symmetric key or an asymmetric key pair.

key_attributes.key_modes_of_use

The list of cryptographic operations that you can perform using the key.

Show child fields
key_attributes.key_modes_of_use.decrypt

Specifies whether an Amazon Web Services Payment Cryptography key can be used to decrypt data.

key_attributes.key_modes_of_use.derive_key

Specifies whether an Amazon Web Services Payment Cryptography key can be used to derive new keys.

key_attributes.key_modes_of_use.encrypt

Specifies whether an Amazon Web Services Payment Cryptography key can be used to encrypt data.

key_attributes.key_modes_of_use.generate

Specifies whether an Amazon Web Services Payment Cryptography key can be used to generate and verify other card and PIN verification keys.

key_attributes.key_modes_of_use.no_restrictions

Specifies whether an Amazon Web Services Payment Cryptography key has no special restrictions other than the restrictions implied by KeyUsage.

key_attributes.key_modes_of_use.sign

Specifies whether an Amazon Web Services Payment Cryptography key can be used for signing.

key_attributes.key_modes_of_use.unwrap

Specifies whether an Amazon Web Services Payment Cryptography key can be used to unwrap other keys.

key_attributes.key_modes_of_use.verify

Specifies whether an Amazon Web Services Payment Cryptography key can be used to verify signatures.

key_attributes.key_modes_of_use.wrap

Specifies whether an Amazon Web Services Payment Cryptography key can be used to wrap other keys.

key_attributes.key_usage

The cryptographic usage of an Amazon Web Services Payment Cryptography key as defined in section A.5.2 of the TR-31 spec.

key_check_value

The key check value (KCV) is used to check if all parties holding a given key have the same key or to detect that a key has changed.

VARCHAR