Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
Synopsis
- data BatchGetDeploymentTargets = BatchGetDeploymentTargets' {}
- newBatchGetDeploymentTargets :: BatchGetDeploymentTargets
- batchGetDeploymentTargets_deploymentId :: Lens' BatchGetDeploymentTargets (Maybe Text)
- batchGetDeploymentTargets_targetIds :: Lens' BatchGetDeploymentTargets (Maybe [Text])
- data BatchGetDeploymentTargetsResponse = BatchGetDeploymentTargetsResponse' {}
- newBatchGetDeploymentTargetsResponse :: Int -> BatchGetDeploymentTargetsResponse
- batchGetDeploymentTargetsResponse_deploymentTargets :: Lens' BatchGetDeploymentTargetsResponse (Maybe [DeploymentTarget])
- batchGetDeploymentTargetsResponse_httpStatus :: Lens' BatchGetDeploymentTargetsResponse Int
Creating a Request
data BatchGetDeploymentTargets Source #
See: newBatchGetDeploymentTargets
smart constructor.
BatchGetDeploymentTargets' | |
|
Instances
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:
$sel:deploymentId: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 EC2 or on-premises instances IDs, and their target
type is
instanceTarget
. - For deployments that use the AWS 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 isecsTarget
. - For deployments that are deployed with AWS CloudFormation, the
target IDs are CloudFormation stack IDs. Their target type is
cloudFormationTarget
.
Request Lenses
batchGetDeploymentTargets_deploymentId :: Lens' BatchGetDeploymentTargets (Maybe Text) Source #
The unique ID of a deployment.
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 EC2 or on-premises instances IDs, and their target
type is
instanceTarget
. - For deployments that use the AWS 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 isecsTarget
. - For deployments that are deployed with AWS CloudFormation, the
target IDs are CloudFormation stack IDs. Their target type is
cloudFormationTarget
.
Destructuring the Response
data BatchGetDeploymentTargetsResponse Source #
See: newBatchGetDeploymentTargetsResponse
smart constructor.
BatchGetDeploymentTargetsResponse' | |
|
Instances
Eq BatchGetDeploymentTargetsResponse Source # | |
Read BatchGetDeploymentTargetsResponse Source # | |
Show BatchGetDeploymentTargetsResponse Source # | |
Generic BatchGetDeploymentTargetsResponse Source # | |
NFData BatchGetDeploymentTargetsResponse Source # | |
Defined in Amazonka.CodeDeploy.BatchGetDeploymentTargets rnf :: BatchGetDeploymentTargetsResponse -> () # | |
type Rep BatchGetDeploymentTargetsResponse Source # | |
Defined in Amazonka.CodeDeploy.BatchGetDeploymentTargets type Rep BatchGetDeploymentTargetsResponse = D1 ('MetaData "BatchGetDeploymentTargetsResponse" "Amazonka.CodeDeploy.BatchGetDeploymentTargets" "libZSservicesZSamazonka-codedeployZSamazonka-codedeploy" '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 EC2 or on-premises instance.
- AWS Lambda: The target object is a specific version of an AWS Lambda function.
- Amazon ECS: The target object is an Amazon ECS service.
- CloudFormation: The target object is an AWS 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 EC2 or on-premises instance.
- AWS Lambda: The target object is a specific version of an AWS Lambda function.
- Amazon ECS: The target object is an Amazon ECS service.
- CloudFormation: The target object is an AWS CloudFormation blue/green deployment.
batchGetDeploymentTargetsResponse_httpStatus :: Lens' BatchGetDeploymentTargetsResponse Int Source #
The response's http status code.