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

com.pulumi.aws.bedrock.inputs.GuardrailVersionState 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.bedrock.inputs;

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


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

    public static final GuardrailVersionState Empty = new GuardrailVersionState();

    /**
     * Description of the Guardrail version.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Description of the Guardrail version.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Guardrail ARN.
     * 
     * The following arguments are optional:
     * 
     */
    @Import(name="guardrailArn")
    private @Nullable Output guardrailArn;

    /**
     * @return Guardrail ARN.
     * 
     * The following arguments are optional:
     * 
     */
    public Optional> guardrailArn() {
        return Optional.ofNullable(this.guardrailArn);
    }

    /**
     * Whether to retain the old version of a previously deployed Guardrail. Default is `false`
     * 
     */
    @Import(name="skipDestroy")
    private @Nullable Output skipDestroy;

    /**
     * @return Whether to retain the old version of a previously deployed Guardrail. Default is `false`
     * 
     */
    public Optional> skipDestroy() {
        return Optional.ofNullable(this.skipDestroy);
    }

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

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

    /**
     * Guardrail version.
     * 
     */
    @Import(name="version")
    private @Nullable Output version;

    /**
     * @return Guardrail version.
     * 
     */
    public Optional> version() {
        return Optional.ofNullable(this.version);
    }

    private GuardrailVersionState() {}

    private GuardrailVersionState(GuardrailVersionState $) {
        this.description = $.description;
        this.guardrailArn = $.guardrailArn;
        this.skipDestroy = $.skipDestroy;
        this.timeouts = $.timeouts;
        this.version = $.version;
    }

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

    public static final class Builder {
        private GuardrailVersionState $;

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

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

        /**
         * @param description Description of the Guardrail version.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Description of the Guardrail version.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param guardrailArn Guardrail ARN.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder guardrailArn(@Nullable Output guardrailArn) {
            $.guardrailArn = guardrailArn;
            return this;
        }

        /**
         * @param guardrailArn Guardrail ARN.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder guardrailArn(String guardrailArn) {
            return guardrailArn(Output.of(guardrailArn));
        }

        /**
         * @param skipDestroy Whether to retain the old version of a previously deployed Guardrail. Default is `false`
         * 
         * @return builder
         * 
         */
        public Builder skipDestroy(@Nullable Output skipDestroy) {
            $.skipDestroy = skipDestroy;
            return this;
        }

        /**
         * @param skipDestroy Whether to retain the old version of a previously deployed Guardrail. Default is `false`
         * 
         * @return builder
         * 
         */
        public Builder skipDestroy(Boolean skipDestroy) {
            return skipDestroy(Output.of(skipDestroy));
        }

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

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

        /**
         * @param version Guardrail version.
         * 
         * @return builder
         * 
         */
        public Builder version(@Nullable Output version) {
            $.version = version;
            return this;
        }

        /**
         * @param version Guardrail version.
         * 
         * @return builder
         * 
         */
        public Builder version(String version) {
            return version(Output.of(version));
        }

        public GuardrailVersionState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy