Show / Hide Table of Contents

Class ScheduledFargateTask

A scheduled Fargate task that will be initiated off of CloudWatch Events.

Inheritance
System.Object
Construct
ScheduledTaskBase
ScheduledFargateTask
Implements
IConstruct
Constructs.IConstruct
IDependable
Inherited Members
ScheduledTaskBase.AddTaskAsTarget(EcsTask)
ScheduledTaskBase.AddTaskDefinitionToEventTarget(TaskDefinition)
ScheduledTaskBase.CreateAWSLogDriver(String)
ScheduledTaskBase.GetDefaultCluster(Construct, IVpc)
ScheduledTaskBase.Cluster
ScheduledTaskBase.DesiredTaskCount
ScheduledTaskBase.EventRule
ScheduledTaskBase.SubnetSelection
Construct.IsConstruct(Object)
Construct.OnPrepare()
Construct.OnSynthesize(ISynthesisSession)
Construct.OnValidate()
Construct.Prepare()
Construct.Synthesize(ISynthesisSession)
Construct.Validate()
Construct.Node
Namespace: Amazon.CDK.AWS.ECS.Patterns
Assembly: Amazon.CDK.AWS.ECS.Patterns.dll
Syntax (csharp)
public class ScheduledFargateTask : ScheduledTaskBase, IConstruct, IDependable
Syntax (vb)
Public Class ScheduledFargateTask
    Inherits ScheduledTaskBase
    Implements IConstruct, IDependable
Remarks

ExampleMetadata: infused

Examples
Cluster cluster;

var scheduledFargateTask = new ScheduledFargateTask(this, "ScheduledFargateTask", new ScheduledFargateTaskProps {
    Cluster = cluster,
    ScheduledFargateTaskImageOptions = new ScheduledFargateTaskImageOptions {
        Image = ContainerImage.FromRegistry("amazon/amazon-ecs-sample"),
        MemoryLimitMiB = 512
    },
    Schedule = Schedule.Expression("rate(1 minute)"),
    PlatformVersion = FargatePlatformVersion.LATEST
});

Synopsis

Constructors

ScheduledFargateTask(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

ScheduledFargateTask(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

ScheduledFargateTask(Construct, String, IScheduledFargateTaskProps)

Constructs a new instance of the ScheduledFargateTask class.

Properties

Task

The ECS task in this construct.

TaskDefinition

The Fargate task definition in this construct.

Constructors

ScheduledFargateTask(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

protected ScheduledFargateTask(ByRefValue reference)
Parameters
reference Amazon.JSII.Runtime.Deputy.ByRefValue

The Javascript-owned object reference

ScheduledFargateTask(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

protected ScheduledFargateTask(DeputyBase.DeputyProps props)
Parameters
props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps

The deputy props

ScheduledFargateTask(Construct, String, IScheduledFargateTaskProps)

Constructs a new instance of the ScheduledFargateTask class.

public ScheduledFargateTask(Construct scope, string id, IScheduledFargateTaskProps props)
Parameters
scope Constructs.Construct
id System.String
props IScheduledFargateTaskProps

Properties

Task

The ECS task in this construct.

public virtual EcsTask Task { get; }
Property Value

EcsTask

TaskDefinition

The Fargate task definition in this construct.

public virtual FargateTaskDefinition TaskDefinition { get; }
Property Value

FargateTaskDefinition

Implements

IConstruct
Constructs.IConstruct
IDependable
Back to top Generated by DocFX