Class Cloudfunctions2FunctionServiceConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloudfunctions2_function.Cloudfunctions2FunctionServiceConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<Cloudfunctions2FunctionServiceConfig>
- Enclosing interface:
- Cloudfunctions2FunctionServiceConfig
@Stability(Stable) public static final class Cloudfunctions2FunctionServiceConfig.Builder extends Object implements software.amazon.jsii.Builder<Cloudfunctions2FunctionServiceConfig>
A builder forCloudfunctions2FunctionServiceConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
allTrafficOnLatestRevision
@Stability(Stable) public Cloudfunctions2FunctionServiceConfig.Builder allTrafficOnLatestRevision(Boolean allTrafficOnLatestRevision)
Sets the value ofCloudfunctions2FunctionServiceConfig.getAllTrafficOnLatestRevision()- Parameters:
allTrafficOnLatestRevision- Whether 100% of traffic is routed to the latest revision. Defaults to true. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#all_traffic_on_latest_revision Cloudfunctions2Function#all_traffic_on_latest_revision}- Returns:
this
-
allTrafficOnLatestRevision
@Stability(Stable) public Cloudfunctions2FunctionServiceConfig.Builder allTrafficOnLatestRevision(com.hashicorp.cdktf.IResolvable allTrafficOnLatestRevision)
Sets the value ofCloudfunctions2FunctionServiceConfig.getAllTrafficOnLatestRevision()- Parameters:
allTrafficOnLatestRevision- Whether 100% of traffic is routed to the latest revision. Defaults to true. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#all_traffic_on_latest_revision Cloudfunctions2Function#all_traffic_on_latest_revision}- Returns:
this
-
availableCpu
@Stability(Stable) public Cloudfunctions2FunctionServiceConfig.Builder availableCpu(String availableCpu)
Sets the value ofCloudfunctions2FunctionServiceConfig.getAvailableCpu()- Parameters:
availableCpu- The number of CPUs used in a single container instance. Default value is calculated from available memory. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#available_cpu Cloudfunctions2Function#available_cpu}- Returns:
this
-
availableMemory
@Stability(Stable) public Cloudfunctions2FunctionServiceConfig.Builder availableMemory(String availableMemory)
Sets the value ofCloudfunctions2FunctionServiceConfig.getAvailableMemory()- Parameters:
availableMemory- The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#available_memory Cloudfunctions2Function#available_memory}- Returns:
this
-
environmentVariables
@Stability(Stable) public Cloudfunctions2FunctionServiceConfig.Builder environmentVariables(Map<String,String> environmentVariables)
Sets the value ofCloudfunctions2FunctionServiceConfig.getEnvironmentVariables()- Parameters:
environmentVariables- Environment variables that shall be available during function execution. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#environment_variables Cloudfunctions2Function#environment_variables}- Returns:
this
-
ingressSettings
@Stability(Stable) public Cloudfunctions2FunctionServiceConfig.Builder ingressSettings(String ingressSettings)
Sets the value ofCloudfunctions2FunctionServiceConfig.getIngressSettings()- Parameters:
ingressSettings- Available ingress settings. Defaults to "ALLOW_ALL" if unspecified. Default value: "ALLOW_ALL" Possible values: ["ALLOW_ALL", "ALLOW_INTERNAL_ONLY", "ALLOW_INTERNAL_AND_GCLB"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#ingress_settings Cloudfunctions2Function#ingress_settings}- Returns:
this
-
maxInstanceCount
@Stability(Stable) public Cloudfunctions2FunctionServiceConfig.Builder maxInstanceCount(Number maxInstanceCount)
Sets the value ofCloudfunctions2FunctionServiceConfig.getMaxInstanceCount()- Parameters:
maxInstanceCount- The limit on the maximum number of function instances that may coexist at a given time. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#max_instance_count Cloudfunctions2Function#max_instance_count}- Returns:
this
-
maxInstanceRequestConcurrency
@Stability(Stable) public Cloudfunctions2FunctionServiceConfig.Builder maxInstanceRequestConcurrency(Number maxInstanceRequestConcurrency)
Sets the value ofCloudfunctions2FunctionServiceConfig.getMaxInstanceRequestConcurrency()- Parameters:
maxInstanceRequestConcurrency- Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#max_instance_request_concurrency Cloudfunctions2Function#max_instance_request_concurrency}- Returns:
this
-
minInstanceCount
@Stability(Stable) public Cloudfunctions2FunctionServiceConfig.Builder minInstanceCount(Number minInstanceCount)
Sets the value ofCloudfunctions2FunctionServiceConfig.getMinInstanceCount()- Parameters:
minInstanceCount- The limit on the minimum number of function instances that may coexist at a given time. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#min_instance_count Cloudfunctions2Function#min_instance_count}- Returns:
this
-
secretEnvironmentVariables
@Stability(Stable) public Cloudfunctions2FunctionServiceConfig.Builder secretEnvironmentVariables(com.hashicorp.cdktf.IResolvable secretEnvironmentVariables)
Sets the value ofCloudfunctions2FunctionServiceConfig.getSecretEnvironmentVariables()- Parameters:
secretEnvironmentVariables- secret_environment_variables block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#secret_environment_variables Cloudfunctions2Function#secret_environment_variables}- Returns:
this
-
secretEnvironmentVariables
@Stability(Stable) public Cloudfunctions2FunctionServiceConfig.Builder secretEnvironmentVariables(List<? extends Cloudfunctions2FunctionServiceConfigSecretEnvironmentVariables> secretEnvironmentVariables)
Sets the value ofCloudfunctions2FunctionServiceConfig.getSecretEnvironmentVariables()- Parameters:
secretEnvironmentVariables- secret_environment_variables block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#secret_environment_variables Cloudfunctions2Function#secret_environment_variables}- Returns:
this
-
secretVolumes
@Stability(Stable) public Cloudfunctions2FunctionServiceConfig.Builder secretVolumes(com.hashicorp.cdktf.IResolvable secretVolumes)
Sets the value ofCloudfunctions2FunctionServiceConfig.getSecretVolumes()- Parameters:
secretVolumes- secret_volumes block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#secret_volumes Cloudfunctions2Function#secret_volumes}- Returns:
this
-
secretVolumes
@Stability(Stable) public Cloudfunctions2FunctionServiceConfig.Builder secretVolumes(List<? extends Cloudfunctions2FunctionServiceConfigSecretVolumes> secretVolumes)
Sets the value ofCloudfunctions2FunctionServiceConfig.getSecretVolumes()- Parameters:
secretVolumes- secret_volumes block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#secret_volumes Cloudfunctions2Function#secret_volumes}- Returns:
this
-
service
@Stability(Stable) public Cloudfunctions2FunctionServiceConfig.Builder service(String service)
Sets the value ofCloudfunctions2FunctionServiceConfig.getService()- Parameters:
service- Name of the service associated with a Function. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#service Cloudfunctions2Function#service}- Returns:
this
-
serviceAccountEmail
@Stability(Stable) public Cloudfunctions2FunctionServiceConfig.Builder serviceAccountEmail(String serviceAccountEmail)
Sets the value ofCloudfunctions2FunctionServiceConfig.getServiceAccountEmail()- Parameters:
serviceAccountEmail- The email of the service account for this function. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#service_account_email Cloudfunctions2Function#service_account_email}- Returns:
this
-
timeoutSeconds
@Stability(Stable) public Cloudfunctions2FunctionServiceConfig.Builder timeoutSeconds(Number timeoutSeconds)
Sets the value ofCloudfunctions2FunctionServiceConfig.getTimeoutSeconds()- Parameters:
timeoutSeconds- The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#timeout_seconds Cloudfunctions2Function#timeout_seconds}- Returns:
this
-
vpcConnector
@Stability(Stable) public Cloudfunctions2FunctionServiceConfig.Builder vpcConnector(String vpcConnector)
Sets the value ofCloudfunctions2FunctionServiceConfig.getVpcConnector()- Parameters:
vpcConnector- The Serverless VPC Access connector that this cloud function can connect to. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#vpc_connector Cloudfunctions2Function#vpc_connector}- Returns:
this
-
vpcConnectorEgressSettings
@Stability(Stable) public Cloudfunctions2FunctionServiceConfig.Builder vpcConnectorEgressSettings(String vpcConnectorEgressSettings)
Sets the value ofCloudfunctions2FunctionServiceConfig.getVpcConnectorEgressSettings()- Parameters:
vpcConnectorEgressSettings- Available egress settings. Possible values: ["VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED", "PRIVATE_RANGES_ONLY", "ALL_TRAFFIC"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudfunctions2_function#vpc_connector_egress_settings Cloudfunctions2Function#vpc_connector_egress_settings}- Returns:
this
-
build
@Stability(Stable) public Cloudfunctions2FunctionServiceConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<Cloudfunctions2FunctionServiceConfig>- Returns:
- a new instance of
Cloudfunctions2FunctionServiceConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-