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

com.pulumi.aws.securitylake.CustomLogSourceArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.securitylake;

import com.pulumi.aws.securitylake.inputs.CustomLogSourceConfigurationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class CustomLogSourceArgs extends com.pulumi.resources.ResourceArgs {

    public static final CustomLogSourceArgs Empty = new CustomLogSourceArgs();

    /**
     * The configuration for the third-party custom source.
     * 
     */
    @Import(name="configuration")
    private @Nullable Output configuration;

    /**
     * @return The configuration for the third-party custom source.
     * 
     */
    public Optional> configuration() {
        return Optional.ofNullable(this.configuration);
    }

    /**
     * The Open Cybersecurity Schema Framework (OCSF) event classes which describes the type of data that the custom source will send to Security Lake.
     * 
     */
    @Import(name="eventClasses")
    private @Nullable Output> eventClasses;

    /**
     * @return The Open Cybersecurity Schema Framework (OCSF) event classes which describes the type of data that the custom source will send to Security Lake.
     * 
     */
    public Optional>> eventClasses() {
        return Optional.ofNullable(this.eventClasses);
    }

    /**
     * Specify the name for a third-party custom source.
     * This must be a Regionally unique value.
     * Has a maximum length of 20.
     * 
     */
    @Import(name="sourceName", required=true)
    private Output sourceName;

    /**
     * @return Specify the name for a third-party custom source.
     * This must be a Regionally unique value.
     * Has a maximum length of 20.
     * 
     */
    public Output sourceName() {
        return this.sourceName;
    }

    /**
     * Specify the source version for the third-party custom source, to limit log collection to a specific version of custom data source.
     * 
     */
    @Import(name="sourceVersion")
    private @Nullable Output sourceVersion;

    /**
     * @return Specify the source version for the third-party custom source, to limit log collection to a specific version of custom data source.
     * 
     */
    public Optional> sourceVersion() {
        return Optional.ofNullable(this.sourceVersion);
    }

    private CustomLogSourceArgs() {}

    private CustomLogSourceArgs(CustomLogSourceArgs $) {
        this.configuration = $.configuration;
        this.eventClasses = $.eventClasses;
        this.sourceName = $.sourceName;
        this.sourceVersion = $.sourceVersion;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(CustomLogSourceArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private CustomLogSourceArgs $;

        public Builder() {
            $ = new CustomLogSourceArgs();
        }

        public Builder(CustomLogSourceArgs defaults) {
            $ = new CustomLogSourceArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param configuration The configuration for the third-party custom source.
         * 
         * @return builder
         * 
         */
        public Builder configuration(@Nullable Output configuration) {
            $.configuration = configuration;
            return this;
        }

        /**
         * @param configuration The configuration for the third-party custom source.
         * 
         * @return builder
         * 
         */
        public Builder configuration(CustomLogSourceConfigurationArgs configuration) {
            return configuration(Output.of(configuration));
        }

        /**
         * @param eventClasses The Open Cybersecurity Schema Framework (OCSF) event classes which describes the type of data that the custom source will send to Security Lake.
         * 
         * @return builder
         * 
         */
        public Builder eventClasses(@Nullable Output> eventClasses) {
            $.eventClasses = eventClasses;
            return this;
        }

        /**
         * @param eventClasses The Open Cybersecurity Schema Framework (OCSF) event classes which describes the type of data that the custom source will send to Security Lake.
         * 
         * @return builder
         * 
         */
        public Builder eventClasses(List eventClasses) {
            return eventClasses(Output.of(eventClasses));
        }

        /**
         * @param eventClasses The Open Cybersecurity Schema Framework (OCSF) event classes which describes the type of data that the custom source will send to Security Lake.
         * 
         * @return builder
         * 
         */
        public Builder eventClasses(String... eventClasses) {
            return eventClasses(List.of(eventClasses));
        }

        /**
         * @param sourceName Specify the name for a third-party custom source.
         * This must be a Regionally unique value.
         * Has a maximum length of 20.
         * 
         * @return builder
         * 
         */
        public Builder sourceName(Output sourceName) {
            $.sourceName = sourceName;
            return this;
        }

        /**
         * @param sourceName Specify the name for a third-party custom source.
         * This must be a Regionally unique value.
         * Has a maximum length of 20.
         * 
         * @return builder
         * 
         */
        public Builder sourceName(String sourceName) {
            return sourceName(Output.of(sourceName));
        }

        /**
         * @param sourceVersion Specify the source version for the third-party custom source, to limit log collection to a specific version of custom data source.
         * 
         * @return builder
         * 
         */
        public Builder sourceVersion(@Nullable Output sourceVersion) {
            $.sourceVersion = sourceVersion;
            return this;
        }

        /**
         * @param sourceVersion Specify the source version for the third-party custom source, to limit log collection to a specific version of custom data source.
         * 
         * @return builder
         * 
         */
        public Builder sourceVersion(String sourceVersion) {
            return sourceVersion(Output.of(sourceVersion));
        }

        public CustomLogSourceArgs build() {
            if ($.sourceName == null) {
                throw new MissingRequiredPropertyException("CustomLogSourceArgs", "sourceName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy