Struct aws_sdk_lightsail::client::fluent_builders::GetContactMethods [−][src]
pub struct GetContactMethods<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to GetContactMethods
.
Returns information about the configured contact methods. Specify a protocol in your request to return information about a specific contact method.
A contact method is used to send you notifications about your Amazon Lightsail resources. You can add one email address and one mobile phone number contact method in each AWS Region. However, SMS text messaging is not supported in some AWS Regions, and SMS text messages cannot be sent to some countries/regions. For more information, see Notifications in Amazon Lightsail.
Implementations
impl<C, M, R> GetContactMethods<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> GetContactMethods<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<GetContactMethodsOutput, SdkError<GetContactMethodsError>> where
R::Policy: SmithyRetryPolicy<GetContactMethodsInputOperationOutputAlias, GetContactMethodsOutput, GetContactMethodsError, GetContactMethodsInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<GetContactMethodsOutput, SdkError<GetContactMethodsError>> where
R::Policy: SmithyRetryPolicy<GetContactMethodsInputOperationOutputAlias, GetContactMethodsOutput, GetContactMethodsError, GetContactMethodsInputOperationRetryAlias>,
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.
Appends an item to protocols
.
To override the contents of this collection use set_protocols
.
The protocols used to send notifications, such as Email
, or SMS
(text messaging).
Specify a protocol in your request to return information about a specific contact method protocol.
The protocols used to send notifications, such as Email
, or SMS
(text messaging).
Specify a protocol in your request to return information about a specific contact method protocol.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for GetContactMethods<C, M, R>
impl<C, M, R> Send for GetContactMethods<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for GetContactMethods<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for GetContactMethods<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for GetContactMethods<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more