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

com.pulumi.aws.guardduty.ThreatIntelSetArgs Maven / Gradle / Ivy

Go to download

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

The 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.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ThreatIntelSetArgs Empty = new ThreatIntelSetArgs();

    /**
     * Specifies whether GuardDuty is to start using the uploaded ThreatIntelSet.
     * 
     */
    @Import(name="activate", required=true)
    private Output activate;

    /**
     * @return Specifies whether GuardDuty is to start using the uploaded ThreatIntelSet.
     * 
     */
    public Output activate() {
        return this.activate;
    }

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

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

    /**
     * The format of the file that contains the ThreatIntelSet. Valid values: `TXT` | `STIX` | `OTX_CSV` | `ALIEN_VAULT` | `PROOF_POINT` | `FIRE_EYE`
     * 
     */
    @Import(name="format", required=true)
    private Output format;

    /**
     * @return The format of the file that contains the ThreatIntelSet. Valid values: `TXT` | `STIX` | `OTX_CSV` | `ALIEN_VAULT` | `PROOF_POINT` | `FIRE_EYE`
     * 
     */
    public Output format() {
        return this.format;
    }

    /**
     * The URI of the file that contains the ThreatIntelSet.
     * 
     */
    @Import(name="location", required=true)
    private Output location;

    /**
     * @return The URI of the file that contains the ThreatIntelSet.
     * 
     */
    public Output location() {
        return this.location;
    }

    /**
     * The friendly name to identify the ThreatIntelSet.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The friendly name to identify the ThreatIntelSet.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Key-value map of resource tags. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Key-value map of resource tags. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private ThreatIntelSetArgs() {}

    private ThreatIntelSetArgs(ThreatIntelSetArgs $) {
        this.activate = $.activate;
        this.detectorId = $.detectorId;
        this.format = $.format;
        this.location = $.location;
        this.name = $.name;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private ThreatIntelSetArgs $;

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

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

        /**
         * @param activate Specifies whether GuardDuty is to start using the uploaded ThreatIntelSet.
         * 
         * @return builder
         * 
         */
        public Builder activate(Output activate) {
            $.activate = activate;
            return this;
        }

        /**
         * @param activate Specifies whether GuardDuty is to start using the uploaded ThreatIntelSet.
         * 
         * @return builder
         * 
         */
        public Builder activate(Boolean activate) {
            return activate(Output.of(activate));
        }

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

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

        /**
         * @param format The format of the file that contains the ThreatIntelSet. Valid values: `TXT` | `STIX` | `OTX_CSV` | `ALIEN_VAULT` | `PROOF_POINT` | `FIRE_EYE`
         * 
         * @return builder
         * 
         */
        public Builder format(Output format) {
            $.format = format;
            return this;
        }

        /**
         * @param format The format of the file that contains the ThreatIntelSet. Valid values: `TXT` | `STIX` | `OTX_CSV` | `ALIEN_VAULT` | `PROOF_POINT` | `FIRE_EYE`
         * 
         * @return builder
         * 
         */
        public Builder format(String format) {
            return format(Output.of(format));
        }

        /**
         * @param location The URI of the file that contains the ThreatIntelSet.
         * 
         * @return builder
         * 
         */
        public Builder location(Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The URI of the file that contains the ThreatIntelSet.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param name The friendly name to identify the ThreatIntelSet.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The friendly name to identify the ThreatIntelSet.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param tags Key-value map of resource tags. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Key-value map of resource tags. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public ThreatIntelSetArgs build() {
            if ($.activate == null) {
                throw new MissingRequiredPropertyException("ThreatIntelSetArgs", "activate");
            }
            if ($.detectorId == null) {
                throw new MissingRequiredPropertyException("ThreatIntelSetArgs", "detectorId");
            }
            if ($.format == null) {
                throw new MissingRequiredPropertyException("ThreatIntelSetArgs", "format");
            }
            if ($.location == null) {
                throw new MissingRequiredPropertyException("ThreatIntelSetArgs", "location");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy