Skip to main content

aws_sdk_devopsagent/client/
list_pending_messages.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`ListPendingMessages`](crate::operation::list_pending_messages::builders::ListPendingMessagesFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`agent_space_id(impl Into<String>)`](crate::operation::list_pending_messages::builders::ListPendingMessagesFluentBuilder::agent_space_id) / [`set_agent_space_id(Option<String>)`](crate::operation::list_pending_messages::builders::ListPendingMessagesFluentBuilder::set_agent_space_id):<br>required: **true**<br>Unique identifier for an agent space (allows alphanumeric characters and hyphens; 1-64 characters)<br>
7    ///   - [`execution_id(impl Into<String>)`](crate::operation::list_pending_messages::builders::ListPendingMessagesFluentBuilder::execution_id) / [`set_execution_id(Option<String>)`](crate::operation::list_pending_messages::builders::ListPendingMessagesFluentBuilder::set_execution_id):<br>required: **true**<br>The unique identifier of the execution whose journal records to retrieve<br>
8    /// - On success, responds with [`ListPendingMessagesOutput`](crate::operation::list_pending_messages::ListPendingMessagesOutput) with field(s):
9    ///   - [`agent_space_id(String)`](crate::operation::list_pending_messages::ListPendingMessagesOutput::agent_space_id): Unique identifier for an agent space (allows alphanumeric characters and hyphens; 1-64 characters)
10    ///   - [`execution_id(String)`](crate::operation::list_pending_messages::ListPendingMessagesOutput::execution_id): The unique identifier for the execution.
11    ///   - [`messages(Vec::<PendingMessage>)`](crate::operation::list_pending_messages::ListPendingMessagesOutput::messages): The list of pending messages for the execution.
12    ///   - [`created_at(DateTime)`](crate::operation::list_pending_messages::ListPendingMessagesOutput::created_at): Timestamp when the pending messages were created.
13    /// - On failure, responds with [`SdkError<ListPendingMessagesError>`](crate::operation::list_pending_messages::ListPendingMessagesError)
14    pub fn list_pending_messages(&self) -> crate::operation::list_pending_messages::builders::ListPendingMessagesFluentBuilder {
15        crate::operation::list_pending_messages::builders::ListPendingMessagesFluentBuilder::new(self.handle.clone())
16    }
17}