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

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

import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


public final class GetAliasPlainArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetAliasPlainArgs Empty = new GetAliasPlainArgs();

    /**
     * Name of the aliased Lambda function.
     * 
     */
    @Import(name="functionName", required=true)
    private String functionName;

    /**
     * @return Name of the aliased Lambda function.
     * 
     */
    public String functionName() {
        return this.functionName;
    }

    /**
     * Name of the Lambda alias.
     * 
     */
    @Import(name="name", required=true)
    private String name;

    /**
     * @return Name of the Lambda alias.
     * 
     */
    public String name() {
        return this.name;
    }

    private GetAliasPlainArgs() {}

    private GetAliasPlainArgs(GetAliasPlainArgs $) {
        this.functionName = $.functionName;
        this.name = $.name;
    }

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

    public static final class Builder {
        private GetAliasPlainArgs $;

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

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

        /**
         * @param functionName Name of the aliased Lambda function.
         * 
         * @return builder
         * 
         */
        public Builder functionName(String functionName) {
            $.functionName = functionName;
            return this;
        }

        /**
         * @param name Name of the Lambda alias.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            $.name = name;
            return this;
        }

        public GetAliasPlainArgs build() {
            if ($.functionName == null) {
                throw new MissingRequiredPropertyException("GetAliasPlainArgs", "functionName");
            }
            if ($.name == null) {
                throw new MissingRequiredPropertyException("GetAliasPlainArgs", "name");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy