Interface IScheduledFargateTaskImageOptions
The properties for the ScheduledFargateTask using an image.
Inherited Members
Namespace: Amazon.CDK.AWS.ECS.Patterns
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IScheduledFargateTaskImageOptions : IScheduledTaskImageProps, IFargateServiceBaseProps
Syntax (vb)
Public Interface IScheduledFargateTaskImageOptions
Inherits IScheduledTaskImageProps, IFargateServiceBaseProps
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"),
ContainerName = "customContainerName",
MemoryLimitMiB = 512
},
Schedule = Schedule.Expression("rate(1 minute)"),
PlatformVersion = FargatePlatformVersion.LATEST
});