I'm looking to create a test case for the SSM GetParameterCommand request in TypeScript. Here is my code snippet:
const region = "us-east-1"
const awsSSMClient = new SSMClient({ region })
export async function fetchParam(parameterName: string, decrypt: boolean): Promise<string> {
const paramconfig = {
Name: parameterName,
WithDecryption: decrypt
}
const command = new GetParameterCommand(input)
const parameter: any = await awsSSMClient.send(command)
return parameter.Parameter.Value
}
Is it possible to utilize aws-sdk-client-mock for this? If not, could someone provide an example?
Thanks