export async function getSsmValue()

in src/utils/ssm.ts [6:18]


export async function getSsmValue(
    stage: string,
    id: string,
): Promise<string | undefined> {
    const name = `/membership/national-delivery-fulfilment/${stage}/${id}`;
    const client = new SSMClient({ region: Region });
    const input = {
        Name: name,
    };
    const command = new GetParameterCommand(input);
    const response = await client.send(command);
    return response.Parameter?.Value;
}