PatchBaseline

class PatchBaseline : KotlinCustomResource

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

Import

OOS Patch Baseline can be imported using the id, e.g.

$ pulumi import alicloud:oos/patchBaseline:PatchBaseline example <patch_baseline_name>

Properties

Link copied to clipboard
val approvalRules: Output<String>

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
val description: Output<String>?

Patches baseline description information.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val operationSystem: Output<String>

Operating system type. Valid values: AliyunLinux, Anolis, CentOS, Debian, RedhatEnterpriseLinux, Ubuntu, Windows, AlmaLinux.

Link copied to clipboard

The name of the patch baseline.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>