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

com.pulumi.aws.shield.inputs.ApplicationLayerAutomaticResponseState 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.shield.inputs;

import com.pulumi.aws.shield.inputs.ApplicationLayerAutomaticResponseTimeoutsArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ApplicationLayerAutomaticResponseState Empty = new ApplicationLayerAutomaticResponseState();

    /**
     * One of `COUNT` or `BLOCK`
     * 
     */
    @Import(name="action")
    private @Nullable Output action;

    /**
     * @return One of `COUNT` or `BLOCK`
     * 
     */
    public Optional> action() {
        return Optional.ofNullable(this.action);
    }

    /**
     * ARN of the resource to protect (Cloudfront Distributions and ALBs only at this time).
     * 
     */
    @Import(name="resourceArn")
    private @Nullable Output resourceArn;

    /**
     * @return ARN of the resource to protect (Cloudfront Distributions and ALBs only at this time).
     * 
     */
    public Optional> resourceArn() {
        return Optional.ofNullable(this.resourceArn);
    }

    @Import(name="timeouts")
    private @Nullable Output timeouts;

    public Optional> timeouts() {
        return Optional.ofNullable(this.timeouts);
    }

    private ApplicationLayerAutomaticResponseState() {}

    private ApplicationLayerAutomaticResponseState(ApplicationLayerAutomaticResponseState $) {
        this.action = $.action;
        this.resourceArn = $.resourceArn;
        this.timeouts = $.timeouts;
    }

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

    public static final class Builder {
        private ApplicationLayerAutomaticResponseState $;

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

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

        /**
         * @param action One of `COUNT` or `BLOCK`
         * 
         * @return builder
         * 
         */
        public Builder action(@Nullable Output action) {
            $.action = action;
            return this;
        }

        /**
         * @param action One of `COUNT` or `BLOCK`
         * 
         * @return builder
         * 
         */
        public Builder action(String action) {
            return action(Output.of(action));
        }

        /**
         * @param resourceArn ARN of the resource to protect (Cloudfront Distributions and ALBs only at this time).
         * 
         * @return builder
         * 
         */
        public Builder resourceArn(@Nullable Output resourceArn) {
            $.resourceArn = resourceArn;
            return this;
        }

        /**
         * @param resourceArn ARN of the resource to protect (Cloudfront Distributions and ALBs only at this time).
         * 
         * @return builder
         * 
         */
        public Builder resourceArn(String resourceArn) {
            return resourceArn(Output.of(resourceArn));
        }

        public Builder timeouts(@Nullable Output timeouts) {
            $.timeouts = timeouts;
            return this;
        }

        public Builder timeouts(ApplicationLayerAutomaticResponseTimeoutsArgs timeouts) {
            return timeouts(Output.of(timeouts));
        }

        public ApplicationLayerAutomaticResponseState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy