Class DeploymentManagerDeployment.Builder

    • Method Detail

      • connection

        @Stability(Experimental)
        public DeploymentManagerDeployment.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public DeploymentManagerDeployment.Builder connection​(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • count

        @Stability(Experimental)
        public DeploymentManagerDeployment.Builder count​(com.hashicorp.cdktf.TerraformCount count)
        Parameters:
        count - This parameter is required.
        Returns:
        this
      • dependsOn

        @Stability(Experimental)
        public DeploymentManagerDeployment.Builder dependsOn​(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
        Parameters:
        dependsOn - This parameter is required.
        Returns:
        this
      • forEach

        @Stability(Experimental)
        public DeploymentManagerDeployment.Builder forEach​(com.hashicorp.cdktf.ITerraformIterator forEach)
        Parameters:
        forEach - This parameter is required.
        Returns:
        this
      • lifecycle

        @Stability(Experimental)
        public DeploymentManagerDeployment.Builder lifecycle​(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
        Parameters:
        lifecycle - This parameter is required.
        Returns:
        this
      • provider

        @Stability(Experimental)
        public DeploymentManagerDeployment.Builder provider​(com.hashicorp.cdktf.TerraformProvider provider)
        Parameters:
        provider - This parameter is required.
        Returns:
        this
      • name

        @Stability(Stable)
        public DeploymentManagerDeployment.Builder name​(String name)
        Unique name for the deployment.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#name DeploymentManagerDeployment#name}

        Parameters:
        name - Unique name for the deployment. This parameter is required.
        Returns:
        this
      • target

        @Stability(Stable)
        public DeploymentManagerDeployment.Builder target​(DeploymentManagerDeploymentTarget target)
        target block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#target DeploymentManagerDeployment#target}

        Parameters:
        target - target block. This parameter is required.
        Returns:
        this
      • createPolicy

        @Stability(Stable)
        public DeploymentManagerDeployment.Builder createPolicy​(String createPolicy)
        Set the policy to use for creating new resources.

        Only used on create and update. Valid values are 'CREATE_OR_ACQUIRE' (default) or 'ACQUIRE'. If set to 'ACQUIRE' and resources do not already exist, the deployment will fail. Note that updating this field does not actually affect the deployment, just how it is updated. Default value: "CREATE_OR_ACQUIRE" Possible values: ["ACQUIRE", "CREATE_OR_ACQUIRE"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#create_policy DeploymentManagerDeployment#create_policy}

        Parameters:
        createPolicy - Set the policy to use for creating new resources. This parameter is required.
        Returns:
        this
      • deletePolicy

        @Stability(Stable)
        public DeploymentManagerDeployment.Builder deletePolicy​(String deletePolicy)
        Set the policy to use for deleting new resources on update/delete.

        Valid values are 'DELETE' (default) or 'ABANDON'. If 'DELETE', resource is deleted after removal from Deployment Manager. If 'ABANDON', the resource is only removed from Deployment Manager and is not actually deleted. Note that updating this field does not actually change the deployment, just how it is updated. Default value: "DELETE" Possible values: ["ABANDON", "DELETE"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#delete_policy DeploymentManagerDeployment#delete_policy}

        Parameters:
        deletePolicy - Set the policy to use for deleting new resources on update/delete. This parameter is required.
        Returns:
        this
      • description

        @Stability(Stable)
        public DeploymentManagerDeployment.Builder description​(String description)
        Optional user-provided description of deployment.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#description DeploymentManagerDeployment#description}

        Parameters:
        description - Optional user-provided description of deployment. This parameter is required.
        Returns:
        this
      • id

        @Stability(Stable)
        public DeploymentManagerDeployment.Builder id​(String id)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#id DeploymentManagerDeployment#id}.

        Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.

        Parameters:
        id - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#id DeploymentManagerDeployment#id}. This parameter is required.
        Returns:
        this
      • labels

        @Stability(Stable)
        public DeploymentManagerDeployment.Builder labels​(com.hashicorp.cdktf.IResolvable labels)
        labels block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#labels DeploymentManagerDeployment#labels}

        Parameters:
        labels - labels block. This parameter is required.
        Returns:
        this
      • labels

        @Stability(Stable)
        public DeploymentManagerDeployment.Builder labels​(List<? extends DeploymentManagerDeploymentLabels> labels)
        labels block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#labels DeploymentManagerDeployment#labels}

        Parameters:
        labels - labels block. This parameter is required.
        Returns:
        this
      • preview

        @Stability(Stable)
        public DeploymentManagerDeployment.Builder preview​(Boolean preview)
        If set to true, a deployment is created with "shell" resources that are not actually instantiated.

        This allows you to preview a deployment. It can be updated to false to actually deploy with real resources. ~>**NOTE:** Deployment Manager does not allow update of a deployment in preview (unless updating to preview=false). Thus, Terraform will force-recreate deployments if either preview is updated to true or if other fields are updated while preview is true. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#preview DeploymentManagerDeployment#preview}

        Parameters:
        preview - If set to true, a deployment is created with "shell" resources that are not actually instantiated. This parameter is required.
        Returns:
        this
      • preview

        @Stability(Stable)
        public DeploymentManagerDeployment.Builder preview​(com.hashicorp.cdktf.IResolvable preview)
        If set to true, a deployment is created with "shell" resources that are not actually instantiated.

        This allows you to preview a deployment. It can be updated to false to actually deploy with real resources. ~>**NOTE:** Deployment Manager does not allow update of a deployment in preview (unless updating to preview=false). Thus, Terraform will force-recreate deployments if either preview is updated to true or if other fields are updated while preview is true. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#preview DeploymentManagerDeployment#preview}

        Parameters:
        preview - If set to true, a deployment is created with "shell" resources that are not actually instantiated. This parameter is required.
        Returns:
        this
      • project

        @Stability(Stable)
        public DeploymentManagerDeployment.Builder project​(String project)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#project DeploymentManagerDeployment#project}.

        Parameters:
        project - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#project DeploymentManagerDeployment#project}. This parameter is required.
        Returns:
        this
      • timeouts

        @Stability(Stable)
        public DeploymentManagerDeployment.Builder timeouts​(DeploymentManagerDeploymentTimeouts timeouts)
        timeouts block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#timeouts DeploymentManagerDeployment#timeouts}

        Parameters:
        timeouts - timeouts block. This parameter is required.
        Returns:
        this