create_payment_connector
¶
create_payment_connector(
payment_manager_id: PaymentManagerId,
name: PaymentConnectorName,
type: PaymentConnectorType,
credential_provider_configurations: CredentialsProviderConfigurations,
*,
config_overrides: Optional[BedrockAgentCoreControlClientConfig] = None,
description: Optional[PaymentsDescription] = None,
provision_mode: Optional[PaymentConnectorProvisionMode] = None,
client_token: Optional[ClientToken] = None,
) -> CreatePaymentConnectorResponse
Creates a new payment connector for a payment manager. A payment connector integrates with a supported payment provider to enable payment processing capabilities.
Parameters:
-
payment_manager_id(PaymentManagerId) –The unique identifier of the payment manager to create the connector for.
-
name(PaymentConnectorName) –The name of the payment connector.
-
description(Optional[PaymentsDescription], default:None) –A description of the payment connector.
-
type(PaymentConnectorType) –The type of payment connector, which determines the payment provider integration.
-
credential_provider_configurations(CredentialsProviderConfigurations) –The credential provider configurations for the payment connector. These configurations specify how the connector authenticates with the payment provider.
-
provision_mode(Optional[PaymentConnectorProvisionMode], default:None) –The provision mode for creating the payment connector. If you don't specify a value, the default is
MANUAL.-
MANUAL- You provide the credential provider configurations directly. -
QUICK_CREATE- The service orchestrates OAuth consent and provisions the credential provider for you.
-
-
client_token(Optional[ClientToken], default:None) –A 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.
Raises:
-
AccessDeniedException–This exception is thrown when a request is denied per access permissions
-
ConflictException–This exception is thrown when there is a conflict performing an operation
-
InternalServerException–This exception is thrown if there was an unexpected error during processing of request
-
ResourceNotFoundException–This exception is thrown when a resource referenced by the operation does not exist
-
ServiceQuotaExceededException–This exception is thrown when a request is made beyond the service quota
-
SubscriptionRequiredException–The request failed because it requires an active Amazon Web Services Marketplace subscription that is not present. Subscribe to the required product in Amazon Web Services Marketplace and try again.
-
ThrottlingException–This exception is thrown when the number of requests exceeds the limit
-
ValidationException–The input fails to satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock_agentcore_control/_services/bedrock_agent_core_control.py
10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 | |