software.amazon.awsconstructs.services.kinesisfirehoses3kinesisanalytics.KinesisFirehoseToAnalyticsAndS3 Maven / Gradle / Ivy
Show all versions of kinesisfirehoses3kinesisanalytics Show documentation
package software.amazon.awsconstructs.services.kinesisfirehoses3kinesisanalytics;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.54.0 (build b1b977a)", date = "2022-03-02T11:59:48.326Z")
@software.amazon.jsii.Jsii(module = software.amazon.awsconstructs.services.kinesisfirehoses3kinesisanalytics.$Module.class, fqn = "@aws-solutions-constructs/aws-kinesisfirehose-s3-and-kinesisanalytics.KinesisFirehoseToAnalyticsAndS3")
public class KinesisFirehoseToAnalyticsAndS3 extends software.amazon.awscdk.core.Construct {
protected KinesisFirehoseToAnalyticsAndS3(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected KinesisFirehoseToAnalyticsAndS3(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* @param scope - represents the scope for all the resources. This parameter is required.
* @param id - this is a a scope-unique id. This parameter is required.
* @param props - user provided props for the construct. This parameter is required.
*/
public KinesisFirehoseToAnalyticsAndS3(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.core.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull software.amazon.awsconstructs.services.kinesisfirehoses3kinesisanalytics.KinesisFirehoseToAnalyticsAndS3Props props) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(props, "props is required") });
}
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.kinesisanalytics.CfnApplication getKinesisAnalytics() {
return software.amazon.jsii.Kernel.get(this, "kinesisAnalytics", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.kinesisanalytics.CfnApplication.class));
}
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream getKinesisFirehose() {
return software.amazon.jsii.Kernel.get(this, "kinesisFirehose", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.class));
}
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.logs.LogGroup getKinesisFirehoseLogGroup() {
return software.amazon.jsii.Kernel.get(this, "kinesisFirehoseLogGroup", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.logs.LogGroup.class));
}
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.iam.Role getKinesisFirehoseRole() {
return software.amazon.jsii.Kernel.get(this, "kinesisFirehoseRole", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.iam.Role.class));
}
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.s3.IBucket getS3BucketInterface() {
return software.amazon.jsii.Kernel.get(this, "s3BucketInterface", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.s3.IBucket.class));
}
public @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.s3.Bucket getS3Bucket() {
return software.amazon.jsii.Kernel.get(this, "s3Bucket", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.s3.Bucket.class));
}
public @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.s3.Bucket getS3LoggingBucket() {
return software.amazon.jsii.Kernel.get(this, "s3LoggingBucket", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.s3.Bucket.class));
}
/**
* A fluent builder for {@link software.amazon.awsconstructs.services.kinesisfirehoses3kinesisanalytics.KinesisFirehoseToAnalyticsAndS3}.
*/
public static final class Builder implements software.amazon.jsii.Builder {
/**
* @return a new instance of {@link Builder}.
* @param scope - represents the scope for all the resources. This parameter is required.
* @param id - this is a a scope-unique id. This parameter is required.
*/
public static Builder create(final software.amazon.awscdk.core.Construct scope, final java.lang.String id) {
return new Builder(scope, id);
}
private final software.amazon.awscdk.core.Construct scope;
private final java.lang.String id;
private final software.amazon.awsconstructs.services.kinesisfirehoses3kinesisanalytics.KinesisFirehoseToAnalyticsAndS3Props.Builder props;
private Builder(final software.amazon.awscdk.core.Construct scope, final java.lang.String id) {
this.scope = scope;
this.id = id;
this.props = new software.amazon.awsconstructs.services.kinesisfirehoses3kinesisanalytics.KinesisFirehoseToAnalyticsAndS3Props.Builder();
}
/**
* User provided props to override the default props for the S3 Bucket.
*
* Default: - Default props are used
*
* @return {@code this}
* @param bucketProps User provided props to override the default props for the S3 Bucket. This parameter is required.
*/
public Builder bucketProps(final software.amazon.awscdk.services.s3.BucketProps bucketProps) {
this.props.bucketProps(bucketProps);
return this;
}
/**
* Existing instance of S3 Bucket object, providing both this and `bucketProps` will cause an error.
*
* Default: - None
*
* @return {@code this}
* @param existingBucketObj Existing instance of S3 Bucket object, providing both this and `bucketProps` will cause an error. This parameter is required.
*/
public Builder existingBucketObj(final software.amazon.awscdk.services.s3.IBucket existingBucketObj) {
this.props.existingBucketObj(existingBucketObj);
return this;
}
/**
* Optional user-provided props to override the default props for the Kinesis Analytics application.
*
* Default: - Default props are used.
*
* @return {@code this}
* @param kinesisAnalyticsProps Optional user-provided props to override the default props for the Kinesis Analytics application. This parameter is required.
*/
public Builder kinesisAnalyticsProps(final software.amazon.awscdk.services.kinesisanalytics.CfnApplicationProps kinesisAnalyticsProps) {
this.props.kinesisAnalyticsProps(kinesisAnalyticsProps);
return this;
}
/**
* Optional user-provided props to override the default props for the Kinesis Firehose delivery stream.
*
* Default: - Default props are used.
*
* @return {@code this}
* @param kinesisFirehoseProps Optional user-provided props to override the default props for the Kinesis Firehose delivery stream. This parameter is required.
*/
public Builder kinesisFirehoseProps(final java.lang.Object kinesisFirehoseProps) {
this.props.kinesisFirehoseProps(kinesisFirehoseProps);
return this;
}
/**
* Optional user provided props to override the default props for the S3 Logging Bucket.
*
* Default: - Default props are used
*
* @return {@code this}
* @param loggingBucketProps Optional user provided props to override the default props for the S3 Logging Bucket. This parameter is required.
*/
public Builder loggingBucketProps(final software.amazon.awscdk.services.s3.BucketProps loggingBucketProps) {
this.props.loggingBucketProps(loggingBucketProps);
return this;
}
/**
* User provided props to override the default props for the CloudWatchLogs LogGroup.
*
* Default: - Default props are used
*
* @return {@code this}
* @param logGroupProps User provided props to override the default props for the CloudWatchLogs LogGroup. This parameter is required.
*/
public Builder logGroupProps(final software.amazon.awscdk.services.logs.LogGroupProps logGroupProps) {
this.props.logGroupProps(logGroupProps);
return this;
}
/**
* Whether to turn on Access Logs for the S3 bucket with the associated storage costs.
*
* Enabling Access Logging is a best practice.
*
* Default: - true
*
* @return {@code this}
* @param logS3AccessLogs Whether to turn on Access Logs for the S3 bucket with the associated storage costs. This parameter is required.
*/
public Builder logS3AccessLogs(final java.lang.Boolean logS3AccessLogs) {
this.props.logS3AccessLogs(logS3AccessLogs);
return this;
}
/**
* @returns a newly built instance of {@link software.amazon.awsconstructs.services.kinesisfirehoses3kinesisanalytics.KinesisFirehoseToAnalyticsAndS3}.
*/
@Override
public software.amazon.awsconstructs.services.kinesisfirehoses3kinesisanalytics.KinesisFirehoseToAnalyticsAndS3 build() {
return new software.amazon.awsconstructs.services.kinesisfirehoses3kinesisanalytics.KinesisFirehoseToAnalyticsAndS3(
this.scope,
this.id,
this.props.build()
);
}
}
}