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

com.pulumi.aws.lambda.inputs.FunctionSnapStartArgs 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.lambda.inputs;

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


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

    public static final FunctionSnapStartArgs Empty = new FunctionSnapStartArgs();

    /**
     * Conditions where snap start is enabled. Valid values are `PublishedVersions`.
     * 
     */
    @Import(name="applyOn", required=true)
    private Output applyOn;

    /**
     * @return Conditions where snap start is enabled. Valid values are `PublishedVersions`.
     * 
     */
    public Output applyOn() {
        return this.applyOn;
    }

    /**
     * Optimization status of the snap start configuration. Valid values are `On` and `Off`.
     * 
     */
    @Import(name="optimizationStatus")
    private @Nullable Output optimizationStatus;

    /**
     * @return Optimization status of the snap start configuration. Valid values are `On` and `Off`.
     * 
     */
    public Optional> optimizationStatus() {
        return Optional.ofNullable(this.optimizationStatus);
    }

    private FunctionSnapStartArgs() {}

    private FunctionSnapStartArgs(FunctionSnapStartArgs $) {
        this.applyOn = $.applyOn;
        this.optimizationStatus = $.optimizationStatus;
    }

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

    public static final class Builder {
        private FunctionSnapStartArgs $;

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

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

        /**
         * @param applyOn Conditions where snap start is enabled. Valid values are `PublishedVersions`.
         * 
         * @return builder
         * 
         */
        public Builder applyOn(Output applyOn) {
            $.applyOn = applyOn;
            return this;
        }

        /**
         * @param applyOn Conditions where snap start is enabled. Valid values are `PublishedVersions`.
         * 
         * @return builder
         * 
         */
        public Builder applyOn(String applyOn) {
            return applyOn(Output.of(applyOn));
        }

        /**
         * @param optimizationStatus Optimization status of the snap start configuration. Valid values are `On` and `Off`.
         * 
         * @return builder
         * 
         */
        public Builder optimizationStatus(@Nullable Output optimizationStatus) {
            $.optimizationStatus = optimizationStatus;
            return this;
        }

        /**
         * @param optimizationStatus Optimization status of the snap start configuration. Valid values are `On` and `Off`.
         * 
         * @return builder
         * 
         */
        public Builder optimizationStatus(String optimizationStatus) {
            return optimizationStatus(Output.of(optimizationStatus));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy