Class CloudRunV2ServiceTemplateContainersResources.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- com.hashicorp.cdktf.providers.google.cloud_run_v2_service.CloudRunV2ServiceTemplateContainersResources.Jsii$Proxy
-
- All Implemented Interfaces:
CloudRunV2ServiceTemplateContainersResources,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- CloudRunV2ServiceTemplateContainersResources
@Stability(Stable) @Internal public static final class CloudRunV2ServiceTemplateContainersResources.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CloudRunV2ServiceTemplateContainersResources
An implementation forCloudRunV2ServiceTemplateContainersResources
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface com.hashicorp.cdktf.providers.google.cloud_run_v2_service.CloudRunV2ServiceTemplateContainersResources
CloudRunV2ServiceTemplateContainersResources.Builder, CloudRunV2ServiceTemplateContainersResources.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(CloudRunV2ServiceTemplateContainersResources.Builder builder)Constructor that initializes the object based on literal property values passed by theCloudRunV2ServiceTemplateContainersResources.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode$jsii$toJson()booleanequals(Object o)ObjectgetCpuIdle()Determines whether CPU is only allocated during requests.Map<String,String>getLimits()Only memory and CPU are supported.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.inthashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(CloudRunV2ServiceTemplateContainersResources.Builder builder)
Constructor that initializes the object based on literal property values passed by theCloudRunV2ServiceTemplateContainersResources.Builder.
-
-
Method Detail
-
getCpuIdle
public final Object getCpuIdle()
Description copied from interface:CloudRunV2ServiceTemplateContainersResourcesDetermines 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}
- Specified by:
getCpuIdlein interfaceCloudRunV2ServiceTemplateContainersResources
-
getLimits
public final Map<String,String> getLimits()
Description copied from interface:CloudRunV2ServiceTemplateContainersResourcesOnly 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}
- Specified by:
getLimitsin interfaceCloudRunV2ServiceTemplateContainersResources
-
getStartupCpuBoost
public final Object getStartupCpuBoost()
Description copied from interface:CloudRunV2ServiceTemplateContainersResourcesDetermines 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}
- Specified by:
getStartupCpuBoostin interfaceCloudRunV2ServiceTemplateContainersResources
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-