Alibaba Cloud

v3.28.0 published on Tuesday, Aug 16, 2022 by Pulumi

PatchBaseline

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

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new AliCloud.Oos.PatchBaseline("example", new AliCloud.Oos.PatchBaselineArgs
        {
            ApprovalRules = "example_value",
            OperationSystem = "Windows",
            PatchBaselineName = "my-PatchBaseline",
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/oos"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := oos.NewPatchBaseline(ctx, "example", &oos.PatchBaselineArgs{
			ApprovalRules:     pulumi.String("example_value"),
			OperationSystem:   pulumi.String("Windows"),
			PatchBaselineName: pulumi.String("my-PatchBaseline"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
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("example_value")
            .operationSystem("Windows")
            .patchBaselineName("my-PatchBaseline")
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

example = alicloud.oos.PatchBaseline("example",
    approval_rules="example_value",
    operation_system="Windows",
    patch_baseline_name="my-PatchBaseline")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const example = new alicloud.oos.PatchBaseline("example", {
    approvalRules: "example_value",
    operationSystem: "Windows",
    patchBaselineName: "my-PatchBaseline",
});
resources:
  example:
    type: alicloud:oos:PatchBaseline
    properties:
      approvalRules: example_value
      operationSystem: Windows
      patchBaselineName: my-PatchBaseline

Create PatchBaseline Resource

new PatchBaseline(name: string, args: PatchBaselineArgs, opts?: CustomResourceOptions);
@overload
def PatchBaseline(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  approval_rules: Optional[str] = None,
                  description: Optional[str] = None,
                  operation_system: Optional[str] = None,
                  patch_baseline_name: Optional[str] = None)
@overload
def PatchBaseline(resource_name: str,
                  args: PatchBaselineArgs,
                  opts: Optional[ResourceOptions] = None)
func NewPatchBaseline(ctx *Context, name string, args PatchBaselineArgs, opts ...ResourceOption) (*PatchBaseline, error)
public PatchBaseline(string name, PatchBaselineArgs args, CustomResourceOptions? opts = null)
public PatchBaseline(String name, PatchBaselineArgs args)
public PatchBaseline(String name, PatchBaselineArgs args, CustomResourceOptions options)
type: alicloud:oos:PatchBaseline
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args PatchBaselineArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args PatchBaselineArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args PatchBaselineArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args PatchBaselineArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args PatchBaselineArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

PatchBaseline Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The PatchBaseline resource accepts the following input properties:

ApprovalRules 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.

OperationSystem string

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

PatchBaselineName string

The name of the patch baseline.

Description string

Patches baseline description information.

ApprovalRules 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.

OperationSystem string

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

PatchBaselineName string

The name of the patch baseline.

Description string

Patches baseline description information.

approvalRules 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.

operationSystem String

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

patchBaselineName String

The name of the patch baseline.

description String

Patches baseline description information.

approvalRules 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.

operationSystem string

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

patchBaselineName string

The name of the patch baseline.

description string

Patches baseline description information.

approval_rules str

Accept the rules. This value follows the json format. For more details, see the description of ApprovalRules in the Request parameters table for details.

operation_system str

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

patch_baseline_name str

The name of the patch baseline.

description str

Patches baseline description information.

approvalRules 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.

operationSystem String

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

patchBaselineName String

The name of the patch baseline.

description String

Patches baseline description information.

Outputs

All input properties are implicitly available as output properties. Additionally, the PatchBaseline resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing PatchBaseline Resource

Get an existing PatchBaseline resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: PatchBaselineState, opts?: CustomResourceOptions): PatchBaseline
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        approval_rules: Optional[str] = None,
        description: Optional[str] = None,
        operation_system: Optional[str] = None,
        patch_baseline_name: Optional[str] = None) -> PatchBaseline
func GetPatchBaseline(ctx *Context, name string, id IDInput, state *PatchBaselineState, opts ...ResourceOption) (*PatchBaseline, error)
public static PatchBaseline Get(string name, Input<string> id, PatchBaselineState? state, CustomResourceOptions? opts = null)
public static PatchBaseline get(String name, Output<String> id, PatchBaselineState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
ApprovalRules 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.

Description string

Patches baseline description information.

OperationSystem string

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

PatchBaselineName string

The name of the patch baseline.

ApprovalRules 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.

Description string

Patches baseline description information.

OperationSystem string

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

PatchBaselineName string

The name of the patch baseline.

approvalRules 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.

description String

Patches baseline description information.

operationSystem String

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

patchBaselineName String

The name of the patch baseline.

approvalRules 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.

description string

Patches baseline description information.

operationSystem string

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

patchBaselineName string

The name of the patch baseline.

approval_rules str

Accept the rules. This value follows the json format. For more details, see the description of ApprovalRules in the Request parameters table for details.

description str

Patches baseline description information.

operation_system str

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

patch_baseline_name str

The name of the patch baseline.

approvalRules 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.

description String

Patches baseline description information.

operationSystem String

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

patchBaselineName String

The name of the patch baseline.

Import

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

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

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.