Class SqsDestination
Use an Amazon SQS queue as an event destination.
Implements
Namespace: Amazon.CDK.AWS.AppConfig
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class SqsDestination : DeputyBase, IEventDestination
Syntax (vb)
Public Class SqsDestination Inherits DeputyBase Implements IEventDestination
Remarks
ExampleMetadata: infused
Examples
Queue queue;
new Extension(this, "MyExtension", new ExtensionProps {
Actions = new [] {
new Action(new ActionProps {
ActionPoints = new [] { ActionPoint.ON_DEPLOYMENT_START },
EventDestination = new SqsDestination(queue)
}) }
});
Synopsis
Constructors
SqsDestination(IQueue) | Use an Amazon SQS queue as an event destination. |
Properties
ExtensionUri | The URI of the extension event destination. |
PolicyDocument | The IAM policy document to invoke the event destination. |
Type | The type of the extension event destination. |
Constructors
SqsDestination(IQueue)
Use an Amazon SQS queue as an event destination.
public SqsDestination(IQueue queue)
Parameters
- queue IQueue
Remarks
ExampleMetadata: infused
Examples
Queue queue;
new Extension(this, "MyExtension", new ExtensionProps {
Actions = new [] {
new Action(new ActionProps {
ActionPoints = new [] { ActionPoint.ON_DEPLOYMENT_START },
EventDestination = new SqsDestination(queue)
}) }
});
Properties
ExtensionUri
The URI of the extension event destination.
public virtual string ExtensionUri { get; }
Property Value
Remarks
ExampleMetadata: infused
PolicyDocument
The IAM policy document to invoke the event destination.
public virtual PolicyDocument? PolicyDocument { get; }
Property Value
Remarks
ExampleMetadata: infused
Type
The type of the extension event destination.
public virtual SourceType Type { get; }
Property Value
Remarks
ExampleMetadata: infused