Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
} from './function.constants';

export function BasicSettingsForm( props: IFormikStageConfigInjectedProps ) {
const { values, errors } = props.formik;
const { values, errors } = props.formik;

const setFunctionName = () => {
const ns = NameUtils.getClusterName( props.application.applicationName, values.stackName, values.detailName );
Expand Down Expand Up @@ -173,6 +173,12 @@ export function BasicSettingsForm( props: IFormikStageConfigInjectedProps ) {
help={<HelpField id="aws.function.publish" />}
input={props => <CheckboxInput {...props} />}
/>
{values.runtime === "java11" && <FormikFormField
name="snapstart"
label="SnapStart"
help={<HelpField content="Create a snapshot of the initialized execution environment to improve startup performance." />}
input={props => <CheckboxInput {...props} />}
/>}

</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public class LambdaDeploymentInput {
int memorySize;
int timeout;
Boolean publish;
Boolean snapstart;

HashMap<String, String> envVariables;
HashMap<String, String> tags;
Expand Down