代码示例
分发时资源ASLP方法
public ResponseObject call(Map<String, Object> params) {
ResponseObject ro = ResponseObject.newOkResponse();
try {
String resAppId = (String)params.get("resAppId");
JSONObject data = new JSONObject();
data.put("test","ok"+resAppId);
ro.put("res",data);
} catch (AWSException e) {
return ro.err(e.getMessage());
}
return ro;
}
安装时资源ASLP方法
public ResponseObject call(Map<String, Object> params) {
ResponseObject ro = ResponseObject.newOkResponse();
try {
String resAppId = (String)params.get("resAppId");
System.out.println("安装时成功获取" + resAppId + "一个值:"+ params.get("res").toString());
} catch (AWSException e) {
return ro.err(e.getMessage());
}
return ro;
}
升级时资源ASLP方法
public ResponseObject call(Map<String, Object> params) {
ResponseObject ro = ResponseObject.newOkResponse();
try {
String resAppId = (String)params.get("resAppId");
System.out.println("更新时成功获取" + resAppId + "一个值:"+ params.get("res").toString());
} catch (AWSException e) {
return ro.err(e.getMessage());
}
return ro;
}
感谢您对该文档的关注!如果您对当前页面内容有疑问或好的建议,请与我联系。如果您需要解答相关技术问题请
登录AWS客户成功社区