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 ==
.