All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.vmwareengine.kotlin.PrivateCloudArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.13.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.vmwareengine.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.vmwareengine.PrivateCloudArgs.builder
import com.pulumi.gcp.vmwareengine.kotlin.inputs.PrivateCloudManagementClusterArgs
import com.pulumi.gcp.vmwareengine.kotlin.inputs.PrivateCloudManagementClusterArgsBuilder
import com.pulumi.gcp.vmwareengine.kotlin.inputs.PrivateCloudNetworkConfigArgs
import com.pulumi.gcp.vmwareengine.kotlin.inputs.PrivateCloudNetworkConfigArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Represents a private cloud resource. Private clouds are zonal resources.
 * To get more information about PrivateCloud, see:
 * * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.privateClouds)
 * ## Example Usage
 * ### Vmware Engine Private Cloud Basic
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const pc_nw = new gcp.vmwareengine.Network("pc-nw", {
 *     name: "pc-nw",
 *     location: "global",
 *     type: "STANDARD",
 *     description: "PC network description.",
 * });
 * const vmw_engine_pc = new gcp.vmwareengine.PrivateCloud("vmw-engine-pc", {
 *     location: "us-west1-a",
 *     name: "sample-pc",
 *     description: "Sample test PC.",
 *     networkConfig: {
 *         managementCidr: "192.168.30.0/24",
 *         vmwareEngineNetwork: pc_nw.id,
 *     },
 *     managementCluster: {
 *         clusterId: "sample-mgmt-cluster",
 *         nodeTypeConfigs: [{
 *             nodeTypeId: "standard-72",
 *             nodeCount: 3,
 *         }],
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * pc_nw = gcp.vmwareengine.Network("pc-nw",
 *     name="pc-nw",
 *     location="global",
 *     type="STANDARD",
 *     description="PC network description.")
 * vmw_engine_pc = gcp.vmwareengine.PrivateCloud("vmw-engine-pc",
 *     location="us-west1-a",
 *     name="sample-pc",
 *     description="Sample test PC.",
 *     network_config={
 *         "management_cidr": "192.168.30.0/24",
 *         "vmware_engine_network": pc_nw.id,
 *     },
 *     management_cluster={
 *         "cluster_id": "sample-mgmt-cluster",
 *         "node_type_configs": [{
 *             "node_type_id": "standard-72",
 *             "node_count": 3,
 *         }],
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var pc_nw = new Gcp.VMwareEngine.Network("pc-nw", new()
 *     {
 *         Name = "pc-nw",
 *         Location = "global",
 *         Type = "STANDARD",
 *         Description = "PC network description.",
 *     });
 *     var vmw_engine_pc = new Gcp.VMwareEngine.PrivateCloud("vmw-engine-pc", new()
 *     {
 *         Location = "us-west1-a",
 *         Name = "sample-pc",
 *         Description = "Sample test PC.",
 *         NetworkConfig = new Gcp.VMwareEngine.Inputs.PrivateCloudNetworkConfigArgs
 *         {
 *             ManagementCidr = "192.168.30.0/24",
 *             VmwareEngineNetwork = pc_nw.Id,
 *         },
 *         ManagementCluster = new Gcp.VMwareEngine.Inputs.PrivateCloudManagementClusterArgs
 *         {
 *             ClusterId = "sample-mgmt-cluster",
 *             NodeTypeConfigs = new[]
 *             {
 *                 new Gcp.VMwareEngine.Inputs.PrivateCloudManagementClusterNodeTypeConfigArgs
 *                 {
 *                     NodeTypeId = "standard-72",
 *                     NodeCount = 3,
 *                 },
 *             },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/vmwareengine"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := vmwareengine.NewNetwork(ctx, "pc-nw", &vmwareengine.NetworkArgs{
 * 			Name:        pulumi.String("pc-nw"),
 * 			Location:    pulumi.String("global"),
 * 			Type:        pulumi.String("STANDARD"),
 * 			Description: pulumi.String("PC network description."),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = vmwareengine.NewPrivateCloud(ctx, "vmw-engine-pc", &vmwareengine.PrivateCloudArgs{
 * 			Location:    pulumi.String("us-west1-a"),
 * 			Name:        pulumi.String("sample-pc"),
 * 			Description: pulumi.String("Sample test PC."),
 * 			NetworkConfig: &vmwareengine.PrivateCloudNetworkConfigArgs{
 * 				ManagementCidr:      pulumi.String("192.168.30.0/24"),
 * 				VmwareEngineNetwork: pc_nw.ID(),
 * 			},
 * 			ManagementCluster: &vmwareengine.PrivateCloudManagementClusterArgs{
 * 				ClusterId: pulumi.String("sample-mgmt-cluster"),
 * 				NodeTypeConfigs: vmwareengine.PrivateCloudManagementClusterNodeTypeConfigArray{
 * 					&vmwareengine.PrivateCloudManagementClusterNodeTypeConfigArgs{
 * 						NodeTypeId: pulumi.String("standard-72"),
 * 						NodeCount:  pulumi.Int(3),
 * 					},
 * 				},
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.gcp.vmwareengine.Network;
 * import com.pulumi.gcp.vmwareengine.NetworkArgs;
 * import com.pulumi.gcp.vmwareengine.PrivateCloud;
 * import com.pulumi.gcp.vmwareengine.PrivateCloudArgs;
 * import com.pulumi.gcp.vmwareengine.inputs.PrivateCloudNetworkConfigArgs;
 * import com.pulumi.gcp.vmwareengine.inputs.PrivateCloudManagementClusterArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var pc_nw = new Network("pc-nw", NetworkArgs.builder()
 *             .name("pc-nw")
 *             .location("global")
 *             .type("STANDARD")
 *             .description("PC network description.")
 *             .build());
 *         var vmw_engine_pc = new PrivateCloud("vmw-engine-pc", PrivateCloudArgs.builder()
 *             .location("us-west1-a")
 *             .name("sample-pc")
 *             .description("Sample test PC.")
 *             .networkConfig(PrivateCloudNetworkConfigArgs.builder()
 *                 .managementCidr("192.168.30.0/24")
 *                 .vmwareEngineNetwork(pc_nw.id())
 *                 .build())
 *             .managementCluster(PrivateCloudManagementClusterArgs.builder()
 *                 .clusterId("sample-mgmt-cluster")
 *                 .nodeTypeConfigs(PrivateCloudManagementClusterNodeTypeConfigArgs.builder()
 *                     .nodeTypeId("standard-72")
 *                     .nodeCount(3)
 *                     .build())
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   vmw-engine-pc:
 *     type: gcp:vmwareengine:PrivateCloud
 *     properties:
 *       location: us-west1-a
 *       name: sample-pc
 *       description: Sample test PC.
 *       networkConfig:
 *         managementCidr: 192.168.30.0/24
 *         vmwareEngineNetwork: ${["pc-nw"].id}
 *       managementCluster:
 *         clusterId: sample-mgmt-cluster
 *         nodeTypeConfigs:
 *           - nodeTypeId: standard-72
 *             nodeCount: 3
 *   pc-nw:
 *     type: gcp:vmwareengine:Network
 *     properties:
 *       name: pc-nw
 *       location: global
 *       type: STANDARD
 *       description: PC network description.
 * ```
 * 
 * ### Vmware Engine Private Cloud Full
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const pc_nw = new gcp.vmwareengine.Network("pc-nw", {
 *     name: "pc-nw",
 *     location: "global",
 *     type: "STANDARD",
 *     description: "PC network description.",
 * });
 * const vmw_engine_pc = new gcp.vmwareengine.PrivateCloud("vmw-engine-pc", {
 *     location: "us-west1-a",
 *     name: "sample-pc",
 *     description: "Sample test PC.",
 *     type: "TIME_LIMITED",
 *     networkConfig: {
 *         managementCidr: "192.168.30.0/24",
 *         vmwareEngineNetwork: pc_nw.id,
 *     },
 *     managementCluster: {
 *         clusterId: "sample-mgmt-cluster",
 *         nodeTypeConfigs: [{
 *             nodeTypeId: "standard-72",
 *             nodeCount: 1,
 *             customCoreCount: 32,
 *         }],
 *         autoscalingSettings: {
 *             autoscalingPolicies: [{
 *                 autoscalePolicyId: "autoscaling-policy",
 *                 nodeTypeId: "standard-72",
 *                 scaleOutSize: 1,
 *                 cpuThresholds: {
 *                     scaleOut: 80,
 *                     scaleIn: 15,
 *                 },
 *                 consumedMemoryThresholds: {
 *                     scaleOut: 75,
 *                     scaleIn: 20,
 *                 },
 *                 storageThresholds: {
 *                     scaleOut: 80,
 *                     scaleIn: 20,
 *                 },
 *             }],
 *             minClusterNodeCount: 3,
 *             maxClusterNodeCount: 8,
 *             coolDownPeriod: "1800s",
 *         },
 *     },
 *     deletionDelayHours: 0,
 *     sendDeletionDelayHoursIfZero: true,
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * pc_nw = gcp.vmwareengine.Network("pc-nw",
 *     name="pc-nw",
 *     location="global",
 *     type="STANDARD",
 *     description="PC network description.")
 * vmw_engine_pc = gcp.vmwareengine.PrivateCloud("vmw-engine-pc",
 *     location="us-west1-a",
 *     name="sample-pc",
 *     description="Sample test PC.",
 *     type="TIME_LIMITED",
 *     network_config={
 *         "management_cidr": "192.168.30.0/24",
 *         "vmware_engine_network": pc_nw.id,
 *     },
 *     management_cluster={
 *         "cluster_id": "sample-mgmt-cluster",
 *         "node_type_configs": [{
 *             "node_type_id": "standard-72",
 *             "node_count": 1,
 *             "custom_core_count": 32,
 *         }],
 *         "autoscaling_settings": {
 *             "autoscaling_policies": [{
 *                 "autoscale_policy_id": "autoscaling-policy",
 *                 "node_type_id": "standard-72",
 *                 "scale_out_size": 1,
 *                 "cpu_thresholds": {
 *                     "scale_out": 80,
 *                     "scale_in": 15,
 *                 },
 *                 "consumed_memory_thresholds": {
 *                     "scale_out": 75,
 *                     "scale_in": 20,
 *                 },
 *                 "storage_thresholds": {
 *                     "scale_out": 80,
 *                     "scale_in": 20,
 *                 },
 *             }],
 *             "min_cluster_node_count": 3,
 *             "max_cluster_node_count": 8,
 *             "cool_down_period": "1800s",
 *         },
 *     },
 *     deletion_delay_hours=0,
 *     send_deletion_delay_hours_if_zero=True)
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var pc_nw = new Gcp.VMwareEngine.Network("pc-nw", new()
 *     {
 *         Name = "pc-nw",
 *         Location = "global",
 *         Type = "STANDARD",
 *         Description = "PC network description.",
 *     });
 *     var vmw_engine_pc = new Gcp.VMwareEngine.PrivateCloud("vmw-engine-pc", new()
 *     {
 *         Location = "us-west1-a",
 *         Name = "sample-pc",
 *         Description = "Sample test PC.",
 *         Type = "TIME_LIMITED",
 *         NetworkConfig = new Gcp.VMwareEngine.Inputs.PrivateCloudNetworkConfigArgs
 *         {
 *             ManagementCidr = "192.168.30.0/24",
 *             VmwareEngineNetwork = pc_nw.Id,
 *         },
 *         ManagementCluster = new Gcp.VMwareEngine.Inputs.PrivateCloudManagementClusterArgs
 *         {
 *             ClusterId = "sample-mgmt-cluster",
 *             NodeTypeConfigs = new[]
 *             {
 *                 new Gcp.VMwareEngine.Inputs.PrivateCloudManagementClusterNodeTypeConfigArgs
 *                 {
 *                     NodeTypeId = "standard-72",
 *                     NodeCount = 1,
 *                     CustomCoreCount = 32,
 *                 },
 *             },
 *             AutoscalingSettings = new Gcp.VMwareEngine.Inputs.PrivateCloudManagementClusterAutoscalingSettingsArgs
 *             {
 *                 AutoscalingPolicies = new[]
 *                 {
 *                     new Gcp.VMwareEngine.Inputs.PrivateCloudManagementClusterAutoscalingSettingsAutoscalingPolicyArgs
 *                     {
 *                         AutoscalePolicyId = "autoscaling-policy",
 *                         NodeTypeId = "standard-72",
 *                         ScaleOutSize = 1,
 *                         CpuThresholds = new Gcp.VMwareEngine.Inputs.PrivateCloudManagementClusterAutoscalingSettingsAutoscalingPolicyCpuThresholdsArgs
 *                         {
 *                             ScaleOut = 80,
 *                             ScaleIn = 15,
 *                         },
 *                         ConsumedMemoryThresholds = new Gcp.VMwareEngine.Inputs.PrivateCloudManagementClusterAutoscalingSettingsAutoscalingPolicyConsumedMemoryThresholdsArgs
 *                         {
 *                             ScaleOut = 75,
 *                             ScaleIn = 20,
 *                         },
 *                         StorageThresholds = new Gcp.VMwareEngine.Inputs.PrivateCloudManagementClusterAutoscalingSettingsAutoscalingPolicyStorageThresholdsArgs
 *                         {
 *                             ScaleOut = 80,
 *                             ScaleIn = 20,
 *                         },
 *                     },
 *                 },
 *                 MinClusterNodeCount = 3,
 *                 MaxClusterNodeCount = 8,
 *                 CoolDownPeriod = "1800s",
 *             },
 *         },
 *         DeletionDelayHours = 0,
 *         SendDeletionDelayHoursIfZero = true,
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/vmwareengine"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := vmwareengine.NewNetwork(ctx, "pc-nw", &vmwareengine.NetworkArgs{
 * 			Name:        pulumi.String("pc-nw"),
 * 			Location:    pulumi.String("global"),
 * 			Type:        pulumi.String("STANDARD"),
 * 			Description: pulumi.String("PC network description."),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = vmwareengine.NewPrivateCloud(ctx, "vmw-engine-pc", &vmwareengine.PrivateCloudArgs{
 * 			Location:    pulumi.String("us-west1-a"),
 * 			Name:        pulumi.String("sample-pc"),
 * 			Description: pulumi.String("Sample test PC."),
 * 			Type:        pulumi.String("TIME_LIMITED"),
 * 			NetworkConfig: &vmwareengine.PrivateCloudNetworkConfigArgs{
 * 				ManagementCidr:      pulumi.String("192.168.30.0/24"),
 * 				VmwareEngineNetwork: pc_nw.ID(),
 * 			},
 * 			ManagementCluster: &vmwareengine.PrivateCloudManagementClusterArgs{
 * 				ClusterId: pulumi.String("sample-mgmt-cluster"),
 * 				NodeTypeConfigs: vmwareengine.PrivateCloudManagementClusterNodeTypeConfigArray{
 * 					&vmwareengine.PrivateCloudManagementClusterNodeTypeConfigArgs{
 * 						NodeTypeId:      pulumi.String("standard-72"),
 * 						NodeCount:       pulumi.Int(1),
 * 						CustomCoreCount: pulumi.Int(32),
 * 					},
 * 				},
 * 				AutoscalingSettings: &vmwareengine.PrivateCloudManagementClusterAutoscalingSettingsArgs{
 * 					AutoscalingPolicies: vmwareengine.PrivateCloudManagementClusterAutoscalingSettingsAutoscalingPolicyArray{
 * 						&vmwareengine.PrivateCloudManagementClusterAutoscalingSettingsAutoscalingPolicyArgs{
 * 							AutoscalePolicyId: pulumi.String("autoscaling-policy"),
 * 							NodeTypeId:        pulumi.String("standard-72"),
 * 							ScaleOutSize:      pulumi.Int(1),
 * 							CpuThresholds: &vmwareengine.PrivateCloudManagementClusterAutoscalingSettingsAutoscalingPolicyCpuThresholdsArgs{
 * 								ScaleOut: pulumi.Int(80),
 * 								ScaleIn:  pulumi.Int(15),
 * 							},
 * 							ConsumedMemoryThresholds: &vmwareengine.PrivateCloudManagementClusterAutoscalingSettingsAutoscalingPolicyConsumedMemoryThresholdsArgs{
 * 								ScaleOut: pulumi.Int(75),
 * 								ScaleIn:  pulumi.Int(20),
 * 							},
 * 							StorageThresholds: &vmwareengine.PrivateCloudManagementClusterAutoscalingSettingsAutoscalingPolicyStorageThresholdsArgs{
 * 								ScaleOut: pulumi.Int(80),
 * 								ScaleIn:  pulumi.Int(20),
 * 							},
 * 						},
 * 					},
 * 					MinClusterNodeCount: pulumi.Int(3),
 * 					MaxClusterNodeCount: pulumi.Int(8),
 * 					CoolDownPeriod:      pulumi.String("1800s"),
 * 				},
 * 			},
 * 			DeletionDelayHours:           pulumi.Int(0),
 * 			SendDeletionDelayHoursIfZero: pulumi.Bool(true),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.gcp.vmwareengine.Network;
 * import com.pulumi.gcp.vmwareengine.NetworkArgs;
 * import com.pulumi.gcp.vmwareengine.PrivateCloud;
 * import com.pulumi.gcp.vmwareengine.PrivateCloudArgs;
 * import com.pulumi.gcp.vmwareengine.inputs.PrivateCloudNetworkConfigArgs;
 * import com.pulumi.gcp.vmwareengine.inputs.PrivateCloudManagementClusterArgs;
 * import com.pulumi.gcp.vmwareengine.inputs.PrivateCloudManagementClusterAutoscalingSettingsArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var pc_nw = new Network("pc-nw", NetworkArgs.builder()
 *             .name("pc-nw")
 *             .location("global")
 *             .type("STANDARD")
 *             .description("PC network description.")
 *             .build());
 *         var vmw_engine_pc = new PrivateCloud("vmw-engine-pc", PrivateCloudArgs.builder()
 *             .location("us-west1-a")
 *             .name("sample-pc")
 *             .description("Sample test PC.")
 *             .type("TIME_LIMITED")
 *             .networkConfig(PrivateCloudNetworkConfigArgs.builder()
 *                 .managementCidr("192.168.30.0/24")
 *                 .vmwareEngineNetwork(pc_nw.id())
 *                 .build())
 *             .managementCluster(PrivateCloudManagementClusterArgs.builder()
 *                 .clusterId("sample-mgmt-cluster")
 *                 .nodeTypeConfigs(PrivateCloudManagementClusterNodeTypeConfigArgs.builder()
 *                     .nodeTypeId("standard-72")
 *                     .nodeCount(1)
 *                     .customCoreCount(32)
 *                     .build())
 *                 .autoscalingSettings(PrivateCloudManagementClusterAutoscalingSettingsArgs.builder()
 *                     .autoscalingPolicies(PrivateCloudManagementClusterAutoscalingSettingsAutoscalingPolicyArgs.builder()
 *                         .autoscalePolicyId("autoscaling-policy")
 *                         .nodeTypeId("standard-72")
 *                         .scaleOutSize(1)
 *                         .cpuThresholds(PrivateCloudManagementClusterAutoscalingSettingsAutoscalingPolicyCpuThresholdsArgs.builder()
 *                             .scaleOut(80)
 *                             .scaleIn(15)
 *                             .build())
 *                         .consumedMemoryThresholds(PrivateCloudManagementClusterAutoscalingSettingsAutoscalingPolicyConsumedMemoryThresholdsArgs.builder()
 *                             .scaleOut(75)
 *                             .scaleIn(20)
 *                             .build())
 *                         .storageThresholds(PrivateCloudManagementClusterAutoscalingSettingsAutoscalingPolicyStorageThresholdsArgs.builder()
 *                             .scaleOut(80)
 *                             .scaleIn(20)
 *                             .build())
 *                         .build())
 *                     .minClusterNodeCount(3)
 *                     .maxClusterNodeCount(8)
 *                     .coolDownPeriod("1800s")
 *                     .build())
 *                 .build())
 *             .deletionDelayHours(0)
 *             .sendDeletionDelayHoursIfZero(true)
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   vmw-engine-pc:
 *     type: gcp:vmwareengine:PrivateCloud
 *     properties:
 *       location: us-west1-a
 *       name: sample-pc
 *       description: Sample test PC.
 *       type: TIME_LIMITED
 *       networkConfig:
 *         managementCidr: 192.168.30.0/24
 *         vmwareEngineNetwork: ${["pc-nw"].id}
 *       managementCluster:
 *         clusterId: sample-mgmt-cluster
 *         nodeTypeConfigs:
 *           - nodeTypeId: standard-72
 *             nodeCount: 1
 *             customCoreCount: 32
 *         autoscalingSettings:
 *           autoscalingPolicies:
 *             - autoscalePolicyId: autoscaling-policy
 *               nodeTypeId: standard-72
 *               scaleOutSize: 1
 *               cpuThresholds:
 *                 scaleOut: 80
 *                 scaleIn: 15
 *               consumedMemoryThresholds:
 *                 scaleOut: 75
 *                 scaleIn: 20
 *               storageThresholds:
 *                 scaleOut: 80
 *                 scaleIn: 20
 *           minClusterNodeCount: 3
 *           maxClusterNodeCount: 8
 *           coolDownPeriod: 1800s
 *       deletionDelayHours: 0
 *       sendDeletionDelayHoursIfZero: true
 *   pc-nw:
 *     type: gcp:vmwareengine:Network
 *     properties:
 *       name: pc-nw
 *       location: global
 *       type: STANDARD
 *       description: PC network description.
 * ```
 * 
 * ## Import
 * PrivateCloud can be imported using any of these accepted formats:
 * * `projects/{{project}}/locations/{{location}}/privateClouds/{{name}}`
 * * `{{project}}/{{location}}/{{name}}`
 * * `{{location}}/{{name}}`
 * When using the `pulumi import` command, PrivateCloud can be imported using one of the formats above. For example:
 * ```sh
 * $ pulumi import gcp:vmwareengine/privateCloud:PrivateCloud default projects/{{project}}/locations/{{location}}/privateClouds/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:vmwareengine/privateCloud:PrivateCloud default {{project}}/{{location}}/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:vmwareengine/privateCloud:PrivateCloud default {{location}}/{{name}}
 * ```
 * @property deletionDelayHours The number of hours to delay this request. You can set this value to an hour between 0 to 8, where setting it to 0
 * starts the deletion request immediately. If no value is set, a default value is set at the API Level.
 * @property description User-provided description for this private cloud.
 * @property location The location where the PrivateCloud should reside.
 * @property managementCluster The management cluster for this private cloud. This used for creating and managing the default cluster.
 * Structure is documented below.
 * @property name The ID of the PrivateCloud.
 * @property networkConfig Network configuration in the consumer project with which the peering has to be done.
 * Structure is documented below.
 * @property project
 * @property sendDeletionDelayHoursIfZero While set true, deletion_delay_hours value will be sent in the request even for zero value of the field. This field is
 * only useful for setting 0 value to the deletion_delay_hours field. It can be used both alone and together with
 * deletion_delay_hours.
 * @property type Initial type of the private cloud. Possible values: ["STANDARD", "TIME_LIMITED", "STRETCHED"]
 */
public data class PrivateCloudArgs(
    public val deletionDelayHours: Output? = null,
    public val description: Output? = null,
    public val location: Output? = null,
    public val managementCluster: Output? = null,
    public val name: Output? = null,
    public val networkConfig: Output? = null,
    public val project: Output? = null,
    public val sendDeletionDelayHoursIfZero: Output? = null,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.vmwareengine.PrivateCloudArgs =
        com.pulumi.gcp.vmwareengine.PrivateCloudArgs.builder()
            .deletionDelayHours(deletionDelayHours?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .managementCluster(managementCluster?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .networkConfig(networkConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .project(project?.applyValue({ args0 -> args0 }))
            .sendDeletionDelayHoursIfZero(sendDeletionDelayHoursIfZero?.applyValue({ args0 -> args0 }))
            .type(type?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PrivateCloudArgs].
 */
@PulumiTagMarker
public class PrivateCloudArgsBuilder internal constructor() {
    private var deletionDelayHours: Output? = null

    private var description: Output? = null

    private var location: Output? = null

    private var managementCluster: Output? = null

    private var name: Output? = null

    private var networkConfig: Output? = null

    private var project: Output? = null

    private var sendDeletionDelayHoursIfZero: Output? = null

    private var type: Output? = null

    /**
     * @param value The number of hours to delay this request. You can set this value to an hour between 0 to 8, where setting it to 0
     * starts the deletion request immediately. If no value is set, a default value is set at the API Level.
     */
    @JvmName("qoxdeyyeowxcenvy")
    public suspend fun deletionDelayHours(`value`: Output) {
        this.deletionDelayHours = value
    }

    /**
     * @param value User-provided description for this private cloud.
     */
    @JvmName("vylohlhtkfckrlqa")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The location where the PrivateCloud should reside.
     */
    @JvmName("uehlbhrbysvupfel")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The management cluster for this private cloud. This used for creating and managing the default cluster.
     * Structure is documented below.
     */
    @JvmName("tslgebkhslwgqkai")
    public suspend fun managementCluster(`value`: Output) {
        this.managementCluster = value
    }

    /**
     * @param value The ID of the PrivateCloud.
     */
    @JvmName("kmptawrftoiwymnl")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Network configuration in the consumer project with which the peering has to be done.
     * Structure is documented below.
     */
    @JvmName("lmphsxoqgxvihwwj")
    public suspend fun networkConfig(`value`: Output) {
        this.networkConfig = value
    }

    /**
     * @param value
     */
    @JvmName("sjmatnnsthlunpko")
    public suspend fun project(`value`: Output) {
        this.project = value
    }

    /**
     * @param value While set true, deletion_delay_hours value will be sent in the request even for zero value of the field. This field is
     * only useful for setting 0 value to the deletion_delay_hours field. It can be used both alone and together with
     * deletion_delay_hours.
     */
    @JvmName("guukdtmnchqpttpb")
    public suspend fun sendDeletionDelayHoursIfZero(`value`: Output) {
        this.sendDeletionDelayHoursIfZero = value
    }

    /**
     * @param value Initial type of the private cloud. Possible values: ["STANDARD", "TIME_LIMITED", "STRETCHED"]
     */
    @JvmName("wiuetrsnxvjobjys")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The number of hours to delay this request. You can set this value to an hour between 0 to 8, where setting it to 0
     * starts the deletion request immediately. If no value is set, a default value is set at the API Level.
     */
    @JvmName("joqotpvxfidcefkg")
    public suspend fun deletionDelayHours(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deletionDelayHours = mapped
    }

    /**
     * @param value User-provided description for this private cloud.
     */
    @JvmName("phedxwsrgmwuolxq")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The location where the PrivateCloud should reside.
     */
    @JvmName("ulhfcyyymywdnsxa")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value The management cluster for this private cloud. This used for creating and managing the default cluster.
     * Structure is documented below.
     */
    @JvmName("bukbkicygthxsoav")
    public suspend fun managementCluster(`value`: PrivateCloudManagementClusterArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.managementCluster = mapped
    }

    /**
     * @param argument The management cluster for this private cloud. This used for creating and managing the default cluster.
     * Structure is documented below.
     */
    @JvmName("mqtxaxupxybmamsc")
    public suspend fun managementCluster(argument: suspend PrivateCloudManagementClusterArgsBuilder.() -> Unit) {
        val toBeMapped = PrivateCloudManagementClusterArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.managementCluster = mapped
    }

    /**
     * @param value The ID of the PrivateCloud.
     */
    @JvmName("pfrqtctafmnqfmye")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Network configuration in the consumer project with which the peering has to be done.
     * Structure is documented below.
     */
    @JvmName("fymlwmbfdnqdsoqm")
    public suspend fun networkConfig(`value`: PrivateCloudNetworkConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.networkConfig = mapped
    }

    /**
     * @param argument Network configuration in the consumer project with which the peering has to be done.
     * Structure is documented below.
     */
    @JvmName("foyffrhdsniepkby")
    public suspend fun networkConfig(argument: suspend PrivateCloudNetworkConfigArgsBuilder.() -> Unit) {
        val toBeMapped = PrivateCloudNetworkConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.networkConfig = mapped
    }

    /**
     * @param value
     */
    @JvmName("ufjciuveuwudvlra")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.project = mapped
    }

    /**
     * @param value While set true, deletion_delay_hours value will be sent in the request even for zero value of the field. This field is
     * only useful for setting 0 value to the deletion_delay_hours field. It can be used both alone and together with
     * deletion_delay_hours.
     */
    @JvmName("jcrcntetqamhpiyg")
    public suspend fun sendDeletionDelayHoursIfZero(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sendDeletionDelayHoursIfZero = mapped
    }

    /**
     * @param value Initial type of the private cloud. Possible values: ["STANDARD", "TIME_LIMITED", "STRETCHED"]
     */
    @JvmName("shnvdmykprkejbrk")
    public suspend fun type(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): PrivateCloudArgs = PrivateCloudArgs(
        deletionDelayHours = deletionDelayHours,
        description = description,
        location = location,
        managementCluster = managementCluster,
        name = name,
        networkConfig = networkConfig,
        project = project,
        sendDeletionDelayHoursIfZero = sendDeletionDelayHoursIfZero,
        type = type,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy