@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.342Z") @Stability(value=Stable) public class SnsTopic extends software.amazon.jsii.JsiiObject implements IRuleTarget
Example:
// publish to an SNS topic every time code is committed
// to a CodeCommit repository
repository.onCommit("onCommit", OnCommitOptions.builder().target(new SnsTopic(topic)).build());
| Modifier and Type | Class and Description |
|---|---|
static class |
SnsTopic.Builder
A fluent builder for
SnsTopic. |
software.amazon.jsii.JsiiObject.InitializationModeIRuleTarget.Jsii$Default, IRuleTarget.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
SnsTopic(ITopic topic) |
|
SnsTopic(ITopic topic,
SnsTopicProps props) |
protected |
SnsTopic(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
SnsTopic(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
RuleTargetConfig |
bind(IRule _rule)
Returns a RuleTarget that can be used to trigger this SNS topic as a result from an EventBridge event.
|
RuleTargetConfig |
bind(IRule _rule,
String _id)
Returns a RuleTarget that can be used to trigger this SNS topic as a result from an EventBridge event.
|
ITopic |
getTopic() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected SnsTopic(software.amazon.jsii.JsiiObjectRef objRef)
protected SnsTopic(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public SnsTopic(@NotNull
ITopic topic,
@Nullable
SnsTopicProps props)
topic - This parameter is required.props - @Stability(value=Stable)
public SnsTopic(@NotNull
ITopic topic)
topic - This parameter is required.@Stability(value=Stable) @NotNull public RuleTargetConfig bind(@NotNull IRule _rule, @Nullable String _id)
bind in interface IRuleTarget_rule - This parameter is required._id - @Stability(value=Stable) @NotNull public RuleTargetConfig bind(@NotNull IRule _rule)
bind in interface IRuleTarget_rule - This parameter is required.@Stability(value=Stable) @NotNull public ITopic getTopic()
Copyright © 2022. All rights reserved.