Package com.pulumi.gcp.osconfig
Class GuestPoliciesArgs.Builder
- java.lang.Object
-
- com.pulumi.gcp.osconfig.GuestPoliciesArgs.Builder
-
- Enclosing class:
- GuestPoliciesArgs
public static final class GuestPoliciesArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(GuestPoliciesArgs defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(GuestPoliciesArgs defaults)
-
-
Method Detail
-
assignment
public GuestPoliciesArgs.Builder assignment(com.pulumi.core.Output<GuestPoliciesAssignmentArgs> assignment)
- Parameters:
assignment
- 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 [handles assignment conflicts](https://cloud.google.com/compute/docs/os-config-management/create-guest-policy#handle-conflicts). Structure is documented below.- Returns:
- builder
-
assignment
public GuestPoliciesArgs.Builder assignment(GuestPoliciesAssignmentArgs assignment)
- Parameters:
assignment
- 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 [handles assignment conflicts](https://cloud.google.com/compute/docs/os-config-management/create-guest-policy#handle-conflicts). Structure is documented below.- Returns:
- builder
-
description
public GuestPoliciesArgs.Builder description(@Nullable com.pulumi.core.Output<java.lang.String> description)
- Parameters:
description
- Description of the guest policy. Length of the description is limited to 1024 characters.- Returns:
- builder
-
description
public GuestPoliciesArgs.Builder description(java.lang.String description)
- Parameters:
description
- Description of the guest policy. Length of the description is limited to 1024 characters.- Returns:
- builder
-
etag
public GuestPoliciesArgs.Builder etag(@Nullable com.pulumi.core.Output<java.lang.String> etag)
- Parameters:
etag
- The etag for this guest policy. If this is provided on update, it must match the server's etag.- Returns:
- builder
-
etag
public GuestPoliciesArgs.Builder etag(java.lang.String etag)
- Parameters:
etag
- The etag for this guest policy. If this is provided on update, it must match the server's etag.- Returns:
- builder
-
guestPolicyId
public GuestPoliciesArgs.Builder guestPolicyId(com.pulumi.core.Output<java.lang.String> guestPolicyId)
- Parameters:
guestPolicyId
- 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.- Returns:
- builder
-
guestPolicyId
public GuestPoliciesArgs.Builder guestPolicyId(java.lang.String guestPolicyId)
- Parameters:
guestPolicyId
- 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.- Returns:
- builder
-
packageRepositories
public GuestPoliciesArgs.Builder packageRepositories(@Nullable com.pulumi.core.Output<java.util.List<GuestPoliciesPackageRepositoryArgs>> packageRepositories)
- Parameters:
packageRepositories
- 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. Structure is documented below.- Returns:
- builder
-
packageRepositories
public GuestPoliciesArgs.Builder packageRepositories(java.util.List<GuestPoliciesPackageRepositoryArgs> packageRepositories)
- Parameters:
packageRepositories
- 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. Structure is documented below.- Returns:
- builder
-
packageRepositories
public GuestPoliciesArgs.Builder packageRepositories(GuestPoliciesPackageRepositoryArgs... packageRepositories)
- Parameters:
packageRepositories
- 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. Structure is documented below.- Returns:
- builder
-
packages
public GuestPoliciesArgs.Builder packages(@Nullable com.pulumi.core.Output<java.util.List<GuestPoliciesPackageArgs>> packages)
- Parameters:
packages
- The software packages to be managed by this policy. Structure is documented below.- Returns:
- builder
-
packages
public GuestPoliciesArgs.Builder packages(java.util.List<GuestPoliciesPackageArgs> packages)
- Parameters:
packages
- The software packages to be managed by this policy. Structure is documented below.- Returns:
- builder
-
packages
public GuestPoliciesArgs.Builder packages(GuestPoliciesPackageArgs... packages)
- Parameters:
packages
- The software packages to be managed by this policy. Structure is documented below.- Returns:
- builder
-
project
public GuestPoliciesArgs.Builder project(@Nullable com.pulumi.core.Output<java.lang.String> project)
- Parameters:
project
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.- Returns:
- builder
-
project
public GuestPoliciesArgs.Builder project(java.lang.String project)
- Parameters:
project
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.- Returns:
- builder
-
recipes
public GuestPoliciesArgs.Builder recipes(@Nullable com.pulumi.core.Output<java.util.List<GuestPoliciesRecipeArgs>> recipes)
- Parameters:
recipes
- A list of Recipes to install on the VM instance. Structure is documented below.- Returns:
- builder
-
recipes
public GuestPoliciesArgs.Builder recipes(java.util.List<GuestPoliciesRecipeArgs> recipes)
- Parameters:
recipes
- A list of Recipes to install on the VM instance. Structure is documented below.- Returns:
- builder
-
recipes
public GuestPoliciesArgs.Builder recipes(GuestPoliciesRecipeArgs... recipes)
- Parameters:
recipes
- A list of Recipes to install on the VM instance. Structure is documented below.- Returns:
- builder
-
build
public GuestPoliciesArgs build()
-
-