Class VertexAiDeploymentResourcePoolDedicatedResources.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.vertex_ai_deployment_resource_pool.VertexAiDeploymentResourcePoolDedicatedResources.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<VertexAiDeploymentResourcePoolDedicatedResources>
- Enclosing interface:
- VertexAiDeploymentResourcePoolDedicatedResources
@Stability(Stable) public static final class VertexAiDeploymentResourcePoolDedicatedResources.Builder extends Object implements software.amazon.jsii.Builder<VertexAiDeploymentResourcePoolDedicatedResources>
A builder forVertexAiDeploymentResourcePoolDedicatedResources
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
machineSpec
@Stability(Stable) public VertexAiDeploymentResourcePoolDedicatedResources.Builder machineSpec(VertexAiDeploymentResourcePoolDedicatedResourcesMachineSpec machineSpec)
Sets the value ofVertexAiDeploymentResourcePoolDedicatedResources.getMachineSpec()- Parameters:
machineSpec- machine_spec block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vertex_ai_deployment_resource_pool#machine_spec VertexAiDeploymentResourcePool#machine_spec}- Returns:
this
-
minReplicaCount
@Stability(Stable) public VertexAiDeploymentResourcePoolDedicatedResources.Builder minReplicaCount(Number minReplicaCount)
Sets the value ofVertexAiDeploymentResourcePoolDedicatedResources.getMinReplicaCount()- Parameters:
minReplicaCount- The minimum number of machine replicas this DeployedModel will be always deployed on. This parameter is required. This value must be greater than or equal to 1. If traffic against the DeployedModel increases, it may dynamically be deployed onto more replicas, and as traffic decreases, some of these extra replicas may be freed. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vertex_ai_deployment_resource_pool#min_replica_count VertexAiDeploymentResourcePool#min_replica_count}- Returns:
this
-
autoscalingMetricSpecs
@Stability(Stable) public VertexAiDeploymentResourcePoolDedicatedResources.Builder autoscalingMetricSpecs(com.hashicorp.cdktf.IResolvable autoscalingMetricSpecs)
- Parameters:
autoscalingMetricSpecs- autoscaling_metric_specs block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vertex_ai_deployment_resource_pool#autoscaling_metric_specs VertexAiDeploymentResourcePool#autoscaling_metric_specs}- Returns:
this
-
autoscalingMetricSpecs
@Stability(Stable) public VertexAiDeploymentResourcePoolDedicatedResources.Builder autoscalingMetricSpecs(List<? extends VertexAiDeploymentResourcePoolDedicatedResourcesAutoscalingMetricSpecs> autoscalingMetricSpecs)
- Parameters:
autoscalingMetricSpecs- autoscaling_metric_specs block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vertex_ai_deployment_resource_pool#autoscaling_metric_specs VertexAiDeploymentResourcePool#autoscaling_metric_specs}- Returns:
this
-
maxReplicaCount
@Stability(Stable) public VertexAiDeploymentResourcePoolDedicatedResources.Builder maxReplicaCount(Number maxReplicaCount)
Sets the value ofVertexAiDeploymentResourcePoolDedicatedResources.getMaxReplicaCount()- Parameters:
maxReplicaCount- The maximum number of replicas this DeployedModel may be deployed on when the traffic against it increases. If the requested value is too large, the deployment will error, but if deployment succeeds then the ability to scale the model to that many replicas is guaranteed (barring service outages). If traffic against the DeployedModel increases beyond what its replicas at maximum may handle, a portion of the traffic will be dropped. If this value is not provided, will use min_replica_count as the default value. The value of this field impacts the charge against Vertex CPU and GPU quotas. Specifically, you will be charged for max_replica_count * number of cores in the selected machine type) and (max_replica_count * number of GPUs per replica in the selected machine type). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vertex_ai_deployment_resource_pool#max_replica_count VertexAiDeploymentResourcePool#max_replica_count}- Returns:
this
-
build
@Stability(Stable) public VertexAiDeploymentResourcePoolDedicatedResources build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VertexAiDeploymentResourcePoolDedicatedResources>- Returns:
- a new instance of
VertexAiDeploymentResourcePoolDedicatedResources - Throws:
NullPointerException- if any required attribute was not provided
-
-