Skip to content

BedrockAgentCoreClient.create_payment_instrument

rboto-bedrock-agentcore==0.4.0 · Service index · Types

Model summary (excerpt): Create a new payment instrument for a connector.

Install and imports

python -m pip install "rboto[bedrock-agentcore]==0.4.0"
from rboto import BedrockAgentCoreClient
from rboto_bedrock_agentcore.types import (
    CreatePaymentInstrumentOutput,
    PaymentInstrumentDetails,
    PaymentInstrumentType,
)

Signature

async def create_payment_instrument(
    *,
    payment_manager_arn: str,
    payment_connector_id: str,
    payment_instrument_type: PaymentInstrumentType,
    payment_instrument_details: PaymentInstrumentDetails,
    user_id: str | None = None,
    agent_name: str | None = None,
    client_token: str | None = None,
) -> CreatePaymentInstrumentOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
payment_manager_arn Yes The ARN of the payment manager that owns this payment instrument.
payment_connector_id Yes The ID of the payment connector to use for this instrument.
payment_instrument_type Yes The type of payment instrument being created.
payment_instrument_details Yes The details of the payment instrument.
user_id No The user ID associated with this payment instrument.
agent_name No The agent name associated with this request, used for observability.
client_token No A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

Output

CreatePaymentInstrumentOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
payment_instrument PaymentInstrumentOutput | None Always present PaymentInstrumentOutput

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

CreatePaymentInstrumentOutput, PaymentInstrumentDetails, PaymentInstrumentType

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_bedrock_agentcore.exceptions:

AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, ServiceQuotaExceededError, SubscriptionRequiredError, ThrottlingError, ValidationError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model