class SqsTarget
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Pipes.Targets.Alpha.SqsTarget |
![]() | github.com/aws/aws-cdk-go/awscdkpipestargetsalpha/v2#SqsTarget |
![]() | software.amazon.awscdk.services.pipes.targets.alpha.SqsTarget |
![]() | aws_cdk.aws_pipes_targets_alpha.SqsTarget |
![]() | @aws-cdk/aws-pipes-targets-alpha ยป SqsTarget |
Implements
ITarget
A EventBridge Pipes target that sends messages to an SQS queue.
Example
declare const sourceQueue: sqs.Queue;
declare const targetQueue: sqs.Queue;
const pipeSource = new sources.SqsSource(sourceQueue, {
batchSize: 10,
maximumBatchingWindow: cdk.Duration.seconds(10)
});
const pipe = new pipes.Pipe(this, 'Pipe', {
source: pipeSource,
target: new SqsTarget(targetQueue)
});
Initializer
new SqsTarget(queue: IQueue, parameters?: SqsTargetParameters)
Parameters
- queue
IQueue
- parameters
Sqs
Target Parameters
Properties
Name | Type | Description |
---|---|---|
target | string | The ARN of the target resource. |
targetArn
Type:
string
The ARN of the target resource.
Methods
Name | Description |
---|---|
bind(pipe) | Bind this target to a pipe. |
grant | Grant the pipe role to push to the target. |
bind(pipe)
public bind(pipe: IPipe): TargetConfig
Parameters
- pipe
IPipe
Returns
Bind this target to a pipe.
grantPush(grantee)
public grantPush(grantee: IRole): void
Parameters
- grantee
IRole
Grant the pipe role to push to the target.