// Returns an array of one or more targets associated with a deployment. This
// method works with all compute types and should be used instead of the deprecated
// BatchGetDeploymentInstances. The maximum number of targets that can be returned
// is 25. The type of targets returned depends on the deployment's compute platform
// or deployment method:
//
// * EC2/On-premises: Information about EC2 instance
// targets.
//
// * AWS Lambda: Information about Lambda functions targets.
//
// * Amazon
// ECS: Information about Amazon ECS service targets.
//
// * CloudFormation:
// Information about targets of blue/green deployments initiated by a
// CloudFormation stack update.
Returns an array of one or more targets associated with a deployment. This
method works with all compute types and should be used instead of the deprecated
BatchGetDeploymentInstances. The maximum number of targets that can be returned
is 25. The type of targets returned depends on the deployment's compute platform
or deployment method.

EC2/On-premises: Information about EC2 instance
targets.

AWS Lambda: Information about Lambda functions targets.

Amazon
ECS: Information about Amazon ECS service targets.

Information about targets of blue/green deployments initiated by a
CloudFormation stack update.
// Returns an array of one or more targets associated with a deployment . This // method works with all compute types and should be used instead of the deprecated // BatchGetDeploymentInstances . The maximum number of targets that can be returned // is 25 . The type of targets returned depends on the deployment ' s compute platform // or deployment method : // // * EC2 / On - premises : Information about EC2 instance // targets . // // * AWS Lambda : Information about Lambda functions targets . // // * Amazon // ECS : Information about Amazon ECS service targets . // // * CloudFormation : // Information about targets of blue / green deployments initiated by a // CloudFormation stack update .
func (c *Client) BatchGetDeploymentTargets(ctx context.Context, params *BatchGetDeploymentTargetsInput, optFns ...func(*Options)) (*BatchGetDeploymentTargetsOutput, error) {
	if params == nil {
		params = &BatchGetDeploymentTargetsInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "BatchGetDeploymentTargets", params, optFns, addOperationBatchGetDeploymentTargetsMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*BatchGetDeploymentTargetsOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) BatchGetDeploymentTargets ( ctx context . Context , params * BatchGetDeploymentTargetsInput , optFns ... func ( * Options ) ) ( * BatchGetDeploymentTargetsOutput , error ) { if params == nil { params = & BatchGetDeploymentTargetsInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationBatchGetDeploymentTargetsMiddlewares ) if err != nil { return nil , err } out := result . ( * BatchGetDeploymentTargetsOutput ) out . ResultMetadata = metadata return out , nil }
Returns an array of one or more targets associated with a deployment.
Returns an array of one or more targets associated with a deployment .