Amazon Payment Cryptography Payment Cryptography Resource Policy API
The Payment Cryptography Resource Policy API from Amazon Payment Cryptography — 3 operation(s) for payment cryptography resource policy.
The Payment Cryptography Resource Policy API from Amazon Payment Cryptography — 3 operation(s) for payment cryptography resource policy.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/amazon-payment-cryptography:amazon-payment-cryptography-resource-policy-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Payment Cryptography Control Plane Resource Policy API
version: '2021-09-14'
description: Generated from AWS's published Smithy model for Payment Cryptography Control Plane. 3 operation(s).
contact:
name: Amazon Web Services
url: https://aws.amazon.com/contact-us/
license:
name: Apache 2.0
identifier: Apache-2.0
url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://controlplane.payment-cryptography.{region}.amazonaws.com
variables:
region:
default: us-east-1
security:
- sigv4: []
tags:
- name: Resource Policy
paths:
/#DeleteResourcePolicy:
post:
operationId: DeleteResourcePolicy
summary: Delete Resource Policy
description: 'Removes the resource-based policy attached to an Amazon Web Services Payment Cryptography key. Cross-account use: This operation can''t be used across different Amazon Web Services accounts. Related operations: PutResourcePolicy GetResourcePolicy'
responses:
'200':
description: Success
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/DeleteResourcePolicyOutput'
'403':
description: AccessDeniedException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/AccessDeniedException'
'409':
description: ConflictException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/ConflictException'
'500':
description: InternalServerException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/InternalServerException'
'404':
description: ResourceNotFoundException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
'503':
description: ServiceUnavailableException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/ServiceUnavailableException'
'429':
description: ThrottlingException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/ThrottlingException'
'400':
description: ValidationException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/ValidationException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- PaymentCryptographyControlPlane.DeleteResourcePolicy
requestBody:
required: true
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/DeleteResourcePolicyInput'
tags:
- Resource Policy
/#GetResourcePolicy:
post:
operationId: GetResourcePolicy
summary: Get Resource Policy
description: 'Returns the resource-based policy attached to an Amazon Web Services Payment Cryptography key. Cross-account use: This operation can''t be used across different Amazon Web Services accounts. Related operations: PutResourcePolicy DeleteResourcePolicy'
responses:
'200':
description: Success
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/GetResourcePolicyOutput'
'403':
description: AccessDeniedException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/AccessDeniedException'
'500':
description: InternalServerException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/InternalServerException'
'404':
description: ResourceNotFoundException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
'503':
description: ServiceUnavailableException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/ServiceUnavailableException'
'429':
description: ThrottlingException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/ThrottlingException'
'400':
description: ValidationException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/ValidationException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- PaymentCryptographyControlPlane.GetResourcePolicy
requestBody:
required: true
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/GetResourcePolicyInput'
tags:
- Resource Policy
/#PutResourcePolicy:
post:
operationId: PutResourcePolicy
summary: Put Resource Policy
description: 'Attaches or replaces a resource-based policy on an Amazon Web Services Payment Cryptography key. A resource-based policy can grant cross-account access to your key. If the policy would grant public access, the request fails with a PublicPolicyException. To remove a resource-based policy from a key, use DeleteResourcePolicy. Cross-account use: This operation can''t be used across different Amazon Web Services accounts. Related operations: GetResourcePolicy DeleteResourcePolicy'
responses:
'200':
description: Success
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/PutResourcePolicyOutput'
'403':
description: AccessDeniedException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/AccessDeniedException'
'409':
description: ConflictException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/ConflictException'
'500':
description: InternalServerException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/InternalServerException'
'400':
description: PublicPolicyException; ValidationException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/PublicPolicyException'
'404':
description: ResourceNotFoundException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
'402':
description: ServiceQuotaExceededException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/ServiceQuotaExceededException'
'503':
description: ServiceUnavailableException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/ServiceUnavailableException'
'429':
description: ThrottlingException
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/ThrottlingException'
parameters:
- name: X-Amz-Target
in: header
required: true
schema:
type: string
enum:
- PaymentCryptographyControlPlane.PutResourcePolicy
requestBody:
required: true
content:
application/x-amz-json-1.0:
schema:
$ref: '#/components/schemas/PutResourcePolicyInput'
tags:
- Resource Policy
components:
schemas:
DeleteResourcePolicyOutput:
type: object
properties: {}
ConflictException:
type: object
properties:
Message:
type: string
ResourceNotFoundException:
type: object
properties:
ResourceId:
type: string
description: The identifier of the resource that was not found. This field contains the specific resource identifier (such as a key ARN or alias name) that could not be located.
GetResourcePolicyOutput:
type: object
properties:
ResourceArn:
type: string
description: The KeyARN of the key.
Policy:
type: string
description: The resource-based policy attached to the key, in JSON format.
required:
- ResourceArn
- Policy
ServiceQuotaExceededException:
type: object
properties:
Message:
type: string
PutResourcePolicyOutput:
type: object
properties:
ResourceArn:
type: string
description: The KeyARN of the key that the resource-based policy was attached to.
Policy:
type: string
description: The resource-based policy that was attached to the key.
required:
- ResourceArn
- Policy
PutResourcePolicyInput:
type: object
properties:
ResourceArn:
type: string
description: The KeyARN of the key to attach the resource-based policy to.
Policy:
type: string
description: The resource-based policy to attach to the key, in JSON format.
required:
- ResourceArn
- Policy
PublicPolicyException:
type: object
properties:
Message:
type: string
GetResourcePolicyInput:
type: object
properties:
ResourceArn:
type: string
description: The KeyARN of the key whose resource-based policy you want to retrieve.
required:
- ResourceArn
InternalServerException:
type: object
properties:
Message:
type: string
DeleteResourcePolicyInput:
type: object
properties:
ResourceArn:
type: string
description: The KeyARN of the key whose resource-based policy you want to delete.
required:
- ResourceArn
ThrottlingException:
type: object
properties:
Message:
type: string
ValidationException:
type: object
properties:
Message:
type: string
AccessDeniedException:
type: object
properties:
Message:
type: string
ServiceUnavailableException:
type: object
properties:
Message:
type: string
securitySchemes:
sigv4:
type: apiKey
in: header
name: Authorization
description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
x-aws-sigv4:
signingName: payment-cryptography
x-provenance:
method: harvested
publisher: Amazon Web Services
source: https://raw.githubusercontent.com/aws/api-models-aws/582e55931c45b944739742a2c1620b6026dd2d13/models/payment-cryptography/service/2021-09-14/payment-cryptography-2021-09-14.json
note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)