Skip to content
v2.274.0

Stop Class ​

Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ses_actions as ses_actions } from 'aws-cdk-lib';
import { aws_sns as sns } from 'aws-cdk-lib';

declare const topic: sns.Topic;
const stop = new ses_actions.Stop(/* all optional props */ {
  topic: topic,
});
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ses_actions as ses_actions
from aws_cdk import aws_sns as sns

# topic: sns.Topic

stop = ses_actions.Stop(
    topic=topic
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ses.actions.*;
import software.amazon.awscdk.services.sns.*;

Topic topic;

Stop stop = Stop.Builder.create()
        .topic(topic)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SES.Actions;
using Amazon.CDK.AWS.SNS;

Topic topic;

var stop = new Stop(new StopProps {
    Topic = topic
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"

var topic Topic

stop := awscdk.Aws_ses_actions.NewStop(&StopProps{
	Topic: topic,
})

Initializer ​

ts
new Stop(props?: StopProps)
python
Stop(props: typing.Optional[StopProps] = None)
java
new Stop(StopProps props)
csharp
new Stop(StopProps? props = null)
go
NewStop(Props StopProps)

Methods ​

bind(_rule: IReceiptRuleRef): ReceiptRuleActionConfigdef bind(self, _rule: IReceiptRuleRef) -> ReceiptRuleActionConfigpublic ReceiptRuleActionConfig bind(IReceiptRuleRef _rule)public ReceiptRuleActionConfig Bind(IReceiptRuleRef _rule)func Bind(_rule IReceiptRuleRef) ReceiptRuleActionConfig#
Returns the receipt rule action specification.