OSPolicyResourceArgs

data class OSPolicyResourceArgs(val exec: Output<OSPolicyResourceExecResourceArgs>? = null, val file: Output<OSPolicyResourceFileResourceArgs>? = null, val id: Output<String>, val pkg: Output<OSPolicyResourcePackageResourceArgs>? = null, val repository: Output<OSPolicyResourceRepositoryResourceArgs>? = null) : ConvertibleToJava<OSPolicyResourceArgs>

An OS policy resource is used to define the desired state configuration and provides a specific functionality like installing/removing packages, executing a script etc. The system ensures that resources are always in their desired state by taking necessary actions if they have drifted from their desired state.

Constructors

Link copied to clipboard
fun OSPolicyResourceArgs(exec: Output<OSPolicyResourceExecResourceArgs>? = null, file: Output<OSPolicyResourceFileResourceArgs>? = null, id: Output<String>, pkg: Output<OSPolicyResourcePackageResourceArgs>? = null, repository: Output<OSPolicyResourceRepositoryResourceArgs>? = null)

Functions

Link copied to clipboard
open override fun toJava(): OSPolicyResourceArgs

Properties

Link copied to clipboard

Exec resource

Link copied to clipboard

File resource

Link copied to clipboard
val id: Output<String>

The id of the resource with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the OS policy.

Link copied to clipboard

Package resource

Link copied to clipboard

Package repository resource