Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
151 views
in Technique[技术] by (71.8m points)

amazon web services - Output from secret rotation in AWS

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?enter image description here

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;
        }

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...