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

com.pulumi.aws.guardduty.OrganizationConfigurationArgs 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.66.3
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;

import com.pulumi.aws.guardduty.inputs.OrganizationConfigurationDatasourcesArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final OrganizationConfigurationArgs Empty = new OrganizationConfigurationArgs();

    /**
     * *Deprecated:* Use `auto_enable_organization_members` instead. When this setting is enabled, all new accounts that are created in, or added to, the organization are added as a member accounts of the organization’s GuardDuty delegated administrator and GuardDuty is enabled in that AWS Region.
     * 
     * @deprecated
     * Use auto_enable_organization_members instead
     * 
     */
    @Deprecated /* Use auto_enable_organization_members instead */
    @Import(name="autoEnable")
    private @Nullable Output autoEnable;

    /**
     * @return *Deprecated:* Use `auto_enable_organization_members` instead. When this setting is enabled, all new accounts that are created in, or added to, the organization are added as a member accounts of the organization’s GuardDuty delegated administrator and GuardDuty is enabled in that AWS Region.
     * 
     * @deprecated
     * Use auto_enable_organization_members instead
     * 
     */
    @Deprecated /* Use auto_enable_organization_members instead */
    public Optional> autoEnable() {
        return Optional.ofNullable(this.autoEnable);
    }

    /**
     * Indicates the auto-enablement configuration of GuardDuty for the member accounts in the organization. Valid values are `ALL`, `NEW`, `NONE`.
     * 
     */
    @Import(name="autoEnableOrganizationMembers")
    private @Nullable Output autoEnableOrganizationMembers;

    /**
     * @return Indicates the auto-enablement configuration of GuardDuty for the member accounts in the organization. Valid values are `ALL`, `NEW`, `NONE`.
     * 
     */
    public Optional> autoEnableOrganizationMembers() {
        return Optional.ofNullable(this.autoEnableOrganizationMembers);
    }

    /**
     * Configuration for the collected datasources.
     * 
     */
    @Import(name="datasources")
    private @Nullable Output datasources;

    /**
     * @return Configuration for the collected datasources.
     * 
     */
    public Optional> datasources() {
        return Optional.ofNullable(this.datasources);
    }

    /**
     * The detector ID of the GuardDuty account.
     * 
     */
    @Import(name="detectorId", required=true)
    private Output detectorId;

    /**
     * @return The detector ID of the GuardDuty account.
     * 
     */
    public Output detectorId() {
        return this.detectorId;
    }

    private OrganizationConfigurationArgs() {}

    private OrganizationConfigurationArgs(OrganizationConfigurationArgs $) {
        this.autoEnable = $.autoEnable;
        this.autoEnableOrganizationMembers = $.autoEnableOrganizationMembers;
        this.datasources = $.datasources;
        this.detectorId = $.detectorId;
    }

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

    public static final class Builder {
        private OrganizationConfigurationArgs $;

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

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

        /**
         * @param autoEnable *Deprecated:* Use `auto_enable_organization_members` instead. When this setting is enabled, all new accounts that are created in, or added to, the organization are added as a member accounts of the organization’s GuardDuty delegated administrator and GuardDuty is enabled in that AWS Region.
         * 
         * @return builder
         * 
         * @deprecated
         * Use auto_enable_organization_members instead
         * 
         */
        @Deprecated /* Use auto_enable_organization_members instead */
        public Builder autoEnable(@Nullable Output autoEnable) {
            $.autoEnable = autoEnable;
            return this;
        }

        /**
         * @param autoEnable *Deprecated:* Use `auto_enable_organization_members` instead. When this setting is enabled, all new accounts that are created in, or added to, the organization are added as a member accounts of the organization’s GuardDuty delegated administrator and GuardDuty is enabled in that AWS Region.
         * 
         * @return builder
         * 
         * @deprecated
         * Use auto_enable_organization_members instead
         * 
         */
        @Deprecated /* Use auto_enable_organization_members instead */
        public Builder autoEnable(Boolean autoEnable) {
            return autoEnable(Output.of(autoEnable));
        }

        /**
         * @param autoEnableOrganizationMembers Indicates the auto-enablement configuration of GuardDuty for the member accounts in the organization. Valid values are `ALL`, `NEW`, `NONE`.
         * 
         * @return builder
         * 
         */
        public Builder autoEnableOrganizationMembers(@Nullable Output autoEnableOrganizationMembers) {
            $.autoEnableOrganizationMembers = autoEnableOrganizationMembers;
            return this;
        }

        /**
         * @param autoEnableOrganizationMembers Indicates the auto-enablement configuration of GuardDuty for the member accounts in the organization. Valid values are `ALL`, `NEW`, `NONE`.
         * 
         * @return builder
         * 
         */
        public Builder autoEnableOrganizationMembers(String autoEnableOrganizationMembers) {
            return autoEnableOrganizationMembers(Output.of(autoEnableOrganizationMembers));
        }

        /**
         * @param datasources Configuration for the collected datasources.
         * 
         * @return builder
         * 
         */
        public Builder datasources(@Nullable Output datasources) {
            $.datasources = datasources;
            return this;
        }

        /**
         * @param datasources Configuration for the collected datasources.
         * 
         * @return builder
         * 
         */
        public Builder datasources(OrganizationConfigurationDatasourcesArgs datasources) {
            return datasources(Output.of(datasources));
        }

        /**
         * @param detectorId The detector ID of the GuardDuty account.
         * 
         * @return builder
         * 
         */
        public Builder detectorId(Output detectorId) {
            $.detectorId = detectorId;
            return this;
        }

        /**
         * @param detectorId The detector ID of the GuardDuty account.
         * 
         * @return builder
         * 
         */
        public Builder detectorId(String detectorId) {
            return detectorId(Output.of(detectorId));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy