class ApiDestinationEnrichment
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Pipes.Enrichments.Alpha.ApiDestinationEnrichment |
![]() | github.com/aws/aws-cdk-go/awscdkpipesenrichmentsalpha/v2#ApiDestinationEnrichment |
![]() | software.amazon.awscdk.services.pipes.enrichments.alpha.ApiDestinationEnrichment |
![]() | aws_cdk.aws_pipes_enrichments_alpha.ApiDestinationEnrichment |
![]() | @aws-cdk/aws-pipes-enrichments-alpha ยป ApiDestinationEnrichment |
Implements
IEnrichment
An API Destination enrichment for a pipe.
Example
declare const sourceQueue: sqs.Queue;
declare const targetQueue: sqs.Queue;
declare const apiDestination: events.ApiDestination;
const enrichment = new enrichments.ApiDestinationEnrichment(apiDestination);
const pipe = new pipes.Pipe(this, 'Pipe', {
source: new SomeSource(sourceQueue),
enrichment,
target: new SomeTarget(targetQueue),
});
Initializer
new ApiDestinationEnrichment(destination: IApiDestination, props?: ApiDestinationEnrichmentProps)
Parameters
- destination
IApi
Destination - props
Api
Destination Enrichment Props
Properties
Name | Type | Description |
---|---|---|
enrichment | string | The ARN of the enrichment resource. |
enrichmentArn
Type:
string
The ARN of the enrichment resource.
Length Constraints: Minimum length of 0. Maximum length of 1600.
Methods
Name | Description |
---|---|
bind(pipe) | Bind this enrichment to a pipe. |
grant | Grant the pipes role to invoke the enrichment. |
bind(pipe)
public bind(pipe: IPipe): EnrichmentParametersConfig
Parameters
- pipe
IPipe
Returns
Bind this enrichment to a pipe.
grantInvoke(pipeRole)
public grantInvoke(pipeRole: IRole): void
Parameters
- pipeRole
IRole
Grant the pipes role to invoke the enrichment.