use of software.amazon.awssdk.services.ssm.model.UpdateOpsItemRequest in project aws-doc-sdk-examples by awsdocs.
the class ResolveOpsItem method setOpsItemStatus.
// snippet-start:[ssm.Java2.resolve_ops.main]
public static void setOpsItemStatus(SsmClient ssmClient, String opsID) {
try {
UpdateOpsItemRequest opsItemRequest = UpdateOpsItemRequest.builder().opsItemId(opsID).status(OpsItemStatus.RESOLVED).build();
ssmClient.updateOpsItem(opsItemRequest);
} catch (SsmException e) {
System.err.println(e.getMessage());
System.exit(1);
}
}
Aggregations