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
var vpc = new Vpc(this, "Vpc", new VpcProps { MaxAzs = 1 });
var cluster = new Cluster(this, "EcsCluster", new ClusterProps { Vpc = vpc });
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)"),
Tags = new [] { new Tag {
Key = "my-tag",
Value = "my-tag-value"
} }
});