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

com.github.hnishar.konstruk.services.lambdaelasticsearchkibana.LambdaToElasticSearchAndKibana Maven / Gradle / Ivy

The newest version!
package com.github.hnishar.konstruk.services.lambdaelasticsearchkibana;

@javax.annotation.Generated(value = "jsii-pacmak/0.22.0 (build 14afdde)", date = "2020-04-06T23:22:40.329Z")
@software.amazon.jsii.Jsii(module = com.github.hnishar.konstruk.services.lambdaelasticsearchkibana.$Module.class, fqn = "@aws-solutions-konstruk/aws-lambda-elasticsearch-kibana.LambdaToElasticSearchAndKibana")
public class LambdaToElasticSearchAndKibana extends software.amazon.awscdk.core.Construct {

    protected LambdaToElasticSearchAndKibana(final software.amazon.jsii.JsiiObjectRef objRef) {
        super(objRef);
    }

    protected LambdaToElasticSearchAndKibana(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 LambdaToElasticSearchAndKibana(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 com.github.hnishar.konstruk.services.lambdaelasticsearchkibana.LambdaToElasticSearchAndKibanaProps 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") });
    }

    /**
     * @return List of cloudwatch.Alarm  created by the construct
     */
    public @org.jetbrains.annotations.NotNull java.util.List cloudwatchAlarms() {
        return java.util.Collections.unmodifiableList(this.jsiiCall("cloudwatchAlarms", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.cloudwatch.Alarm.class))));
    }

    /**
     * @return Instance of CfnDomain created by the construct
     */
    public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.elasticsearch.CfnDomain elasticsearchDomain() {
        return this.jsiiCall("elasticsearchDomain", software.amazon.awscdk.services.elasticsearch.CfnDomain.class);
    }

    /**
     * @return Instance of CfnIdentityPool created by the construct
     */
    public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.cognito.CfnIdentityPool identityPool() {
        return this.jsiiCall("identityPool", software.amazon.awscdk.services.cognito.CfnIdentityPool.class);
    }

    /**
     * @return Instance of Function created by the construct
     */
    public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.lambda.Function lambdaFunction() {
        return this.jsiiCall("lambdaFunction", software.amazon.awscdk.services.lambda.Function.class);
    }

    /**
     * @return Instance of UserPool created by the construct
     */
    public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.cognito.UserPool userPool() {
        return this.jsiiCall("userPool", software.amazon.awscdk.services.cognito.UserPool.class);
    }

    /**
     * @return Instance of UserPoolClient created by the construct
     */
    public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.cognito.UserPoolClient userPoolClient() {
        return this.jsiiCall("userPoolClient", software.amazon.awscdk.services.cognito.UserPoolClient.class);
    }

    /**
     * A fluent builder for {@link com.github.hnishar.konstruk.services.lambdaelasticsearchkibana.LambdaToElasticSearchAndKibana}.
     */
    public static final class 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 com.github.hnishar.konstruk.services.lambdaelasticsearchkibana.LambdaToElasticSearchAndKibanaProps.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 com.github.hnishar.konstruk.services.lambdaelasticsearchkibana.LambdaToElasticSearchAndKibanaProps.Builder();
        }

        /**
         * Whether to create a new Lambda function or use an existing Lambda function.
         * 

* If set to false, you must provide a lambda function object as existingLambdaObj *

* Default: - true *

* @return {@code this} * @param deployLambda Whether to create a new Lambda function or use an existing Lambda function. This parameter is required. */ public Builder deployLambda(final java.lang.Boolean deployLambda) { this.props.deployLambda(deployLambda); return this; } /** * Cognito & ES Domain Name. *

* Default: - None *

* @return {@code this} * @param domainName Cognito & ES Domain Name. This parameter is required. */ public Builder domainName(final java.lang.String domainName) { this.props.domainName(domainName); return this; } /** * Optional user provided props to override the default props for the Elasticsearch Service. *

* Default: - Default props are used *

* @return {@code this} * @param esDomainProps Optional user provided props to override the default props for the Elasticsearch Service. This parameter is required. */ public Builder esDomainProps(final software.amazon.awscdk.services.elasticsearch.CfnDomainProps esDomainProps) { this.props.esDomainProps(esDomainProps); return this; } /** * Existing instance of Lambda Function object. *

* If deploy is set to false only then this property is required *

* Default: - None *

* @return {@code this} * @param existingLambdaObj Existing instance of Lambda Function object. This parameter is required. */ public Builder existingLambdaObj(final software.amazon.awscdk.services.lambda.Function existingLambdaObj) { this.props.existingLambdaObj(existingLambdaObj); return this; } /** * Optional user provided props to override the default props for the Lambda function. *

* If deploy is set to true only then this property is required *

* Default: - Default props are used *

* @return {@code this} * @param lambdaFunctionProps Optional user provided props to override the default props for the Lambda function. This parameter is required. */ public Builder lambdaFunctionProps(final software.amazon.awscdk.services.lambda.FunctionProps lambdaFunctionProps) { this.props.lambdaFunctionProps(lambdaFunctionProps); return this; } /** * @returns a newly built instance of {@link com.github.hnishar.konstruk.services.lambdaelasticsearchkibana.LambdaToElasticSearchAndKibana}. */ public com.github.hnishar.konstruk.services.lambdaelasticsearchkibana.LambdaToElasticSearchAndKibana build() { return new com.github.hnishar.konstruk.services.lambdaelasticsearchkibana.LambdaToElasticSearchAndKibana( this.scope, this.id, this.props.build() ); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy