com.pulumi.aws.lambda.outputs.FunctionImageConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** 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.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class FunctionImageConfig {
/**
* @return Parameters that you want to pass in with `entry_point`.
*
*/
private @Nullable List commands;
/**
* @return Entry point to your application, which is typically the location of the runtime executable.
*
*/
private @Nullable List entryPoints;
/**
* @return Working directory.
*
*/
private @Nullable String workingDirectory;
private FunctionImageConfig() {}
/**
* @return Parameters that you want to pass in with `entry_point`.
*
*/
public List commands() {
return this.commands == null ? List.of() : this.commands;
}
/**
* @return Entry point to your application, which is typically the location of the runtime executable.
*
*/
public List entryPoints() {
return this.entryPoints == null ? List.of() : this.entryPoints;
}
/**
* @return Working directory.
*
*/
public Optional workingDirectory() {
return Optional.ofNullable(this.workingDirectory);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(FunctionImageConfig defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List commands;
private @Nullable List entryPoints;
private @Nullable String workingDirectory;
public Builder() {}
public Builder(FunctionImageConfig defaults) {
Objects.requireNonNull(defaults);
this.commands = defaults.commands;
this.entryPoints = defaults.entryPoints;
this.workingDirectory = defaults.workingDirectory;
}
@CustomType.Setter
public Builder commands(@Nullable List commands) {
this.commands = commands;
return this;
}
public Builder commands(String... commands) {
return commands(List.of(commands));
}
@CustomType.Setter
public Builder entryPoints(@Nullable List entryPoints) {
this.entryPoints = entryPoints;
return this;
}
public Builder entryPoints(String... entryPoints) {
return entryPoints(List.of(entryPoints));
}
@CustomType.Setter
public Builder workingDirectory(@Nullable String workingDirectory) {
this.workingDirectory = workingDirectory;
return this;
}
public FunctionImageConfig build() {
final var _resultValue = new FunctionImageConfig();
_resultValue.commands = commands;
_resultValue.entryPoints = entryPoints;
_resultValue.workingDirectory = workingDirectory;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy