Skip to content
v2.275.0

Ec2MaxInstances Class ​

Number or percentage of max instances for EC2 deploy action.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codepipeline_actions as codepipeline_actions } from 'aws-cdk-lib';
const ec2MaxInstances = codepipeline_actions.Ec2MaxInstances.percentage(123);

Initializer ​

ts
new Ec2MaxInstances()
python
Ec2MaxInstances()
java
new Ec2MaxInstances()
csharp
new Ec2MaxInstances()
go
NewEc2MaxInstances()

Properties ​

valuestringvaluestrvalueStringValuestringValue*string#
Template value.

Methods ​

percentage(percentage: number): Ec2MaxInstances // chainable@staticmethod def percentage(percentage: int | float) -> Ec2MaxInstancespublic static Ec2MaxInstances percentage(Number percentage)public static Ec2MaxInstances Percentage(double percentage)func Percentage(Percentage *float64) Ec2MaxInstancesstatic#
Max percentage of instances.

Valid range: from 1 to 100

targets(targets: number): Ec2MaxInstances // chainable@staticmethod def targets(targets: int | float) -> Ec2MaxInstancespublic static Ec2MaxInstances targets(Number targets)public static Ec2MaxInstances Targets(double targets)func Targets(Targets *float64) Ec2MaxInstancesstatic#
Max number of instances.

Valid range: from 1 to number of your instances