@aws-cdk_aws-scheduler-alpha.ScheduleTargetInput

class ScheduleTargetInput ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Scheduler.Alpha.ScheduleTargetInput
Gogithub.com/aws/aws-cdk-go/awscdkscheduleralpha/v2#ScheduleTargetInput
Javasoftware.amazon.awscdk.services.scheduler.alpha.ScheduleTargetInput
Pythonaws_cdk.aws_scheduler_alpha.ScheduleTargetInput
TypeScript (source)@aws-cdk/aws-scheduler-alpha ยป ScheduleTargetInput

The text, or well-formed JSON, passed to the target of the schedule.

Example

const input = ScheduleTargetInput.fromObject({
    'QueueName': 'MyQueue'
});

Initializer

new ScheduleTargetInput()

Methods

NameDescription
bind(schedule)๐Ÿ”นReturn the input properties for this input object.
static fromObject(obj)๐Ÿ”นPass a JSON object to the target, it is possible to embed ContextAttributes and other cdk references.
static fromText(text)๐Ÿ”นPass text to the target, it is possible to embed ContextAttributes that will be resolved to actual values while the CloudFormation is deployed or cdk Tokens that will be resolved when the CloudFormation templates are generated by CDK.

bind(schedule)๐Ÿ”น

public bind(schedule: ISchedule): string

Parameters

  • schedule ISchedule

Returns

  • string

Return the input properties for this input object.


static fromObject(obj)๐Ÿ”น

public static fromObject(obj: any): ScheduleTargetInput

Parameters

  • obj any โ€” object to use to convert to JSON to use as input for the target.

Returns

  • ScheduleTargetInput

Pass a JSON object to the target, it is possible to embed ContextAttributes and other cdk references.


static fromText(text)๐Ÿ”น

public static fromText(text: string): ScheduleTargetInput

Parameters

  • text string โ€” Text to use as the input for the target.

Returns

  • ScheduleTargetInput

Pass text to the target, it is possible to embed ContextAttributes that will be resolved to actual values while the CloudFormation is deployed or cdk Tokens that will be resolved when the CloudFormation templates are generated by CDK.

The target input value will be a single string that you pass. For passing complex values like JSON object to a target use method ScheduleTargetInput.fromObject() instead.