All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awscdk.services.events.targets.KinesisFirehoseStream Maven / Gradle / Ivy

package software.amazon.awscdk.services.events.targets;

/**
 * Customize the Firehose Stream Event Target.
 * 

* Example: *

*

 * // The code below shows an example of how to instantiate this type.
 * // The values are placeholders you should change.
 * import software.amazon.awscdk.services.events.*;
 * import software.amazon.awscdk.services.events.targets.*;
 * import software.amazon.awscdk.services.kinesisfirehose.*;
 * CfnDeliveryStream cfnDeliveryStream;
 * RuleTargetInput ruleTargetInput;
 * KinesisFirehoseStream kinesisFirehoseStream = KinesisFirehoseStream.Builder.create(cfnDeliveryStream)
 *         .message(ruleTargetInput)
 *         .build();
 * 
*/ @javax.annotation.Generated(value = "jsii-pacmak/1.52.1 (build 5ccc8f6)", date = "2022-02-02T10:52:43.628Z") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.events.targets.$Module.class, fqn = "@aws-cdk/aws-events-targets.KinesisFirehoseStream") public class KinesisFirehoseStream extends software.amazon.jsii.JsiiObject implements software.amazon.awscdk.services.events.IRuleTarget { protected KinesisFirehoseStream(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } protected KinesisFirehoseStream(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { super(initializationMode); } /** * @param stream This parameter is required. * @param props */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public KinesisFirehoseStream(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream stream, final @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.events.targets.KinesisFirehoseStreamProps props) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(stream, "stream is required"), props }); } /** * @param stream This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public KinesisFirehoseStream(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream stream) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(stream, "stream is required") }); } /** * Returns a RuleTarget that can be used to trigger this Firehose Stream as a result from a Event Bridge event. *

* @param _rule This parameter is required. * @param _id */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.events.RuleTargetConfig bind(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.events.IRule _rule, final @org.jetbrains.annotations.Nullable java.lang.String _id) { return software.amazon.jsii.Kernel.call(this, "bind", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.events.RuleTargetConfig.class), new Object[] { java.util.Objects.requireNonNull(_rule, "_rule is required"), _id }); } /** * Returns a RuleTarget that can be used to trigger this Firehose Stream as a result from a Event Bridge event. *

* @param _rule This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.events.RuleTargetConfig bind(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.events.IRule _rule) { return software.amazon.jsii.Kernel.call(this, "bind", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.events.RuleTargetConfig.class), new Object[] { java.util.Objects.requireNonNull(_rule, "_rule is required") }); } /** * A fluent builder for {@link software.amazon.awscdk.services.events.targets.KinesisFirehoseStream}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { /** * @return a new instance of {@link Builder}. * @param stream This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static Builder create(final software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream stream) { return new Builder(stream); } private final software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream stream; private software.amazon.awscdk.services.events.targets.KinesisFirehoseStreamProps.Builder props; private Builder(final software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream stream) { this.stream = stream; } /** * The message to send to the stream. *

* Must be a valid JSON text passed to the target stream. *

* Default: - the entire Event Bridge event *

* @return {@code this} * @param message The message to send to the stream. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder message(final software.amazon.awscdk.services.events.RuleTargetInput message) { this.props().message(message); return this; } /** * @returns a newly built instance of {@link software.amazon.awscdk.services.events.targets.KinesisFirehoseStream}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public software.amazon.awscdk.services.events.targets.KinesisFirehoseStream build() { return new software.amazon.awscdk.services.events.targets.KinesisFirehoseStream( this.stream, this.props != null ? this.props.build() : null ); } private software.amazon.awscdk.services.events.targets.KinesisFirehoseStreamProps.Builder props() { if (this.props == null) { this.props = new software.amazon.awscdk.services.events.targets.KinesisFirehoseStreamProps.Builder(); } return this.props; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy