Struct aws_sdk_sns::client::fluent_builders::ConfirmSubscription
source · [−]pub struct ConfirmSubscription { /* private fields */ }
Expand description
Fluent builder constructing a request to ConfirmSubscription
.
Verifies an endpoint owner's intent to receive messages by validating the token sent to the endpoint by an earlier Subscribe
action. If the token is valid, the action creates a new subscription and returns its Amazon Resource Name (ARN). This call requires an AWS signature only when the AuthenticateOnUnsubscribe
flag is set to "true".
Implementations
sourceimpl ConfirmSubscription
impl ConfirmSubscription
sourcepub async fn send(
self
) -> Result<ConfirmSubscriptionOutput, SdkError<ConfirmSubscriptionError>>
pub async fn send(
self
) -> Result<ConfirmSubscriptionOutput, SdkError<ConfirmSubscriptionError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn topic_arn(self, input: impl Into<String>) -> Self
pub fn topic_arn(self, input: impl Into<String>) -> Self
The ARN of the topic for which you wish to confirm a subscription.
sourcepub fn set_topic_arn(self, input: Option<String>) -> Self
pub fn set_topic_arn(self, input: Option<String>) -> Self
The ARN of the topic for which you wish to confirm a subscription.
sourcepub fn token(self, input: impl Into<String>) -> Self
pub fn token(self, input: impl Into<String>) -> Self
Short-lived token sent to an endpoint during the Subscribe
action.
sourcepub fn set_token(self, input: Option<String>) -> Self
pub fn set_token(self, input: Option<String>) -> Self
Short-lived token sent to an endpoint during the Subscribe
action.
sourcepub fn authenticate_on_unsubscribe(self, input: impl Into<String>) -> Self
pub fn authenticate_on_unsubscribe(self, input: impl Into<String>) -> Self
Disallows unauthenticated unsubscribes of the subscription. If the value of this parameter is true
and the request has an Amazon Web Services signature, then only the topic owner and the subscription owner can unsubscribe the endpoint. The unsubscribe action requires Amazon Web Services authentication.
sourcepub fn set_authenticate_on_unsubscribe(self, input: Option<String>) -> Self
pub fn set_authenticate_on_unsubscribe(self, input: Option<String>) -> Self
Disallows unauthenticated unsubscribes of the subscription. If the value of this parameter is true
and the request has an Amazon Web Services signature, then only the topic owner and the subscription owner can unsubscribe the endpoint. The unsubscribe action requires Amazon Web Services authentication.
Trait Implementations
sourceimpl Clone for ConfirmSubscription
impl Clone for ConfirmSubscription
sourcefn clone(&self) -> ConfirmSubscription
fn clone(&self) -> ConfirmSubscription
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for ConfirmSubscription
impl Send for ConfirmSubscription
impl Sync for ConfirmSubscription
impl Unpin for ConfirmSubscription
impl !UnwindSafe for ConfirmSubscription
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more