Class ScheduleTargetProps
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Scheduler.Alpha
Assembly: Amazon.CDK.AWS.Scheduler.Alpha.dll
Syntax (csharp)
public class ScheduleTargetProps : Object, IScheduleTargetProps
Syntax (vb)
Public Class ScheduleTargetProps
Inherits Object
Implements IScheduleTargetProps
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
LambdaInvoke target;
var oneTimeSchedule = new Schedule(this, "Schedule", new ScheduleProps {
Schedule = ScheduleExpression.Rate(Duration.Hours(12)),
Target = target,
TargetOverrides = new ScheduleTargetProps {
Input = ScheduleTargetInput.FromText("Overriding Target Input"),
MaxEventAge = Duration.Seconds(180),
RetryAttempts = 5
}
});
Synopsis
Constructors
ScheduleTargetProps() |
Properties
Input | (experimental) The text, or well-formed JSON, passed to the target. |
MaxEventAge | (experimental) The maximum amount of time, in seconds, to continue to make retry attempts. |
RetryAttempts | (experimental) The maximum number of retry attempts to make before the request fails. |
Constructors
ScheduleTargetProps()
public ScheduleTargetProps()
Properties
Input
(experimental) The text, or well-formed JSON, passed to the target.
public ScheduleTargetInput Input { get; set; }
Property Value
Remarks
If you are configuring a templated Lambda, AWS Step Functions, or Amazon EventBridge target, the input must be a well-formed JSON. For all other target types, a JSON is not required.
Default: - The target's input is used.
Stability: Experimental
MaxEventAge
(experimental) The maximum amount of time, in seconds, to continue to make retry attempts.
public Duration MaxEventAge { get; set; }
Property Value
Remarks
Default: - The target's maximumEventAgeInSeconds is used.
Stability: Experimental
RetryAttempts
(experimental) The maximum number of retry attempts to make before the request fails.
public Nullable<double> RetryAttempts { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Default: - The target's maximumRetryAttempts is used.
Stability: Experimental