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

com.pulumi.aws.guardduty.inputs.DetectorDatasourcesS3LogsArgs 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.guardduty.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.util.Objects;


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

    public static final DetectorDatasourcesS3LogsArgs Empty = new DetectorDatasourcesS3LogsArgs();

    /**
     * If true, enables [S3 protection](https://docs.aws.amazon.com/guardduty/latest/ug/s3-protection.html).
     * Defaults to `true`.
     * 
     */
    @Import(name="enable", required=true)
    private Output enable;

    /**
     * @return If true, enables [S3 protection](https://docs.aws.amazon.com/guardduty/latest/ug/s3-protection.html).
     * Defaults to `true`.
     * 
     */
    public Output enable() {
        return this.enable;
    }

    private DetectorDatasourcesS3LogsArgs() {}

    private DetectorDatasourcesS3LogsArgs(DetectorDatasourcesS3LogsArgs $) {
        this.enable = $.enable;
    }

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

    public static final class Builder {
        private DetectorDatasourcesS3LogsArgs $;

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

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

        /**
         * @param enable If true, enables [S3 protection](https://docs.aws.amazon.com/guardduty/latest/ug/s3-protection.html).
         * Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder enable(Output enable) {
            $.enable = enable;
            return this;
        }

        /**
         * @param enable If true, enables [S3 protection](https://docs.aws.amazon.com/guardduty/latest/ug/s3-protection.html).
         * Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder enable(Boolean enable) {
            return enable(Output.of(enable));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy