Class OsConfigOsPolicyAssignmentOsPoliciesResourceGroupsResourcesExecEnforce.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.os_config_os_policy_assignment.OsConfigOsPolicyAssignmentOsPoliciesResourceGroupsResourcesExecEnforce.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<OsConfigOsPolicyAssignmentOsPoliciesResourceGroupsResourcesExecEnforce>
- Enclosing interface:
- OsConfigOsPolicyAssignmentOsPoliciesResourceGroupsResourcesExecEnforce
@Stability(Stable) public static final class OsConfigOsPolicyAssignmentOsPoliciesResourceGroupsResourcesExecEnforce.Builder extends Object implements software.amazon.jsii.Builder<OsConfigOsPolicyAssignmentOsPoliciesResourceGroupsResourcesExecEnforce>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
interpreter
@Stability(Stable) public OsConfigOsPolicyAssignmentOsPoliciesResourceGroupsResourcesExecEnforce.Builder interpreter(String interpreter)
Sets the value ofOsConfigOsPolicyAssignmentOsPoliciesResourceGroupsResourcesExecEnforce.getInterpreter()- Parameters:
interpreter- The script interpreter to use. Possible values: ["INTERPRETER_UNSPECIFIED", "NONE", "SHELL", "POWERSHELL"]. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/os_config_os_policy_assignment#interpreter OsConfigOsPolicyAssignment#interpreter}- Returns:
this
-
args
@Stability(Stable) public OsConfigOsPolicyAssignmentOsPoliciesResourceGroupsResourcesExecEnforce.Builder args(List<String> args)
- Parameters:
args- Optional arguments to pass to the source during execution. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/os_config_os_policy_assignment#args OsConfigOsPolicyAssignment#args}- Returns:
this
-
file
@Stability(Stable) public OsConfigOsPolicyAssignmentOsPoliciesResourceGroupsResourcesExecEnforce.Builder file(OsConfigOsPolicyAssignmentOsPoliciesResourceGroupsResourcesExecEnforceFile file)
- Parameters:
file- file block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/os_config_os_policy_assignment#file OsConfigOsPolicyAssignment#file}- Returns:
this
-
outputFilePath
@Stability(Stable) public OsConfigOsPolicyAssignmentOsPoliciesResourceGroupsResourcesExecEnforce.Builder outputFilePath(String outputFilePath)
Sets the value ofOsConfigOsPolicyAssignmentOsPoliciesResourceGroupsResourcesExecEnforce.getOutputFilePath()- Parameters:
outputFilePath- Only recorded for enforce Exec. Path to an output file (that is created by this Exec) whose content will be recorded in OSPolicyResourceCompliance after a successful run. Absence or failure to read this file will result in this ExecResource being non-compliant. Output file size is limited to 100K bytes. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/os_config_os_policy_assignment#output_file_path OsConfigOsPolicyAssignment#output_file_path}- Returns:
this
-
script
@Stability(Stable) public OsConfigOsPolicyAssignmentOsPoliciesResourceGroupsResourcesExecEnforce.Builder script(String script)
Sets the value ofOsConfigOsPolicyAssignmentOsPoliciesResourceGroupsResourcesExecEnforce.getScript()- Parameters:
script- An inline script. The size of the script is limited to 1024 characters. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/os_config_os_policy_assignment#script OsConfigOsPolicyAssignment#script}- Returns:
this
-
build
@Stability(Stable) public OsConfigOsPolicyAssignmentOsPoliciesResourceGroupsResourcesExecEnforce build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<OsConfigOsPolicyAssignmentOsPoliciesResourceGroupsResourcesExecEnforce>- Returns:
- a new instance of
OsConfigOsPolicyAssignmentOsPoliciesResourceGroupsResourcesExecEnforce - Throws:
NullPointerException- if any required attribute was not provided
-
-