openapi: 3.0.0 info: version: '2021-09-14' x-release: v4 title: 'Payment Cryptography Control Plane #X Amz Target=PaymentCryptographyControlPlane.CreateAlias #X Amz Target=PaymentCryptographyControlPlane.CreateAlias #X Amz Target=PaymentCryptographyControlPlane.ListKeys API' description:

You use the Amazon Web Services Payment Cryptography Control Plane to manage the encryption keys you use for payment-related cryptographic operations. You can create, import, export, share, manage, and delete keys. You can also manage Identity and Access Management (IAM) policies for keys. For more information, see Identity and access management in the Amazon Web Services Payment Cryptography User Guide.

To use encryption keys for payment-related transaction processing and associated cryptographic operations, you use the Amazon Web Services Payment Cryptography Data Plane. You can encrypt, decrypt, generate, verify, and translate payment-related cryptographic operations.

All Amazon Web Services Payment Cryptography API calls must be signed and transmitted using Transport Layer Security (TLS). We recommend you always use the latest supported TLS version for logging API requests.

Amazon Web Services Payment Cryptography supports CloudTrail, a service that logs Amazon Web Services API calls and related events for your Amazon Web Services account and delivers them to an Amazon S3 bucket that you specify. By using the information collected by CloudTrail, you can determine what requests were made to Amazon Web Services Payment Cryptography, who made the request, when it was made, and so on. If you don't configure a trail, you can still view the most recent events in the CloudTrail console. For more information, see the CloudTrail User Guide.

x-logo: url: https://twitter.com/awscloud/profile_image?size=original backgroundColor: '#FFFFFF' termsOfService: https://aws.amazon.com/service-terms/ contact: name: Mike Ralphson email: mike.ralphson@gmail.com url: https://github.com/mermade/aws2openapi x-twitter: PermittedSoc license: name: Apache 2.0 License url: http://www.apache.org/licenses/ x-providerName: amazonaws.com x-serviceName: payment-cryptography x-aws-signingName: payment-cryptography x-origin: - contentType: application/json url: https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/payment-cryptography-2021-09-14.normal.json converter: url: https://github.com/mermade/aws2openapi version: 1.0.0 x-apisguru-driver: external x-apiClientRegistration: url: https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?nc2=h_ct x-apisguru-categories: - cloud x-preferred: true servers: - url: http://controlplane.payment-cryptography.{region}.amazonaws.com variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - eu-south-1 - af-south-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-east-1 - ap-south-1 - sa-east-1 - me-south-1 default: us-east-1 description: The Payment Cryptography Control Plane multi-region endpoint - url: https://controlplane.payment-cryptography.{region}.amazonaws.com variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - eu-south-1 - af-south-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-east-1 - ap-south-1 - sa-east-1 - me-south-1 default: us-east-1 description: The Payment Cryptography Control Plane multi-region endpoint - url: http://controlplane.payment-cryptography.{region}.amazonaws.com.cn variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The Payment Cryptography Control Plane endpoint for China (Beijing) and China (Ningxia) - url: https://controlplane.payment-cryptography.{region}.amazonaws.com.cn variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The Payment Cryptography Control Plane endpoint for China (Beijing) and China (Ningxia) security: - hmac: [] tags: - name: '#X Amz Target=PaymentCryptographyControlPlane.ListKeys' paths: /#X-Amz-Target=PaymentCryptographyControlPlane.ListKeys: parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' post: operationId: ListKeys 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:

responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/ListKeysOutput' examples: ListKeys200Example: summary: Default ListKeys 200 response x-microcks-default: true value: Keys: example-string NextToken: example-string '480': description: ServiceUnavailableException content: application/json: schema: $ref: '#/components/schemas/ServiceUnavailableException' '481': description: ValidationException content: application/json: schema: $ref: '#/components/schemas/ValidationException' '482': description: AccessDeniedException content: application/json: schema: $ref: '#/components/schemas/AccessDeniedException' '483': description: ResourceNotFoundException content: application/json: schema: $ref: '#/components/schemas/ResourceNotFoundException' '484': description: ThrottlingException content: application/json: schema: $ref: '#/components/schemas/ThrottlingException' '485': description: InternalServerException content: application/json: schema: $ref: '#/components/schemas/InternalServerException' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ListKeysInput' parameters: - name: MaxResults in: query schema: type: string description: Pagination limit required: false - name: NextToken in: query schema: type: string description: Pagination token required: false - name: X-Amz-Target in: header required: true schema: type: string enum: - PaymentCryptographyControlPlane.ListKeys x-microcks-operation: delay: 0 dispatcher: FALLBACK summary: Amazon Payment Cryptography List Keys tags: - '#X Amz Target=PaymentCryptographyControlPlane.ListKeys' components: schemas: KeyCheckValue: type: string pattern: ^[0-9a-fA-F]+$ minLength: 4 maxLength: 16 KeyState: type: string enum: - CREATE_IN_PROGRESS - CREATE_COMPLETE - DELETE_PENDING - DELETE_COMPLETE description: Defines the state of a key KeyAlgorithm: type: string enum: - TDES_2KEY - TDES_3KEY - AES_128 - AES_192 - AES_256 - RSA_2048 - RSA_3072 - RSA_4096 InternalServerException: {} ThrottlingException: {} ServiceUnavailableException: {} KeySummary: type: object required: - Enabled - Exportable - KeyArn - KeyAttributes - KeyCheckValue - KeyState properties: Enabled: allOf: - $ref: '#/components/schemas/Boolean' - description: 'Specifies whether the key is enabled. ' Exportable: allOf: - $ref: '#/components/schemas/Boolean' - description: Specifies whether the key is exportable. This data is immutable after the key is created. KeyArn: allOf: - $ref: '#/components/schemas/KeyArn' - description: The Amazon Resource Name (ARN) of the key. KeyAttributes: allOf: - $ref: '#/components/schemas/KeyAttributes' - description: 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. KeyCheckValue: allOf: - $ref: '#/components/schemas/KeyCheckValue' - description: 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. Amazon Web Services Payment Cryptography calculates the KCV by using standard algorithms, typically by encrypting 8 or 16 bytes or "00" or "01" and then truncating the result to the first 3 bytes, or 6 hex digits, of the resulting cryptogram. KeyState: allOf: - $ref: '#/components/schemas/KeyState' - description: The state of an Amazon Web Services Payment Cryptography that is being created or deleted. description: Metadata about an Amazon Web Services Payment Cryptography key. Boolean: type: boolean KeyArn: type: string pattern: ^arn:aws:payment-cryptography:[a-z]{2}-[a-z]{1,16}-[0-9]+:[0-9]{12}:key/[0-9a-zA-Z]{16,64}$ minLength: 70 maxLength: 150 ListKeysInput: type: object title: ListKeysInput properties: KeyState: allOf: - $ref: '#/components/schemas/KeyState' - description: The key state of the keys you want to list. MaxResults: allOf: - $ref: '#/components/schemas/MaxResults' - description: Use this parameter to specify the maximum number of items to return. When this value is present, Amazon Web Services Payment Cryptography does not return more than the specified number of items, but it might return fewer. NextToken: allOf: - $ref: '#/components/schemas/NextToken' - description: Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextToken from the truncated response you just received. KeyAttributes: type: object required: - KeyAlgorithm - KeyClass - KeyModesOfUse - KeyUsage properties: KeyAlgorithm: allOf: - $ref: '#/components/schemas/KeyAlgorithm' - description:

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.

