Skip to main content

payment_managers

Creates, updates, deletes, gets or lists a payment_managers resource.

Overview

Namepayment_managers
TypeResource
Idaws.bedrock_agentcore_control.payment_managers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the payment manager. (pattern: <code>[a-zA-Z][a-zA-Z0-9]{0,47}</code>)
authorizer_configurationobjectRepresents inbound authorization configuration options used to authenticate incoming requests.
authorizer_typestringThe type of authorizer used by the payment manager. CUSTOM_JWT - Authorize with a bearer token. AWS_IAM - Authorize with your Amazon Web Services IAM credentials. (CUSTOM_JWT, AWS_IAM)
created_atstring (date-time)The timestamp when the payment manager was created.
descriptionstringThe description of the payment manager. (pattern: <code>[^\p{C}]*</code>)
kms_key_arnstringThe Amazon Resource Name (ARN) of the KMS key used to encrypt sensitive payment manager data at rest, if configured. (pattern: <code>arn:aws(|-cn|-us-gov):kms:[a-zA-Z0-9-]*:[0-9]{12}:key/[a-zA-Z0-9-]{36}</code>)
last_updated_atstring (date-time)The timestamp when the payment manager was last updated.
payment_manager_arnstringThe Amazon Resource Name (ARN) of the payment manager. (pattern: <code>arn:(-[^:]+)?:bedrock-agentcore:[a-z0-9-]+:[0-9]{12}:payment-manager/([0-9a-z][-]?){1,48}-[a-z0-9]{10}</code>)
payment_manager_idstringThe unique identifier of the payment manager. (pattern: <code>([0-9a-z][-]?){1,100}-[0-9a-z]{10}</code>)
role_arnstringThe Amazon Resource Name (ARN) of the IAM role associated with the payment manager. (pattern: <code>arn:aws(-[^:]+)?:iam::([0-9]{12})?:role/.+</code>)
statusstringThe current status of the payment manager. Possible values include CREATING, READY, UPDATING, DELETING, CREATE_FAILED, UPDATE_FAILED, and DELETE_FAILED. (CREATING, UPDATING, DELETING, READY, CREATE_FAILED, UPDATE_FAILED, DELETE_FAILED)
tagsobjectThe tags associated with the payment manager.
workload_identity_detailsobjectThe information about the workload identity.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_payment_managerselectpayment_manager_id, regionRetrieves information about a specific payment manager.
list_payment_managersselectregionmaxResults, nextTokenLists all payment managers in the account.
create_payment_managerinsertregion, name, authorizerType, roleArnCreates a new payment manager in your Amazon Web Services account. A payment manager serves as the top-level resource for managing payment processing capabilities, including payment connectors that integrate with supported payment providers. If you specify CUSTOM_JWT as the authorizerType, you must provide an authorizerConfiguration.
update_payment_managerupdatepayment_manager_id, regionUpdates an existing payment manager. This operation uses PATCH semantics, so you only need to specify the fields you want to change.
delete_payment_managerdeletepayment_manager_id, regionclientTokenDeletes a payment manager. All payment connectors associated with the payment manager must be deleted before the payment manager can be deleted. This operation initiates the deletion process asynchronously.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
payment_manager_idstringThe unique identifier of the payment manager to delete.
regionstringAWS region (default: us-east-1)
clientTokenstringA unique, case-sensitive identifier to ensure that the API request completes no more than one time. If you don't specify this field, a value is randomly generated for you. If this token matches a previous request, the service ignores the request, but doesn't return an error. For more information, see Ensuring idempotency.
maxResultsintegerThe maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the nextToken field when making another request to return the next batch of results.
nextTokenstringIf the total number of results is greater than the maxResults value provided in the request, enter the token returned in the nextToken field in the response in this field to return the next batch of results.

SELECT examples

Retrieves information about a specific payment manager.

SELECT
name,
authorizer_configuration,
authorizer_type,
created_at,
description,
kms_key_arn,
last_updated_at,
payment_manager_arn,
payment_manager_id,
role_arn,
status,
tags,
workload_identity_details
FROM aws.bedrock_agentcore_control.payment_managers
WHERE payment_manager_id = '{{ payment_manager_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new payment manager in your Amazon Web Services account. A payment manager serves as the top-level resource for managing payment processing capabilities, including payment connectors that integrate with supported payment providers. If you specify CUSTOM_JWT as the authorizerType, you must provide an authorizerConfiguration.

INSERT INTO aws.bedrock_agentcore_control.payment_managers (
name,
description,
authorizerType,
authorizerConfiguration,
roleArn,
clientToken,
tags,
kmsKeyArn,
region
)
SELECT
'{{ name }}' /* required */,
'{{ description }}',
'{{ authorizerType }}' /* required */,
'{{ authorizerConfiguration }}',
'{{ roleArn }}' /* required */,
'{{ clientToken }}',
'{{ tags }}',
'{{ kmsKeyArn }}',
'{{ region }}'
RETURNING
name,
authorizer_configuration,
authorizer_type,
created_at,
kms_key_arn,
payment_manager_arn,
payment_manager_id,
role_arn,
status,
tags,
workload_identity_details
;

UPDATE examples

Updates an existing payment manager. This operation uses PATCH semantics, so you only need to specify the fields you want to change.

UPDATE aws.bedrock_agentcore_control.payment_managers
SET
description = '{{ description }}',
authorizerType = '{{ authorizerType }}',
authorizerConfiguration = '{{ authorizerConfiguration }}',
roleArn = '{{ roleArn }}',
clientToken = '{{ clientToken }}',
kmsKeyArn = '{{ kmsKeyArn }}'
WHERE
payment_manager_id = '{{ payment_manager_id }}' --required
AND region = '{{ region }}' --required
RETURNING
name,
authorizer_type,
kms_key_arn,
last_updated_at,
payment_manager_arn,
payment_manager_id,
role_arn,
status,
workload_identity_details;

DELETE examples

Deletes a payment manager. All payment connectors associated with the payment manager must be deleted before the payment manager can be deleted. This operation initiates the deletion process asynchronously.

DELETE FROM aws.bedrock_agentcore_control.payment_managers
WHERE payment_manager_id = '{{ payment_manager_id }}' --required
AND region = '{{ region }}' --required
AND clientToken = '{{ clientToken }}'
;