aws_sdk_codedeploy/client/
list_deployment_targets.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 [`ListDeploymentTargets`](crate::operation::list_deployment_targets::builders::ListDeploymentTargetsFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`deployment_id(impl Into<String>)`](crate::operation::list_deployment_targets::builders::ListDeploymentTargetsFluentBuilder::deployment_id) / [`set_deployment_id(Option<String>)`](crate::operation::list_deployment_targets::builders::ListDeploymentTargetsFluentBuilder::set_deployment_id):<br>required: **true**<br><p>The unique ID of a deployment.</p><br>
7    ///   - [`next_token(impl Into<String>)`](crate::operation::list_deployment_targets::builders::ListDeploymentTargetsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_deployment_targets::builders::ListDeploymentTargetsFluentBuilder::set_next_token):<br>required: **false**<br><p>A token identifier returned from the previous <code>ListDeploymentTargets</code> call. It can be used to return the next set of deployment targets in the list.</p><br>
8    ///   - [`target_filters(TargetFilterName, Vec::<String>)`](crate::operation::list_deployment_targets::builders::ListDeploymentTargetsFluentBuilder::target_filters) / [`set_target_filters(Option<HashMap::<TargetFilterName, Vec::<String>>>)`](crate::operation::list_deployment_targets::builders::ListDeploymentTargetsFluentBuilder::set_target_filters):<br>required: **false**<br><p>A key used to filter the returned targets. The two valid values are:</p> <ul>  <li>   <p><code>TargetStatus</code> - A <code>TargetStatus</code> filter string can be <code>Failed</code>, <code>InProgress</code>, <code>Pending</code>, <code>Ready</code>, <code>Skipped</code>, <code>Succeeded</code>, or <code>Unknown</code>.</p></li>  <li>   <p><code>ServerInstanceLabel</code> - A <code>ServerInstanceLabel</code> filter string can be <code>Blue</code> or <code>Green</code>.</p></li> </ul><br>
9    /// - On success, responds with [`ListDeploymentTargetsOutput`](crate::operation::list_deployment_targets::ListDeploymentTargetsOutput) with field(s):
10    ///   - [`target_ids(Option<Vec::<String>>)`](crate::operation::list_deployment_targets::ListDeploymentTargetsOutput::target_ids): <p>The unique IDs of deployment targets.</p>
11    ///   - [`next_token(Option<String>)`](crate::operation::list_deployment_targets::ListDeploymentTargetsOutput::next_token): <p>If a large amount of information is returned, a token identifier is also returned. It can be used in a subsequent <code>ListDeploymentTargets</code> call to return the next set of deployment targets in the list.</p>
12    /// - On failure, responds with [`SdkError<ListDeploymentTargetsError>`](crate::operation::list_deployment_targets::ListDeploymentTargetsError)
13    pub fn list_deployment_targets(&self) -> crate::operation::list_deployment_targets::builders::ListDeploymentTargetsFluentBuilder {
14        crate::operation::list_deployment_targets::builders::ListDeploymentTargetsFluentBuilder::new(self.handle.clone())
15    }
16}