Patch Baseline Args
data class PatchBaselineArgs(val approvalRules: Output<String>? = null, val description: Output<String>? = null, val operationSystem: Output<String>? = null, val patchBaselineName: Output<String>? = null) : ConvertibleToJava<PatchBaselineArgs>
Provides a OOS Patch Baseline resource. For information about OOS Patch Baseline and how to use it, see What is Patch Baseline.
NOTE: Available in v1.146.0+.
Example Usage
Basic Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.oos.PatchBaseline;
import com.pulumi.alicloud.oos.PatchBaselineArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new PatchBaseline("example", PatchBaselineArgs.builder()
.approvalRules("{\"PatchRules\":[{\"PatchFilterGroup\":[{\"Key\":\"PatchSet\",\"Values\":[\"OS\"]},{\"Key\":\"ProductFamily\",\"Values\":[\"Windows\"]},{\"Key\":\"Product\",\"Values\":[\"Windows 10\",\"Windows 7\"]},{\"Key\":\"Classification\",\"Values\":[\"Security Updates\",\"Updates\",\"Update Rollups\",\"Critical Updates\"]},{\"Key\":\"Severity\",\"Values\":[\"Critical\",\"Important\",\"Moderate\"]}],\"ApproveAfterDays\":7,\"EnableNonSecurity\":true,\"ComplianceLevel\":\"Medium\"}]}")
.operationSystem("Windows")
.patchBaselineName("terraform-example")
.build());
}
}
Content copied to clipboard
Import
OOS Patch Baseline can be imported using the id, e.g.
$ pulumi import alicloud:oos/patchBaseline:PatchBaseline example <patch_baseline_name>
Content copied to clipboard
Constructors
Link copied to clipboard
fun PatchBaselineArgs(approvalRules: Output<String>? = null, description: Output<String>? = null, operationSystem: Output<String>? = null, patchBaselineName: Output<String>? = null)
Functions
Properties
Link copied to clipboard
Accept the rules. This value follows the json format. For more details, see the description of ApprovalRules in the Request parameters table for details.
Link copied to clipboard
Link copied to clipboard