software.amazon.awscdk.services.sns.subscriptions.UrlSubscription Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sns-subscriptions Show documentation
Show all versions of sns-subscriptions Show documentation
CDK Subscription Constructs for AWS SNS
package software.amazon.awscdk.services.sns.subscriptions;
/**
* Use a URL as a subscription target.
*
* The message will be POSTed to the given URL.
*
* @see https://docs.aws.amazon.com/sns/latest/dg/sns-http-https-endpoint-as-subscriber.html
*/
@javax.annotation.Generated(value = "jsii-pacmak/0.17.0 (build 7d5d104)", date = "2019-09-30T08:37:14.834Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.sns.subscriptions.$Module.class, fqn = "@aws-cdk/aws-sns-subscriptions.UrlSubscription")
public class UrlSubscription extends software.amazon.jsii.JsiiObject implements software.amazon.awscdk.services.sns.ITopicSubscription {
protected UrlSubscription(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected UrlSubscription(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* @param url This parameter is required.
* @param props
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public UrlSubscription(final java.lang.String url, final software.amazon.awscdk.services.sns.subscriptions.UrlSubscriptionProps props) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.setObjRef(software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(url, "url is required"), props }));
}
/**
* @param url This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public UrlSubscription(final java.lang.String url) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.setObjRef(software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(url, "url is required") }));
}
/**
* @param _topic This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public software.amazon.awscdk.services.sns.TopicSubscriptionConfig bind(final software.amazon.awscdk.services.sns.ITopic _topic) {
return this.jsiiCall("bind", software.amazon.awscdk.services.sns.TopicSubscriptionConfig.class, new Object[] { java.util.Objects.requireNonNull(_topic, "_topic is required") });
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy