Skip to main content

aws_sdk_bedrockagentcore/client/
delete_payment_session.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`DeletePaymentSession`](crate::operation::delete_payment_session::builders::DeletePaymentSessionFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`user_id(impl Into<String>)`](crate::operation::delete_payment_session::builders::DeletePaymentSessionFluentBuilder::user_id) / [`set_user_id(Option<String>)`](crate::operation::delete_payment_session::builders::DeletePaymentSessionFluentBuilder::set_user_id):<br>required: **false**<br><p>The user ID making the delete request. Must match the session's userId.</p><br>
7    ///   - [`payment_manager_arn(impl Into<String>)`](crate::operation::delete_payment_session::builders::DeletePaymentSessionFluentBuilder::payment_manager_arn) / [`set_payment_manager_arn(Option<String>)`](crate::operation::delete_payment_session::builders::DeletePaymentSessionFluentBuilder::set_payment_manager_arn):<br>required: **true**<br><p>The payment manager ARN. Must match the session's paymentManagerArn.</p><br>
8    ///   - [`payment_session_id(impl Into<String>)`](crate::operation::delete_payment_session::builders::DeletePaymentSessionFluentBuilder::payment_session_id) / [`set_payment_session_id(Option<String>)`](crate::operation::delete_payment_session::builders::DeletePaymentSessionFluentBuilder::set_payment_session_id):<br>required: **true**<br><p>The payment session ID to delete.</p><br>
9    /// - On success, responds with [`DeletePaymentSessionOutput`](crate::operation::delete_payment_session::DeletePaymentSessionOutput) with field(s):
10    ///   - [`status(PaymentSessionStatus)`](crate::operation::delete_payment_session::DeletePaymentSessionOutput::status): <p>The status of the deletion. Always DELETED for successful hard delete.</p>
11    /// - On failure, responds with [`SdkError<DeletePaymentSessionError>`](crate::operation::delete_payment_session::DeletePaymentSessionError)
12    pub fn delete_payment_session(&self) -> crate::operation::delete_payment_session::builders::DeletePaymentSessionFluentBuilder {
13        crate::operation::delete_payment_session::builders::DeletePaymentSessionFluentBuilder::new(self.handle.clone())
14    }
15}