amazonka-codedeploy-2.0: Amazon CodeDeploy SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CodeDeploy.BatchGetDeploymentTargets

Description

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 Amazon EC2 instance targets.
  • 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.
Synopsis

Creating a Request

data BatchGetDeploymentTargets Source #

See: newBatchGetDeploymentTargets smart constructor.

Constructors

BatchGetDeploymentTargets' 

Fields

  • deploymentId :: Maybe Text

    The unique ID of a deployment.

  • targetIds :: Maybe [Text]

    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.

    • 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 instanceTarget.
    • For deployments that use the Lambda compute platform, the target IDs are the names of Lambda functions, and their target type is instanceTarget.
    • For deployments that use the Amazon ECS compute platform, the target IDs are pairs of Amazon ECS clusters and services specified using the format <clustername>:<servicename>. Their target type is ecsTarget.
    • For deployments that are deployed with CloudFormation, the target IDs are CloudFormation stack IDs. Their target type is cloudFormationTarget.

Instances

Instances details
ToJSON BatchGetDeploymentTargets Source # 
Instance details

Defined in Amazonka.CodeDeploy.BatchGetDeploymentTargets

ToHeaders BatchGetDeploymentTargets Source # 
Instance details

Defined in Amazonka.CodeDeploy.BatchGetDeploymentTargets

ToPath BatchGetDeploymentTargets Source # 
Instance details

Defined in Amazonka.CodeDeploy.BatchGetDeploymentTargets

ToQuery BatchGetDeploymentTargets Source # 
Instance details

Defined in Amazonka.CodeDeploy.BatchGetDeploymentTargets

AWSRequest BatchGetDeploymentTargets Source # 
Instance details

Defined in Amazonka.CodeDeploy.BatchGetDeploymentTargets

Generic BatchGetDeploymentTargets Source # 
Instance details

Defined in Amazonka.CodeDeploy.BatchGetDeploymentTargets

Associated Types

type Rep BatchGetDeploymentTargets :: Type -> Type #

Read BatchGetDeploymentTargets Source # 
Instance details

Defined in Amazonka.CodeDeploy.BatchGetDeploymentTargets

Show BatchGetDeploymentTargets Source # 
Instance details

Defined in Amazonka.CodeDeploy.BatchGetDeploymentTargets

NFData BatchGetDeploymentTargets Source # 
Instance details

Defined in Amazonka.CodeDeploy.BatchGetDeploymentTargets

Eq BatchGetDeploymentTargets Source # 
Instance details

Defined in Amazonka.CodeDeploy.BatchGetDeploymentTargets

Hashable BatchGetDeploymentTargets Source # 
Instance details

Defined in Amazonka.CodeDeploy.BatchGetDeploymentTargets

type AWSResponse BatchGetDeploymentTargets Source # 
Instance details

Defined in Amazonka.CodeDeploy.BatchGetDeploymentTargets

type Rep BatchGetDeploymentTargets Source # 
Instance details

Defined in Amazonka.CodeDeploy.BatchGetDeploymentTargets

type Rep BatchGetDeploymentTargets = D1 ('MetaData "BatchGetDeploymentTargets" "Amazonka.CodeDeploy.BatchGetDeploymentTargets" "amazonka-codedeploy-2.0-4OehMEUeOr9G9ZXD2VmvAo" 'False) (C1 ('MetaCons "BatchGetDeploymentTargets'" 'PrefixI 'True) (S1 ('MetaSel ('Just "deploymentId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "targetIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))))

newBatchGetDeploymentTargets :: BatchGetDeploymentTargets Source #

Create a value of BatchGetDeploymentTargets with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

BatchGetDeploymentTargets, batchGetDeploymentTargets_deploymentId - The unique ID of a deployment.

$sel:targetIds:BatchGetDeploymentTargets', batchGetDeploymentTargets_targetIds - 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.

  • 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 instanceTarget.
  • For deployments that use the Lambda compute platform, the target IDs are the names of Lambda functions, and their target type is instanceTarget.
  • For deployments that use the Amazon ECS compute platform, the target IDs are pairs of Amazon ECS clusters and services specified using the format <clustername>:<servicename>. Their target type is ecsTarget.
  • For deployments that are deployed with CloudFormation, the target IDs are CloudFormation stack IDs. Their target type is cloudFormationTarget.

Request Lenses

batchGetDeploymentTargets_targetIds :: Lens' BatchGetDeploymentTargets (Maybe [Text]) Source #

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.

  • 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 instanceTarget.
  • For deployments that use the Lambda compute platform, the target IDs are the names of Lambda functions, and their target type is instanceTarget.
  • For deployments that use the Amazon ECS compute platform, the target IDs are pairs of Amazon ECS clusters and services specified using the format <clustername>:<servicename>. Their target type is ecsTarget.
  • For deployments that are deployed with CloudFormation, the target IDs are CloudFormation stack IDs. Their target type is cloudFormationTarget.

Destructuring the Response

data BatchGetDeploymentTargetsResponse Source #

See: newBatchGetDeploymentTargetsResponse smart constructor.

Constructors

BatchGetDeploymentTargetsResponse' 

Fields

  • deploymentTargets :: Maybe [DeploymentTarget]

    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.

    • EC2/On-premises: Each target object is an Amazon EC2 or on-premises instance.
    • Lambda: The target object is a specific version of an Lambda function.
    • Amazon ECS: The target object is an Amazon ECS service.
    • CloudFormation: The target object is an CloudFormation blue/green deployment.
  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic BatchGetDeploymentTargetsResponse Source # 
Instance details

Defined in Amazonka.CodeDeploy.BatchGetDeploymentTargets

Associated Types

type Rep BatchGetDeploymentTargetsResponse :: Type -> Type #

Read BatchGetDeploymentTargetsResponse Source # 
Instance details

Defined in Amazonka.CodeDeploy.BatchGetDeploymentTargets

Show BatchGetDeploymentTargetsResponse Source # 
Instance details

Defined in Amazonka.CodeDeploy.BatchGetDeploymentTargets

NFData BatchGetDeploymentTargetsResponse Source # 
Instance details

Defined in Amazonka.CodeDeploy.BatchGetDeploymentTargets

Eq BatchGetDeploymentTargetsResponse Source # 
Instance details

Defined in Amazonka.CodeDeploy.BatchGetDeploymentTargets

type Rep BatchGetDeploymentTargetsResponse Source # 
Instance details

Defined in Amazonka.CodeDeploy.BatchGetDeploymentTargets

type Rep BatchGetDeploymentTargetsResponse = D1 ('MetaData "BatchGetDeploymentTargetsResponse" "Amazonka.CodeDeploy.BatchGetDeploymentTargets" "amazonka-codedeploy-2.0-4OehMEUeOr9G9ZXD2VmvAo" 'False) (C1 ('MetaCons "BatchGetDeploymentTargetsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "deploymentTargets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [DeploymentTarget])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newBatchGetDeploymentTargetsResponse Source #

Create a value of BatchGetDeploymentTargetsResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:deploymentTargets:BatchGetDeploymentTargetsResponse', batchGetDeploymentTargetsResponse_deploymentTargets - 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.

  • EC2/On-premises: Each target object is an Amazon EC2 or on-premises instance.
  • Lambda: The target object is a specific version of an Lambda function.
  • Amazon ECS: The target object is an Amazon ECS service.
  • CloudFormation: The target object is an CloudFormation blue/green deployment.

$sel:httpStatus:BatchGetDeploymentTargetsResponse', batchGetDeploymentTargetsResponse_httpStatus - The response's http status code.

Response Lenses

batchGetDeploymentTargetsResponse_deploymentTargets :: Lens' BatchGetDeploymentTargetsResponse (Maybe [DeploymentTarget]) Source #

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.

  • EC2/On-premises: Each target object is an Amazon EC2 or on-premises instance.
  • Lambda: The target object is a specific version of an Lambda function.
  • Amazon ECS: The target object is an Amazon ECS service.
  • CloudFormation: The target object is an CloudFormation blue/green deployment.