Class ScheduleTargetInput
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.scheduler.alpha.ScheduleTargetInput
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:11.887Z")
@Stability(Experimental)
public abstract class ScheduleTargetInput
extends software.amazon.jsii.JsiiObject
(experimental) The text or well-formed JSON input passed to the target of the schedule.
Tokens and ContextAttribute may be used in the input.
Example:
import software.amazon.awscdk.services.sns.*; Topic topic = new Topic(this, "Topic"); Map<String, String> payload = Map.of( "message", "Hello scheduler!"); SnsPublish target = SnsPublish.Builder.create(topic) .input(ScheduleTargetInput.fromObject(payload)) .build(); Schedule.Builder.create(this, "Schedule") .schedule(ScheduleExpression.rate(Duration.hours(1))) .target(target) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
ModifierConstructorDescriptionprotected
protected
ScheduleTargetInput
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
ScheduleTargetInput
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionabstract String
(experimental) Return the input properties for this input object.static ScheduleTargetInput
fromObject
(Object obj) (experimental) Pass a JSON object to the target.static ScheduleTargetInput
(experimental) Pass simple text to the target.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
ScheduleTargetInput
protected ScheduleTargetInput(software.amazon.jsii.JsiiObjectRef objRef) -
ScheduleTargetInput
protected ScheduleTargetInput(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
ScheduleTargetInput
@Stability(Experimental) protected ScheduleTargetInput()
-
-
Method Details
-
fromObject
(experimental) Pass a JSON object to the target.The object will be transformed into a well-formed JSON string in the final template.
- Parameters:
obj
- object to use to convert to JSON to use as input for the target. This parameter is required.
-
fromText
(experimental) Pass simple text to the target.For passing complex values like JSON object to a target use method
ScheduleTargetInput.fromObject()
instead.- Parameters:
text
- Text to use as the input for the target. This parameter is required.
-
bind
(experimental) Return the input properties for this input object.- Parameters:
schedule
- This parameter is required.
-