@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:31.257Z") @Stability(value=Experimental) public class SnsTopic extends software.amazon.jsii.JsiiObject implements IRuleTarget
Example:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 // publish to an SNS topic every time code is committed // to a CodeCommit repository repository.onCommit(new SnsTopic(topic));
| Modifier and Type | Class and Description |
|---|---|
static class |
SnsTopic.Builder
(experimental) 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)
(experimental) 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)
(experimental) 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=Experimental)
public SnsTopic(@NotNull
ITopic topic,
@Nullable
SnsTopicProps props)
topic - This parameter is required.props - @Stability(value=Experimental)
public SnsTopic(@NotNull
ITopic topic)
topic - This parameter is required.@Stability(value=Experimental) @NotNull public RuleTargetConfig bind(@NotNull IRule _rule, @Nullable String _id)
bind in interface IRuleTarget_rule - This parameter is required._id - https://docs.aws.amazon.com/eventbridge/latest/userguide/resource-based-policies-eventbridge.html#sns-permissions@Stability(value=Experimental) @NotNull public RuleTargetConfig bind(@NotNull IRule _rule)
bind in interface IRuleTarget_rule - This parameter is required.https://docs.aws.amazon.com/eventbridge/latest/userguide/resource-based-policies-eventbridge.html#sns-permissions@Stability(value=Experimental) @NotNull public ITopic getTopic()
Copyright © 2021. All rights reserved.