Struct aws_sdk_iot::types::HttpAction
source · #[non_exhaustive]pub struct HttpAction {
pub url: String,
pub confirmation_url: Option<String>,
pub headers: Option<Vec<HttpActionHeader>>,
pub auth: Option<HttpAuthorization>,
}
Expand description
Send data to an HTTPS endpoint.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.url: String
The endpoint URL. If substitution templates are used in the URL, you must also specify a confirmationUrl
. If this is a new destination, a new TopicRuleDestination
is created if possible.
confirmation_url: Option<String>
The URL to which IoT sends a confirmation message. The value of the confirmation URL must be a prefix of the endpoint URL. If you do not specify a confirmation URL IoT uses the endpoint URL as the confirmation URL. If you use substitution templates in the confirmationUrl, you must create and enable topic rule destinations that match each possible value of the substitution template before traffic is allowed to your endpoint URL.
headers: Option<Vec<HttpActionHeader>>
The HTTP headers to send with the message data.
auth: Option<HttpAuthorization>
The authentication method to use when sending data to an HTTPS endpoint.
Implementations§
source§impl HttpAction
impl HttpAction
sourcepub fn url(&self) -> &str
pub fn url(&self) -> &str
The endpoint URL. If substitution templates are used in the URL, you must also specify a confirmationUrl
. If this is a new destination, a new TopicRuleDestination
is created if possible.
sourcepub fn confirmation_url(&self) -> Option<&str>
pub fn confirmation_url(&self) -> Option<&str>
The URL to which IoT sends a confirmation message. The value of the confirmation URL must be a prefix of the endpoint URL. If you do not specify a confirmation URL IoT uses the endpoint URL as the confirmation URL. If you use substitution templates in the confirmationUrl, you must create and enable topic rule destinations that match each possible value of the substitution template before traffic is allowed to your endpoint URL.
sourcepub fn headers(&self) -> &[HttpActionHeader]
pub fn headers(&self) -> &[HttpActionHeader]
The HTTP headers to send with the message data.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .headers.is_none()
.
sourcepub fn auth(&self) -> Option<&HttpAuthorization>
pub fn auth(&self) -> Option<&HttpAuthorization>
The authentication method to use when sending data to an HTTPS endpoint.
source§impl HttpAction
impl HttpAction
sourcepub fn builder() -> HttpActionBuilder
pub fn builder() -> HttpActionBuilder
Creates a new builder-style object to manufacture HttpAction
.
Trait Implementations§
source§impl Clone for HttpAction
impl Clone for HttpAction
source§fn clone(&self) -> HttpAction
fn clone(&self) -> HttpAction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HttpAction
impl Debug for HttpAction
source§impl PartialEq for HttpAction
impl PartialEq for HttpAction
source§fn eq(&self, other: &HttpAction) -> bool
fn eq(&self, other: &HttpAction) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for HttpAction
Auto Trait Implementations§
impl Freeze for HttpAction
impl RefUnwindSafe for HttpAction
impl Send for HttpAction
impl Sync for HttpAction
impl Unpin for HttpAction
impl UnwindSafe for HttpAction
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more