class TaskDefinitionRevision
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.ECS.TaskDefinitionRevision |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#TaskDefinitionRevision |
![]() | software.amazon.awscdk.services.ecs.TaskDefinitionRevision |
![]() | aws_cdk.aws_ecs.TaskDefinitionRevision |
![]() | aws-cdk-lib » aws_ecs » TaskDefinitionRevision |
Represents revision of a task definition, either a specific numbered revision or the latest
revision.
Example
declare const cluster: ecs.Cluster;
declare const taskDefinition: ecs.TaskDefinition;
new ecs.ExternalService(this, 'Service', {
cluster,
taskDefinition,
desiredCount: 5,
minHealthyPercent: 100,
taskDefinitionRevision: ecs.TaskDefinitionRevision.of(1),
});
new ecs.ExternalService(this, 'Service', {
cluster,
taskDefinition,
desiredCount: 5,
minHealthyPercent: 100,
taskDefinitionRevision: ecs.TaskDefinitionRevision.LATEST,
});
Properties
Name | Type | Description |
---|---|---|
revision | string | The string representation of this revision. |
static LATEST | Task | The most recent revision of a task. |
revision
Type:
string
The string representation of this revision.
static LATEST
Type:
Task
The most recent revision of a task.
Methods
Name | Description |
---|---|
static of(revision) | Specific revision of a task. |
static of(revision)
public static of(revision: number): TaskDefinitionRevision
Parameters
- revision
number
Returns
Specific revision of a task.