KeyClass: allOf: - $ref: '#/components/schemas/KeyClass' - description: 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. KeyModesOfUse: allOf: - $ref: '#/components/schemas/KeyModesOfUse' - description: The list of cryptographic operations that you can perform using the key. KeyUsage: allOf: - $ref: '#/components/schemas/KeyUsage' - description: The cryptographic usage of an Amazon Web Services Payment Cryptography key as defined in section A.5.2 of the TR-31 spec. description: 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. KeyClass: type: string enum: - SYMMETRIC_KEY - ASYMMETRIC_KEY_PAIR - PRIVATE_KEY - PUBLIC_KEY MaxResults: type: integer minimum: 1 maximum: 100 ResourceNotFoundException: {} KeySummaryList: type: array items: $ref: '#/components/schemas/KeySummary' KeyUsage: type: string enum: - TR31_B0_BASE_DERIVATION_KEY - TR31_C0_CARD_VERIFICATION_KEY - TR31_D0_SYMMETRIC_DATA_ENCRYPTION_KEY - TR31_D1_ASYMMETRIC_KEY_FOR_DATA_ENCRYPTION - TR31_E0_EMV_MKEY_APP_CRYPTOGRAMS - TR31_E1_EMV_MKEY_CONFIDENTIALITY - TR31_E2_EMV_MKEY_INTEGRITY - TR31_E4_EMV_MKEY_DYNAMIC_NUMBERS - TR31_E5_EMV_MKEY_CARD_PERSONALIZATION - TR31_E6_EMV_MKEY_OTHER - TR31_K0_KEY_ENCRYPTION_KEY - TR31_K1_KEY_BLOCK_PROTECTION_KEY - TR31_K3_ASYMMETRIC_KEY_FOR_KEY_AGREEMENT - TR31_M3_ISO_9797_3_MAC_KEY - TR31_M6_ISO_9797_5_CMAC_KEY - TR31_M7_HMAC_KEY - TR31_P0_PIN_ENCRYPTION_KEY - TR31_P1_PIN_GENERATION_KEY - TR31_S0_ASYMMETRIC_KEY_FOR_DIGITAL_SIGNATURE - TR31_V1_IBM3624_PIN_VERIFICATION_KEY - TR31_V2_VISA_PIN_VERIFICATION_KEY - TR31_K2_TR34_ASYMMETRIC_KEY AccessDeniedException: {} NextToken: type: string minLength: 1 maxLength: 8192 KeyModesOfUse: type: object properties: Decrypt: allOf: - $ref: '#/components/schemas/PrimitiveBoolean' - description: Specifies whether an Amazon Web Services Payment Cryptography key can be used to decrypt data. DeriveKey: allOf: - $ref: '#/components/schemas/PrimitiveBoolean' - description: Specifies whether an Amazon Web Services Payment Cryptography key can be used to derive new keys. Encrypt: allOf: - $ref: '#/components/schemas/PrimitiveBoolean' - description: Specifies whether an Amazon Web Services Payment Cryptography key can be used to encrypt data. Generate: allOf: - $ref: '#/components/schemas/PrimitiveBoolean' - description: Specifies whether an Amazon Web Services Payment Cryptography key can be used to generate and verify other card and PIN verification keys. NoRestrictions: allOf: - $ref: '#/components/schemas/PrimitiveBoolean' - description: Specifies whether an Amazon Web Services Payment Cryptography key has no special restrictions other than the restrictions implied by KeyUsage. Sign: allOf: - $ref: '#/components/schemas/PrimitiveBoolean' - description: Specifies whether an Amazon Web Services Payment Cryptography key can be used for signing. Unwrap: allOf: - $ref: '#/components/schemas/PrimitiveBoolean' - description: Specifies whether an Amazon Web Services Payment Cryptography key can be used to unwrap other keys. Verify: allOf: - $ref: '#/components/schemas/PrimitiveBoolean' - description: Specifies whether an Amazon Web Services Payment Cryptography key can be used to verify signatures. Wrap: allOf: - $ref: '#/components/schemas/PrimitiveBoolean' - description: Specifies whether an Amazon Web Services Payment Cryptography key can be used to wrap other keys. description: The list of cryptographic operations that you can perform using the key. The modes of use are defined in section A.5.3 of the TR-31 spec. ListKeysOutput: type: object required: - Keys properties: Keys: allOf: - $ref: '#/components/schemas/KeySummaryList' - description: The list of keys created within the caller's Amazon Web Services account and Amazon Web Services Region. NextToken: allOf: - $ref: '#/components/schemas/NextToken' - description: The token for the next set of results, or an empty or null value if there are no more results. ValidationException: {} PrimitiveBoolean: type: boolean parameters: X-Amz-Algorithm: name: X-Amz-Algorithm in: header schema: type: string required: false X-Amz-Credential: name: X-Amz-Credential in: header schema: type: string required: false X-Amz-Content-Sha256: name: X-Amz-Content-Sha256 in: header schema: type: string required: false X-Amz-Security-Token: name: X-Amz-Security-Token in: header schema: type: string required: false X-Amz-SignedHeaders: name: X-Amz-SignedHeaders in: header schema: type: string required: false X-Amz-Date: name: X-Amz-Date in: header schema: type: string required: false X-Amz-Signature: name: X-Amz-Signature in: header schema: type: string required: false securitySchemes: hmac: type: apiKey name: Authorization in: header description: Amazon Signature authorization v4 x-amazon-apigateway-authtype: awsSigv4 externalDocs: description: Amazon Web Services documentation url: https://docs.aws.amazon.com/payment-cryptography/ x-hasEquivalentPaths: true