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

com.pulumi.aws.shield.inputs.ProtectionGroupState Maven / Gradle / Ivy

// *** 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.shield.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ProtectionGroupState Empty = new ProtectionGroupState();

    /**
     * Defines how AWS Shield combines resource data for the group in order to detect, mitigate, and report events.
     * 
     */
    @Import(name="aggregation")
    private @Nullable Output aggregation;

    /**
     * @return Defines how AWS Shield combines resource data for the group in order to detect, mitigate, and report events.
     * 
     */
    public Optional> aggregation() {
        return Optional.ofNullable(this.aggregation);
    }

    /**
     * The Amazon Resource Names (ARNs) of the resources to include in the protection group. You must set this when you set `pattern` to ARBITRARY and you must not set it for any other `pattern` setting.
     * 
     */
    @Import(name="members")
    private @Nullable Output> members;

    /**
     * @return The Amazon Resource Names (ARNs) of the resources to include in the protection group. You must set this when you set `pattern` to ARBITRARY and you must not set it for any other `pattern` setting.
     * 
     */
    public Optional>> members() {
        return Optional.ofNullable(this.members);
    }

    /**
     * The criteria to use to choose the protected resources for inclusion in the group.
     * 
     */
    @Import(name="pattern")
    private @Nullable Output pattern;

    /**
     * @return The criteria to use to choose the protected resources for inclusion in the group.
     * 
     */
    public Optional> pattern() {
        return Optional.ofNullable(this.pattern);
    }

    /**
     * The ARN (Amazon Resource Name) of the protection group.
     * 
     */
    @Import(name="protectionGroupArn")
    private @Nullable Output protectionGroupArn;

    /**
     * @return The ARN (Amazon Resource Name) of the protection group.
     * 
     */
    public Optional> protectionGroupArn() {
        return Optional.ofNullable(this.protectionGroupArn);
    }

    /**
     * The name of the protection group.
     * 
     */
    @Import(name="protectionGroupId")
    private @Nullable Output protectionGroupId;

    /**
     * @return The name of the protection group.
     * 
     */
    public Optional> protectionGroupId() {
        return Optional.ofNullable(this.protectionGroupId);
    }

    /**
     * The resource type to include in the protection group. You must set this when you set `pattern` to BY_RESOURCE_TYPE and you must not set it for any other `pattern` setting.
     * 
     */
    @Import(name="resourceType")
    private @Nullable Output resourceType;

    /**
     * @return The resource type to include in the protection group. You must set this when you set `pattern` to BY_RESOURCE_TYPE and you must not set it for any other `pattern` setting.
     * 
     */
    public Optional> resourceType() {
        return Optional.ofNullable(this.resourceType);
    }

    /**
     * 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);
    }

    /**
     * A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
     * 
     * @deprecated
     * Please use `tags` instead.
     * 
     */
    @Deprecated /* Please use `tags` instead. */
    @Import(name="tagsAll")
    private @Nullable Output> tagsAll;

    /**
     * @return A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
     * 
     * @deprecated
     * Please use `tags` instead.
     * 
     */
    @Deprecated /* Please use `tags` instead. */
    public Optional>> tagsAll() {
        return Optional.ofNullable(this.tagsAll);
    }

    private ProtectionGroupState() {}

    private ProtectionGroupState(ProtectionGroupState $) {
        this.aggregation = $.aggregation;
        this.members = $.members;
        this.pattern = $.pattern;
        this.protectionGroupArn = $.protectionGroupArn;
        this.protectionGroupId = $.protectionGroupId;
        this.resourceType = $.resourceType;
        this.tags = $.tags;
        this.tagsAll = $.tagsAll;
    }

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

    public static final class Builder {
        private ProtectionGroupState $;

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

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

        /**
         * @param aggregation Defines how AWS Shield combines resource data for the group in order to detect, mitigate, and report events.
         * 
         * @return builder
         * 
         */
        public Builder aggregation(@Nullable Output aggregation) {
            $.aggregation = aggregation;
            return this;
        }

        /**
         * @param aggregation Defines how AWS Shield combines resource data for the group in order to detect, mitigate, and report events.
         * 
         * @return builder
         * 
         */
        public Builder aggregation(String aggregation) {
            return aggregation(Output.of(aggregation));
        }

        /**
         * @param members The Amazon Resource Names (ARNs) of the resources to include in the protection group. You must set this when you set `pattern` to ARBITRARY and you must not set it for any other `pattern` setting.
         * 
         * @return builder
         * 
         */
        public Builder members(@Nullable Output> members) {
            $.members = members;
            return this;
        }

        /**
         * @param members The Amazon Resource Names (ARNs) of the resources to include in the protection group. You must set this when you set `pattern` to ARBITRARY and you must not set it for any other `pattern` setting.
         * 
         * @return builder
         * 
         */
        public Builder members(List members) {
            return members(Output.of(members));
        }

        /**
         * @param members The Amazon Resource Names (ARNs) of the resources to include in the protection group. You must set this when you set `pattern` to ARBITRARY and you must not set it for any other `pattern` setting.
         * 
         * @return builder
         * 
         */
        public Builder members(String... members) {
            return members(List.of(members));
        }

        /**
         * @param pattern The criteria to use to choose the protected resources for inclusion in the group.
         * 
         * @return builder
         * 
         */
        public Builder pattern(@Nullable Output pattern) {
            $.pattern = pattern;
            return this;
        }

        /**
         * @param pattern The criteria to use to choose the protected resources for inclusion in the group.
         * 
         * @return builder
         * 
         */
        public Builder pattern(String pattern) {
            return pattern(Output.of(pattern));
        }

        /**
         * @param protectionGroupArn The ARN (Amazon Resource Name) of the protection group.
         * 
         * @return builder
         * 
         */
        public Builder protectionGroupArn(@Nullable Output protectionGroupArn) {
            $.protectionGroupArn = protectionGroupArn;
            return this;
        }

        /**
         * @param protectionGroupArn The ARN (Amazon Resource Name) of the protection group.
         * 
         * @return builder
         * 
         */
        public Builder protectionGroupArn(String protectionGroupArn) {
            return protectionGroupArn(Output.of(protectionGroupArn));
        }

        /**
         * @param protectionGroupId The name of the protection group.
         * 
         * @return builder
         * 
         */
        public Builder protectionGroupId(@Nullable Output protectionGroupId) {
            $.protectionGroupId = protectionGroupId;
            return this;
        }

        /**
         * @param protectionGroupId The name of the protection group.
         * 
         * @return builder
         * 
         */
        public Builder protectionGroupId(String protectionGroupId) {
            return protectionGroupId(Output.of(protectionGroupId));
        }

        /**
         * @param resourceType The resource type to include in the protection group. You must set this when you set `pattern` to BY_RESOURCE_TYPE and you must not set it for any other `pattern` setting.
         * 
         * @return builder
         * 
         */
        public Builder resourceType(@Nullable Output resourceType) {
            $.resourceType = resourceType;
            return this;
        }

        /**
         * @param resourceType The resource type to include in the protection group. You must set this when you set `pattern` to BY_RESOURCE_TYPE and you must not set it for any other `pattern` setting.
         * 
         * @return builder
         * 
         */
        public Builder resourceType(String resourceType) {
            return resourceType(Output.of(resourceType));
        }

        /**
         * @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));
        }

        /**
         * @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
         * 
         * @return builder
         * 
         * @deprecated
         * Please use `tags` instead.
         * 
         */
        @Deprecated /* Please use `tags` instead. */
        public Builder tagsAll(@Nullable Output> tagsAll) {
            $.tagsAll = tagsAll;
            return this;
        }

        /**
         * @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
         * 
         * @return builder
         * 
         * @deprecated
         * Please use `tags` instead.
         * 
         */
        @Deprecated /* Please use `tags` instead. */
        public Builder tagsAll(Map tagsAll) {
            return tagsAll(Output.of(tagsAll));
        }

        public ProtectionGroupState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy