list_payment_instruments
async
¶
list_payment_instruments(
payment_manager_arn: PaymentManagerArn,
*,
config_overrides: Optional[AsyncBedrockAgentCoreClientConfig] = None,
user_id: Optional[UserId] = None,
agent_name: Optional[PaymentAgentName] = None,
payment_connector_id: Optional[PaymentConnectorId] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[int] = None,
) -> ListPaymentInstrumentsResponse
List payment instruments for a manager.
Parameters:
-
user_id(Optional[UserId], default:None) –The user ID associated with the payment instruments.
-
agent_name(Optional[PaymentAgentName], default:None) –The agent name associated with this request, used for observability.
-
payment_manager_arn(PaymentManagerArn) –The ARN of the payment manager that owns the payment instruments.
-
payment_connector_id(Optional[PaymentConnectorId], default:None) –The ID of the payment connector to filter by.
-
next_token(Optional[NextToken], default:None) –Token for pagination to retrieve the next set of results.
-
max_results(Optional[int], default:None) –Maximum number of results to return in a single response.
Raises:
-
AccessDeniedException–The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.
-
InternalServerException–The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.
-
ThrottlingException–The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.
-
ValidationException–The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock_agentcore/_services/async_bedrock_agent_core.py
5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 | |