Interface CloudRunV2ServiceTemplateContainersResources
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CloudRunV2ServiceTemplateContainersResources.Jsii$Proxy
@Generated(value="jsii-pacmak/1.102.0 (build e354887)", date="2024-08-31T03:59:18.005Z") @Stability(Stable) public interface CloudRunV2ServiceTemplateContainersResources extends software.amazon.jsii.JsiiSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classCloudRunV2ServiceTemplateContainersResources.BuilderA builder forCloudRunV2ServiceTemplateContainersResourcesstatic classCloudRunV2ServiceTemplateContainersResources.Jsii$ProxyAn implementation forCloudRunV2ServiceTemplateContainersResources
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static CloudRunV2ServiceTemplateContainersResources.Builderbuilder()default ObjectgetCpuIdle()Determines whether CPU is only allocated during requests.default Map<String,String>getLimits()Only memory and CPU are supported.default ObjectgetStartupCpuBoost()Determines whether CPU should be boosted on startup of a new container instance above the requested CPU threshold, this can help reduce cold-start latency.
-
-
-
Method Detail
-
getCpuIdle
@Stability(Stable) @Nullable default Object getCpuIdle()
Determines whether CPU is only allocated during requests.True by default if the parent 'resources' field is not set. However, if 'resources' is set, this field must be explicitly set to true to preserve the default behavior. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#cpu_idle CloudRunV2Service#cpu_idle}
-
getLimits
@Stability(Stable) @Nullable default Map<String,String> getLimits()
Only memory and CPU are supported.Use key 'cpu' for CPU limit and 'memory' for memory limit. Note: The only supported values for CPU are '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#limits CloudRunV2Service#limits}
-
getStartupCpuBoost
@Stability(Stable) @Nullable default Object getStartupCpuBoost()
Determines whether CPU should be boosted on startup of a new container instance above the requested CPU threshold, this can help reduce cold-start latency.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#startup_cpu_boost CloudRunV2Service#startup_cpu_boost}
-
builder
@Stability(Stable) static CloudRunV2ServiceTemplateContainersResources.Builder builder()
-
-