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

com.pulumi.aws.lambda.inputs.GetLayerVersionArgs 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.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final GetLayerVersionArgs Empty = new GetLayerVersionArgs();

    /**
     * Specific architecture the layer version could support. Conflicts with `version`. If specified, the latest available layer version supporting the provided architecture will be used.
     * 
     */
    @Import(name="compatibleArchitecture")
    private @Nullable Output compatibleArchitecture;

    /**
     * @return Specific architecture the layer version could support. Conflicts with `version`. If specified, the latest available layer version supporting the provided architecture will be used.
     * 
     */
    public Optional> compatibleArchitecture() {
        return Optional.ofNullable(this.compatibleArchitecture);
    }

    /**
     * Specific runtime the layer version must support. Conflicts with `version`. If specified, the latest available layer version supporting the provided runtime will be used.
     * 
     */
    @Import(name="compatibleRuntime")
    private @Nullable Output compatibleRuntime;

    /**
     * @return Specific runtime the layer version must support. Conflicts with `version`. If specified, the latest available layer version supporting the provided runtime will be used.
     * 
     */
    public Optional> compatibleRuntime() {
        return Optional.ofNullable(this.compatibleRuntime);
    }

    /**
     * Name of the lambda layer.
     * 
     */
    @Import(name="layerName", required=true)
    private Output layerName;

    /**
     * @return Name of the lambda layer.
     * 
     */
    public Output layerName() {
        return this.layerName;
    }

    /**
     * Specific layer version. Conflicts with `compatible_runtime` and `compatible_architecture`. If omitted, the latest available layer version will be used.
     * 
     */
    @Import(name="version")
    private @Nullable Output version;

    /**
     * @return Specific layer version. Conflicts with `compatible_runtime` and `compatible_architecture`. If omitted, the latest available layer version will be used.
     * 
     */
    public Optional> version() {
        return Optional.ofNullable(this.version);
    }

    private GetLayerVersionArgs() {}

    private GetLayerVersionArgs(GetLayerVersionArgs $) {
        this.compatibleArchitecture = $.compatibleArchitecture;
        this.compatibleRuntime = $.compatibleRuntime;
        this.layerName = $.layerName;
        this.version = $.version;
    }

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

    public static final class Builder {
        private GetLayerVersionArgs $;

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

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

        /**
         * @param compatibleArchitecture Specific architecture the layer version could support. Conflicts with `version`. If specified, the latest available layer version supporting the provided architecture will be used.
         * 
         * @return builder
         * 
         */
        public Builder compatibleArchitecture(@Nullable Output compatibleArchitecture) {
            $.compatibleArchitecture = compatibleArchitecture;
            return this;
        }

        /**
         * @param compatibleArchitecture Specific architecture the layer version could support. Conflicts with `version`. If specified, the latest available layer version supporting the provided architecture will be used.
         * 
         * @return builder
         * 
         */
        public Builder compatibleArchitecture(String compatibleArchitecture) {
            return compatibleArchitecture(Output.of(compatibleArchitecture));
        }

        /**
         * @param compatibleRuntime Specific runtime the layer version must support. Conflicts with `version`. If specified, the latest available layer version supporting the provided runtime will be used.
         * 
         * @return builder
         * 
         */
        public Builder compatibleRuntime(@Nullable Output compatibleRuntime) {
            $.compatibleRuntime = compatibleRuntime;
            return this;
        }

        /**
         * @param compatibleRuntime Specific runtime the layer version must support. Conflicts with `version`. If specified, the latest available layer version supporting the provided runtime will be used.
         * 
         * @return builder
         * 
         */
        public Builder compatibleRuntime(String compatibleRuntime) {
            return compatibleRuntime(Output.of(compatibleRuntime));
        }

        /**
         * @param layerName Name of the lambda layer.
         * 
         * @return builder
         * 
         */
        public Builder layerName(Output layerName) {
            $.layerName = layerName;
            return this;
        }

        /**
         * @param layerName Name of the lambda layer.
         * 
         * @return builder
         * 
         */
        public Builder layerName(String layerName) {
            return layerName(Output.of(layerName));
        }

        /**
         * @param version Specific layer version. Conflicts with `compatible_runtime` and `compatible_architecture`. If omitted, the latest available layer version will be used.
         * 
         * @return builder
         * 
         */
        public Builder version(@Nullable Output version) {
            $.version = version;
            return this;
        }

        /**
         * @param version Specific layer version. Conflicts with `compatible_runtime` and `compatible_architecture`. If omitted, the latest available layer version will be used.
         * 
         * @return builder
         * 
         */
        public Builder version(Integer version) {
            return version(Output.of(version));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy