aws_sdk_codedeploy/client/
batch_get_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 [`BatchGetDeploymentTargets`](crate::operation::batch_get_deployment_targets::builders::BatchGetDeploymentTargetsFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`deployment_id(impl Into<String>)`](crate::operation::batch_get_deployment_targets::builders::BatchGetDeploymentTargetsFluentBuilder::deployment_id) / [`set_deployment_id(Option<String>)`](crate::operation::batch_get_deployment_targets::builders::BatchGetDeploymentTargetsFluentBuilder::set_deployment_id):<br>required: **true**<br><p>The unique ID of a deployment.</p><br>
7    ///   - [`target_ids(impl Into<String>)`](crate::operation::batch_get_deployment_targets::builders::BatchGetDeploymentTargetsFluentBuilder::target_ids) / [`set_target_ids(Option<Vec::<String>>)`](crate::operation::batch_get_deployment_targets::builders::BatchGetDeploymentTargetsFluentBuilder::set_target_ids):<br>required: **true**<br><p>The unique IDs of the deployment targets. The compute platform of the deployment determines the type of the targets and their formats. The maximum number of deployment target IDs you can specify is 25.</p> <ul>  <li>   <p>For deployments that use the EC2/On-premises compute platform, the target IDs are Amazon EC2 or on-premises instances IDs, and their target type is <code>instanceTarget</code>.</p></li>  <li>   <p>For deployments that use the Lambda compute platform, the target IDs are the names of Lambda functions, and their target type is <code>instanceTarget</code>.</p></li>  <li>   <p>For deployments that use the Amazon ECS compute platform, the target IDs are pairs of Amazon ECS clusters and services specified using the format <code><clustername>      :      <servicename></servicename>     </clustername></code>. Their target type is <code>ecsTarget</code>.</p></li>  <li>   <p>For deployments that are deployed with CloudFormation, the target IDs are CloudFormation stack IDs. Their target type is <code>cloudFormationTarget</code>.</p></li> </ul><br>
8    /// - On success, responds with [`BatchGetDeploymentTargetsOutput`](crate::operation::batch_get_deployment_targets::BatchGetDeploymentTargetsOutput) with field(s):
9    ///   - [`deployment_targets(Option<Vec::<DeploymentTarget>>)`](crate::operation::batch_get_deployment_targets::BatchGetDeploymentTargetsOutput::deployment_targets): <p>A list of target objects for a deployment. Each target object contains details about the target, such as its status and lifecycle events. The type of the target objects depends on the deployment' compute platform.</p> <ul>  <li>   <p><b>EC2/On-premises</b>: Each target object is an Amazon EC2 or on-premises instance.</p></li>  <li>   <p><b>Lambda</b>: The target object is a specific version of an Lambda function.</p></li>  <li>   <p><b>Amazon ECS</b>: The target object is an Amazon ECS service.</p></li>  <li>   <p><b>CloudFormation</b>: The target object is an CloudFormation blue/green deployment.</p></li> </ul>
10    /// - On failure, responds with [`SdkError<BatchGetDeploymentTargetsError>`](crate::operation::batch_get_deployment_targets::BatchGetDeploymentTargetsError)
11    pub fn batch_get_deployment_targets(&self) -> crate::operation::batch_get_deployment_targets::builders::BatchGetDeploymentTargetsFluentBuilder {
12        crate::operation::batch_get_deployment_targets::builders::BatchGetDeploymentTargetsFluentBuilder::new(self.handle.clone())
13    }
14}