Package com.pulumi.gcp.osconfig.inputs
Class OsPolicyAssignmentOsPolicyArgs.Builder
- java.lang.Object
-
- com.pulumi.gcp.osconfig.inputs.OsPolicyAssignmentOsPolicyArgs.Builder
-
- Enclosing class:
- OsPolicyAssignmentOsPolicyArgs
public static final class OsPolicyAssignmentOsPolicyArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(OsPolicyAssignmentOsPolicyArgs defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(OsPolicyAssignmentOsPolicyArgs defaults)
-
-
Method Detail
-
allowNoResourceGroupMatch
public OsPolicyAssignmentOsPolicyArgs.Builder allowNoResourceGroupMatch(@Nullable com.pulumi.core.Output<java.lang.Boolean> allowNoResourceGroupMatch)
- Parameters:
allowNoResourceGroupMatch
- This flag determines the OS policy compliance status when none of the resource groups within the policy are applicable for a VM. Set this value to `true` if the policy needs to be reported as compliant even if the policy has nothing to validate or enforce.- Returns:
- builder
-
allowNoResourceGroupMatch
public OsPolicyAssignmentOsPolicyArgs.Builder allowNoResourceGroupMatch(java.lang.Boolean allowNoResourceGroupMatch)
- Parameters:
allowNoResourceGroupMatch
- This flag determines the OS policy compliance status when none of the resource groups within the policy are applicable for a VM. Set this value to `true` if the policy needs to be reported as compliant even if the policy has nothing to validate or enforce.- Returns:
- builder
-
description
public OsPolicyAssignmentOsPolicyArgs.Builder description(@Nullable com.pulumi.core.Output<java.lang.String> description)
- Parameters:
description
- Policy description. Length of the description is limited to 1024 characters.- Returns:
- builder
-
description
public OsPolicyAssignmentOsPolicyArgs.Builder description(java.lang.String description)
- Parameters:
description
- Policy description. Length of the description is limited to 1024 characters.- Returns:
- builder
-
id
public OsPolicyAssignmentOsPolicyArgs.Builder id(com.pulumi.core.Output<java.lang.String> id)
- Parameters:
id
- The id of the OS policy 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 assignment.- Returns:
- builder
-
id
public OsPolicyAssignmentOsPolicyArgs.Builder id(java.lang.String id)
- Parameters:
id
- The id of the OS policy 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 assignment.- Returns:
- builder
-
mode
public OsPolicyAssignmentOsPolicyArgs.Builder mode(com.pulumi.core.Output<java.lang.String> mode)
- Parameters:
mode
- Policy mode Possible values are: `MODE_UNSPECIFIED`, `VALIDATION`, `ENFORCEMENT`.- Returns:
- builder
-
mode
public OsPolicyAssignmentOsPolicyArgs.Builder mode(java.lang.String mode)
- Parameters:
mode
- Policy mode Possible values are: `MODE_UNSPECIFIED`, `VALIDATION`, `ENFORCEMENT`.- Returns:
- builder
-
resourceGroups
public OsPolicyAssignmentOsPolicyArgs.Builder resourceGroups(com.pulumi.core.Output<java.util.List<OsPolicyAssignmentOsPolicyResourceGroupArgs>> resourceGroups)
- Parameters:
resourceGroups
- List of resource groups for the policy. For a particular VM, resource groups are evaluated in the order specified and the first resource group that is applicable is selected and the rest are ignored. If none of the resource groups are applicable for a VM, the VM is considered to be non-compliant w.r.t this policy. This behavior can be toggled by the flag `allow_no_resource_group_match` Structure is documented below.- Returns:
- builder
-
resourceGroups
public OsPolicyAssignmentOsPolicyArgs.Builder resourceGroups(java.util.List<OsPolicyAssignmentOsPolicyResourceGroupArgs> resourceGroups)
- Parameters:
resourceGroups
- List of resource groups for the policy. For a particular VM, resource groups are evaluated in the order specified and the first resource group that is applicable is selected and the rest are ignored. If none of the resource groups are applicable for a VM, the VM is considered to be non-compliant w.r.t this policy. This behavior can be toggled by the flag `allow_no_resource_group_match` Structure is documented below.- Returns:
- builder
-
resourceGroups
public OsPolicyAssignmentOsPolicyArgs.Builder resourceGroups(OsPolicyAssignmentOsPolicyResourceGroupArgs... resourceGroups)
- Parameters:
resourceGroups
- List of resource groups for the policy. For a particular VM, resource groups are evaluated in the order specified and the first resource group that is applicable is selected and the rest are ignored. If none of the resource groups are applicable for a VM, the VM is considered to be non-compliant w.r.t this policy. This behavior can be toggled by the flag `allow_no_resource_group_match` Structure is documented below.- Returns:
- builder
-
build
public OsPolicyAssignmentOsPolicyArgs build()
-
-