Documentation ¶
Overview ¶
The CDK Construct Library for Amazon EventBridge Pipes Sources
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSqsSource_Override ¶
func NewSqsSource_Override(s SqsSource, queue awssqs.IQueue, parameters *SqsSourceParameters)
Experimental.
Types ¶
type SqsSource ¶
type SqsSource interface { awscdkpipesalpha.ISource // The ARN of the source resource. // Experimental. SourceArn() *string // Bind the source to a pipe. // Experimental. Bind(_pipe awscdkpipesalpha.IPipe) *awscdkpipesalpha.SourceConfig // Grant the pipe role read access to the source. // Experimental. GrantRead(grantee awsiam.IRole) }
A source that reads from an SQS queue.
Example:
var sourceQueue queue var targetQueue queue pipeSource := sources.NewSqsSource(sourceQueue) pipe := pipes.NewPipe(this, jsii.String("Pipe"), &PipeProps{ Source: pipeSource, Target: NewSomeTarget(targetQueue), })
Experimental.
func NewSqsSource ¶
func NewSqsSource(queue awssqs.IQueue, parameters *SqsSourceParameters) SqsSource
Experimental.
type SqsSourceParameters ¶
type SqsSourceParameters struct { // The maximum number of records to include in each batch. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipesourcesqsqueueparameters.html#cfn-pipes-pipe-pipesourcesqsqueueparameters-batchsize // // Default: 10. // // Experimental. BatchSize *float64 `field:"optional" json:"batchSize" yaml:"batchSize"` // The maximum length of a time to wait for events. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipesourcesqsqueueparameters.html#cfn-pipes-pipe-pipesourcesqsqueueparameters-maximumbatchingwindowinseconds // // Default: 1. // // Experimental. MaximumBatchingWindow awscdk.Duration `field:"optional" json:"maximumBatchingWindow" yaml:"maximumBatchingWindow"` }
Parameters for the SQS source.
Example:
var sourceQueue queue var targetQueue queue pipeSource := sources.NewSqsSource(sourceQueue, &SqsSourceParameters{ BatchSize: jsii.Number(10), MaximumBatchingWindow: cdk.Duration_Seconds(jsii.Number(10)), }) pipe := pipes.NewPipe(this, jsii.String("Pipe"), &PipeProps{ Source: pipeSource, Target: NewSomeTarget(targetQueue), })
Experimental.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.