Skip to content
v2.275.0

Experimental

@aws-cdk/aws-pipes-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

SourceWithDeadLetterTarget Class ​

Sources that support a dead-letter target.

Initializer ​

ts
new SourceWithDeadLetterTarget(sourceArn: string, deadLetterTarget?: IQueue | ITopic)
python
SourceWithDeadLetterTarget(source_arn: str, dead_letter_target: typing.Optional[typing.Union[IQueue, ITopic]] = None)
java
new SourceWithDeadLetterTarget(String sourceArn, IQueue deadLetterTarget)
csharp
new SourceWithDeadLetterTarget(string sourceArn, IQueue? deadLetterTarget = null)
go
NewSourceWithDeadLetterTarget(SourceArn *string, DeadLetterTarget interface{})

Properties ​

deadLetterTargetmay be undefinedIQueue | ITopicdead_letter_targetmay be undefinedtyping.Union[IQueue, ITopic]deadLetterTargetmay be undefinedIQueueDeadLetterTargetmay be undefinedIQueueDeadLetterTargetmay be undefinedinterface{}#
The dead-letter SQS queue or SNS topic.
sourceArnstringsource_arnstrsourceArnStringSourceArnstringSourceArn*string#
The ARN of the source resource.

Methods ​

bind(pipe: IPipe): SourceConfigdef bind(self, pipe: IPipe) -> SourceConfigpublic SourceConfig bind(IPipe pipe)public SourceConfig Bind(IPipe pipe)func Bind(Pipe IPipe) SourceConfig#
Bind the source to a pipe.
grantPush(grantee: IRole, deadLetterTarget?: IQueue | ITopic): voiddef grant_push(self, grantee: IRole, dead_letter_target: typing.Optional[typing.Union[IQueue, ITopic]] = None) -> Nonepublic void grantPush(IRole grantee, IQueue deadLetterTarget)public void GrantPush(IRole grantee, IQueue? deadLetterTarget = null)func GrantPush(Grantee IRole, DeadLetterTarget interface{})#
Grants the pipe role permission to publish to the dead-letter target.

[disable-awslint:no-grants]

grantRead(grantee: IRole): voiddef grant_read(self, grantee: IRole) -> Nonepublic void grantRead(IRole grantee)public void GrantRead(IRole grantee)func GrantRead(Grantee IRole)#
Grant the pipe role read access to the source.
isSourceWithDeadLetterTarget(source: ISource): boolean@staticmethod def is_source_with_dead_letter_target(source: ISource) -> boolpublic static Boolean isSourceWithDeadLetterTarget(ISource source)public static bool IsSourceWithDeadLetterTarget(ISource source)func IsSourceWithDeadLetterTarget(Source ISource) *boolstatic#
Determines if the source is an instance of SourceWithDeadLetterTarget.