I have currently set up initiating a custom function when secret rotation is called in AWS secret manager. This is sending an inputstream to the function handleRequest. However, I need the function to receive a string. Is there any way to have the rotation send a string?
public Object handleRequest(InputStream inputStream, Context context) {
ObjectMapper objectMapper = new ObjectMapper();
if (new byte[inputStream.available()].length == 9) {
VersionResponse versionResponse = createVersionResponse();
return objectMapper.writeValueAsString(versionResponse);
} else {
carryOutRotation();
return null;
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…