aws_sdk_codepipeline/client/poll_for_jobs.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 [`PollForJobs`](crate::operation::poll_for_jobs::builders::PollForJobsFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`action_type_id(ActionTypeId)`](crate::operation::poll_for_jobs::builders::PollForJobsFluentBuilder::action_type_id) / [`set_action_type_id(Option<ActionTypeId>)`](crate::operation::poll_for_jobs::builders::PollForJobsFluentBuilder::set_action_type_id):<br>required: **true**<br><p>Represents information about an action type.</p><br>
7 /// - [`max_batch_size(i32)`](crate::operation::poll_for_jobs::builders::PollForJobsFluentBuilder::max_batch_size) / [`set_max_batch_size(Option<i32>)`](crate::operation::poll_for_jobs::builders::PollForJobsFluentBuilder::set_max_batch_size):<br>required: **false**<br><p>The maximum number of jobs to return in a poll for jobs call.</p><br>
8 /// - [`query_param(impl Into<String>, impl Into<String>)`](crate::operation::poll_for_jobs::builders::PollForJobsFluentBuilder::query_param) / [`set_query_param(Option<HashMap::<String, String>>)`](crate::operation::poll_for_jobs::builders::PollForJobsFluentBuilder::set_query_param):<br>required: **false**<br><p>A map of property names and values. For an action type with no queryable properties, this value must be null or an empty map. For an action type with a queryable property, you must supply that property as a key in the map. Only jobs whose action configuration matches the mapped value are returned.</p><br>
9 /// - On success, responds with [`PollForJobsOutput`](crate::operation::poll_for_jobs::PollForJobsOutput) with field(s):
10 /// - [`jobs(Option<Vec::<Job>>)`](crate::operation::poll_for_jobs::PollForJobsOutput::jobs): <p>Information about the jobs to take action on.</p>
11 /// - On failure, responds with [`SdkError<PollForJobsError>`](crate::operation::poll_for_jobs::PollForJobsError)
12 pub fn poll_for_jobs(&self) -> crate::operation::poll_for_jobs::builders::PollForJobsFluentBuilder {
13 crate::operation::poll_for_jobs::builders::PollForJobsFluentBuilder::new(self.handle.clone())
14 }
15}