pub struct ListDetectMitigationActionsExecutions { /* private fields */ }
Expand description
Operation shape for ListDetectMitigationActionsExecutions
.
This is usually constructed for you using the the fluent builder returned by
list_detect_mitigation_actions_executions
.
See crate::client::fluent_builders::ListDetectMitigationActionsExecutions
for more details about the operation.
Implementations§
source§impl ListDetectMitigationActionsExecutions
impl ListDetectMitigationActionsExecutions
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ListDetectMitigationActionsExecutionsInput
.
sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new ListDetectMitigationActionsExecutions
operation.
Examples found in repository?
src/input.rs (line 26593)
26455 26456 26457 26458 26459 26460 26461 26462 26463 26464 26465 26466 26467 26468 26469 26470 26471 26472 26473 26474 26475 26476 26477 26478 26479 26480 26481 26482 26483 26484 26485 26486 26487 26488 26489 26490 26491 26492 26493 26494 26495 26496 26497 26498 26499 26500 26501 26502 26503 26504 26505 26506 26507 26508 26509 26510 26511 26512 26513 26514 26515 26516 26517 26518 26519 26520 26521 26522 26523 26524 26525 26526 26527 26528 26529 26530 26531 26532 26533 26534 26535 26536 26537 26538 26539 26540 26541 26542 26543 26544 26545 26546 26547 26548 26549 26550 26551 26552 26553 26554 26555 26556 26557 26558 26559 26560 26561 26562 26563 26564 26565 26566 26567 26568 26569 26570 26571 26572 26573 26574 26575 26576 26577 26578 26579 26580 26581 26582 26583 26584 26585 26586 26587 26588 26589 26590 26591 26592 26593 26594 26595 26596 26597 26598 26599 26600 26601
pub async fn make_operation(
&self,
_config: &crate::config::Config,
) -> std::result::Result<
aws_smithy_http::operation::Operation<
crate::operation::ListDetectMitigationActionsExecutions,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::operation::error::BuildError,
> {
let mut request = {
fn uri_base(
_input: &crate::input::ListDetectMitigationActionsExecutionsInput,
output: &mut String,
) -> Result<(), aws_smithy_http::operation::error::BuildError> {
write!(output, "/detect/mitigationactions/executions")
.expect("formatting should succeed");
Ok(())
}
fn uri_query(
_input: &crate::input::ListDetectMitigationActionsExecutionsInput,
mut output: &mut String,
) -> Result<(), aws_smithy_http::operation::error::BuildError> {
let mut query = aws_smithy_http::query::Writer::new(&mut output);
if let Some(inner_177) = &_input.task_id {
{
query.push_kv("taskId", &aws_smithy_http::query::fmt_string(&inner_177));
}
}
if let Some(inner_178) = &_input.violation_id {
{
query.push_kv(
"violationId",
&aws_smithy_http::query::fmt_string(&inner_178),
);
}
}
if let Some(inner_179) = &_input.thing_name {
{
query.push_kv("thingName", &aws_smithy_http::query::fmt_string(&inner_179));
}
}
if let Some(inner_180) = &_input.start_time {
{
query.push_kv(
"startTime",
&aws_smithy_http::query::fmt_timestamp(
inner_180,
aws_smithy_types::date_time::Format::DateTime,
)?,
);
}
}
if let Some(inner_181) = &_input.end_time {
{
query.push_kv(
"endTime",
&aws_smithy_http::query::fmt_timestamp(
inner_181,
aws_smithy_types::date_time::Format::DateTime,
)?,
);
}
}
if let Some(inner_182) = &_input.max_results {
if *inner_182 != 0 {
query.push_kv(
"maxResults",
aws_smithy_types::primitive::Encoder::from(*inner_182).encode(),
);
}
}
if let Some(inner_183) = &_input.next_token {
{
query.push_kv("nextToken", &aws_smithy_http::query::fmt_string(&inner_183));
}
}
Ok(())
}
#[allow(clippy::unnecessary_wraps)]
fn update_http_builder(
input: &crate::input::ListDetectMitigationActionsExecutionsInput,
builder: http::request::Builder,
) -> std::result::Result<
http::request::Builder,
aws_smithy_http::operation::error::BuildError,
> {
let mut uri = String::new();
uri_base(input, &mut uri)?;
uri_query(input, &mut uri)?;
Ok(builder.method("GET").uri(uri))
}
let mut builder = update_http_builder(&self, http::request::Builder::new())?;
builder
};
let mut properties = aws_smithy_http::property_bag::SharedPropertyBag::new();
#[allow(clippy::useless_conversion)]
let body = aws_smithy_http::body::SdkBody::from("");
let request = request.body(body).expect("should be valid request");
let mut request = aws_smithy_http::operation::Request::from_parts(request, properties);
request
.properties_mut()
.insert(aws_smithy_http::http_versions::DEFAULT_HTTP_VERSION_LIST.clone());
let mut user_agent = aws_http::user_agent::AwsUserAgent::new_from_environment(
aws_types::os_shim_internal::Env::real(),
crate::API_METADATA.clone(),
);
if let Some(app_name) = _config.app_name() {
user_agent = user_agent.with_app_name(app_name.clone());
}
request.properties_mut().insert(user_agent);
let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config();
request.properties_mut().insert(signing_config);
request
.properties_mut()
.insert(aws_types::SigningService::from_static(
_config.signing_service(),
));
if let Some(region) = &_config.region {
request
.properties_mut()
.insert(aws_types::region::SigningRegion::from(region.clone()));
}
let endpoint_params = aws_endpoint::Params::new(_config.region.clone());
request
.properties_mut()
.insert::<aws_smithy_http::endpoint::Result>(
_config.endpoint_resolver.resolve_endpoint(&endpoint_params),
);
if let Some(region) = &_config.region {
request.properties_mut().insert(region.clone());
}
aws_http::auth::set_provider(
&mut request.properties_mut(),
_config.credentials_provider.clone(),
);
let op = aws_smithy_http::operation::Operation::new(
request,
crate::operation::ListDetectMitigationActionsExecutions::new(),
)
.with_metadata(aws_smithy_http::operation::Metadata::new(
"ListDetectMitigationActionsExecutions",
"iot",
));
let op = op.with_retry_classifier(aws_http::retry::AwsResponseRetryClassifier::new());
Ok(op)
}
Trait Implementations§
source§impl Clone for ListDetectMitigationActionsExecutions
impl Clone for ListDetectMitigationActionsExecutions
source§fn clone(&self) -> ListDetectMitigationActionsExecutions
fn clone(&self) -> ListDetectMitigationActionsExecutions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for ListDetectMitigationActionsExecutions
impl Default for ListDetectMitigationActionsExecutions
source§fn default() -> ListDetectMitigationActionsExecutions
fn default() -> ListDetectMitigationActionsExecutions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ListDetectMitigationActionsExecutions
impl Send for ListDetectMitigationActionsExecutions
impl Sync for ListDetectMitigationActionsExecutions
impl Unpin for ListDetectMitigationActionsExecutions
impl UnwindSafe for ListDetectMitigationActionsExecutions
Blanket Implementations§
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> ParseHttpResponse for Twhere
T: ParseStrictResponse,
impl<T> ParseHttpResponse for Twhere
T: ParseStrictResponse,
§type Output = <T as ParseStrictResponse>::Output
type Output = <T as ParseStrictResponse>::Output
Output type of the HttpResponse. Read more
source§fn parse_unloaded(
&self,
_response: &mut Response
) -> Option<<T as ParseHttpResponse>::Output>
fn parse_unloaded(
&self,
_response: &mut Response
) -> Option<<T as ParseHttpResponse>::Output>
Parse an HTTP request without reading the body. If the body must be provided to proceed,
return
None
Read moresource§fn parse_loaded(
&self,
response: &Response<Bytes>
) -> <T as ParseHttpResponse>::Output
fn parse_loaded(
&self,
response: &Response<Bytes>
) -> <T as ParseHttpResponse>::Output
Parse an HTTP request from a fully loaded body. This is for standard request/response style
APIs like AwsJson 1.0/1.1 and the error path of most streaming APIs Read more