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 since 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) {
final var config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
var default_ = new PatchBaseline("default", PatchBaselineArgs.builder()
.patchBaselineName(name)
.operationSystem("Windows")
.approvalRules("{\"PatchRules\":[{\"EnableNonSecurity\":true,\"PatchFilterGroup\":[{\"Values\":[\"*\"],\"Key\":\"Product\"},{\"Values\":[\"Security\",\"Bugfix\"],\"Key\":\"Classification\"},{\"Values\":[\"Critical\",\"Important\"],\"Key\":\"Severity\"}],\"ApproveAfterDays\":7,\"ComplianceLevel\":\"Unspecified\"}]}")
.build());
}
}

Import

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

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

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 createTime: Output<String>

Creation time.

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 rejectedPatches: Output<List<String>>?

Reject patches.

Link copied to clipboard

Rejected patches action. Valid values: ALLOW_AS_DEPENDENCY, BLOCK.

Link copied to clipboard
val urn: Output<String>