GuestPolicyArgs

data class GuestPolicyArgs(val assignment: Output<AssignmentArgs>? = null, val description: Output<String>? = null, val etag: Output<String>? = null, val guestPolicyId: Output<String>? = null, val name: Output<String>? = null, val packageRepositories: Output<List<PackageRepositoryArgs>>? = null, val packages: Output<List<PackageArgs>>? = null, val project: Output<String>? = null, val recipes: Output<List<SoftwareRecipeArgs>>? = null) : ConvertibleToJava<GuestPolicyArgs>

Create an OS Config guest policy.

Constructors

Link copied to clipboard
constructor(assignment: Output<AssignmentArgs>? = null, description: Output<String>? = null, etag: Output<String>? = null, guestPolicyId: Output<String>? = null, name: Output<String>? = null, packageRepositories: Output<List<PackageRepositoryArgs>>? = null, packages: Output<List<PackageArgs>>? = null, project: Output<String>? = null, recipes: Output<List<SoftwareRecipeArgs>>? = null)

Properties

Link copied to clipboard
val assignment: Output<AssignmentArgs>? = null

Specifies the VM instances that are assigned to this policy. This allows you to target sets or groups of VM instances by different parameters such as labels, names, OS, or zones. If left empty, all VM instances underneath this policy are targeted. At the same level in the resource hierarchy (that is within a project), the service prevents the creation of multiple policies that conflict with each other. For more information, see how the service /compute/docs/os-config-management/create-guest-policy#handle-conflicts.

Link copied to clipboard
val description: Output<String>? = null

Description of the guest policy. Length of the description is limited to 1024 characters.

Link copied to clipboard
val etag: Output<String>? = null

The etag for this guest policy. If this is provided on update, it must match the server's etag.

Link copied to clipboard
val guestPolicyId: Output<String>? = null

Required. The logical name of the guest policy in the project 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 project.

Link copied to clipboard
val name: Output<String>? = null

Unique name of the resource in this project using one of the following forms: projects/{project_number}/guestPolicies/{guest_policy_id}.

Link copied to clipboard

A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.

Link copied to clipboard
val packages: Output<List<PackageArgs>>? = null

The software packages to be managed by this policy.

Link copied to clipboard
val project: Output<String>? = null
Link copied to clipboard
val recipes: Output<List<SoftwareRecipeArgs>>? = null

A list of Recipes to install on the VM instance.

Functions

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