Package com.pulumi.gcp.cloudrunv2.inputs
Class ServiceTemplateArgs.Builder
- java.lang.Object
-
- com.pulumi.gcp.cloudrunv2.inputs.ServiceTemplateArgs.Builder
-
- Enclosing class:
- ServiceTemplateArgs
public static final class ServiceTemplateArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(ServiceTemplateArgs defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(ServiceTemplateArgs defaults)
-
-
Method Detail
-
annotations
public ServiceTemplateArgs.Builder annotations(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> annotations)
- Parameters:
annotations
- Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with `run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 RevisionTemplate. This field follows Kubernetes annotations' namespacing, limits, and rules.- Returns:
- builder
-
annotations
public ServiceTemplateArgs.Builder annotations(java.util.Map<java.lang.String,java.lang.String> annotations)
- Parameters:
annotations
- Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with `run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 RevisionTemplate. This field follows Kubernetes annotations' namespacing, limits, and rules.- Returns:
- builder
-
containers
public ServiceTemplateArgs.Builder containers(@Nullable com.pulumi.core.Output<java.util.List<ServiceTemplateContainerArgs>> containers)
- Parameters:
containers
- Holds the containers that define the unit of execution for this Service. Structure is documented below.- Returns:
- builder
-
containers
public ServiceTemplateArgs.Builder containers(java.util.List<ServiceTemplateContainerArgs> containers)
- Parameters:
containers
- Holds the containers that define the unit of execution for this Service. Structure is documented below.- Returns:
- builder
-
containers
public ServiceTemplateArgs.Builder containers(ServiceTemplateContainerArgs... containers)
- Parameters:
containers
- Holds the containers that define the unit of execution for this Service. Structure is documented below.- Returns:
- builder
-
encryptionKey
public ServiceTemplateArgs.Builder encryptionKey(@Nullable com.pulumi.core.Output<java.lang.String> encryptionKey)
- Parameters:
encryptionKey
- A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek- Returns:
- builder
-
encryptionKey
public ServiceTemplateArgs.Builder encryptionKey(java.lang.String encryptionKey)
- Parameters:
encryptionKey
- A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek- Returns:
- builder
-
executionEnvironment
public ServiceTemplateArgs.Builder executionEnvironment(@Nullable com.pulumi.core.Output<java.lang.String> executionEnvironment)
- Parameters:
executionEnvironment
- The sandbox environment to host this Revision. Possible values are: `EXECUTION_ENVIRONMENT_GEN1`, `EXECUTION_ENVIRONMENT_GEN2`.- Returns:
- builder
-
executionEnvironment
public ServiceTemplateArgs.Builder executionEnvironment(java.lang.String executionEnvironment)
- Parameters:
executionEnvironment
- The sandbox environment to host this Revision. Possible values are: `EXECUTION_ENVIRONMENT_GEN1`, `EXECUTION_ENVIRONMENT_GEN2`.- Returns:
- builder
-
labels
public ServiceTemplateArgs.Builder labels(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> labels)
- Parameters:
labels
- Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with `run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 RevisionTemplate.- Returns:
- builder
-
labels
public ServiceTemplateArgs.Builder labels(java.util.Map<java.lang.String,java.lang.String> labels)
- Parameters:
labels
- Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with `run.googleapis.com`, `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev` namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 RevisionTemplate.- Returns:
- builder
-
maxInstanceRequestConcurrency
public ServiceTemplateArgs.Builder maxInstanceRequestConcurrency(@Nullable com.pulumi.core.Output<java.lang.Integer> maxInstanceRequestConcurrency)
- Parameters:
maxInstanceRequestConcurrency
- Sets the maximum number of requests that each serving instance can receive.- Returns:
- builder
-
maxInstanceRequestConcurrency
public ServiceTemplateArgs.Builder maxInstanceRequestConcurrency(java.lang.Integer maxInstanceRequestConcurrency)
- Parameters:
maxInstanceRequestConcurrency
- Sets the maximum number of requests that each serving instance can receive.- Returns:
- builder
-
revision
public ServiceTemplateArgs.Builder revision(@Nullable com.pulumi.core.Output<java.lang.String> revision)
- Parameters:
revision
- The unique name for the revision. If this field is omitted, it will be automatically generated based on the Service name.- Returns:
- builder
-
revision
public ServiceTemplateArgs.Builder revision(java.lang.String revision)
- Parameters:
revision
- The unique name for the revision. If this field is omitted, it will be automatically generated based on the Service name.- Returns:
- builder
-
scaling
public ServiceTemplateArgs.Builder scaling(@Nullable com.pulumi.core.Output<ServiceTemplateScalingArgs> scaling)
- Parameters:
scaling
- Scaling settings for this Revision. Structure is documented below.- Returns:
- builder
-
scaling
public ServiceTemplateArgs.Builder scaling(ServiceTemplateScalingArgs scaling)
- Parameters:
scaling
- Scaling settings for this Revision. Structure is documented below.- Returns:
- builder
-
serviceAccount
public ServiceTemplateArgs.Builder serviceAccount(@Nullable com.pulumi.core.Output<java.lang.String> serviceAccount)
- Parameters:
serviceAccount
- Email address of the IAM service account associated with the revision of the service. The service account represents the identity of the running revision, and determines what permissions the revision has. If not provided, the revision will use the project's default service account.- Returns:
- builder
-
serviceAccount
public ServiceTemplateArgs.Builder serviceAccount(java.lang.String serviceAccount)
- Parameters:
serviceAccount
- Email address of the IAM service account associated with the revision of the service. The service account represents the identity of the running revision, and determines what permissions the revision has. If not provided, the revision will use the project's default service account.- Returns:
- builder
-
sessionAffinity
public ServiceTemplateArgs.Builder sessionAffinity(@Nullable com.pulumi.core.Output<java.lang.Boolean> sessionAffinity)
- Parameters:
sessionAffinity
- Enables session affinity. For more information, go to https://cloud.google.com/run/docs/configuring/session-affinity- Returns:
- builder
-
sessionAffinity
public ServiceTemplateArgs.Builder sessionAffinity(java.lang.Boolean sessionAffinity)
- Parameters:
sessionAffinity
- Enables session affinity. For more information, go to https://cloud.google.com/run/docs/configuring/session-affinity- Returns:
- builder
-
timeout
public ServiceTemplateArgs.Builder timeout(@Nullable com.pulumi.core.Output<java.lang.String> timeout)
- Parameters:
timeout
- Max allowed time for an instance to respond to a request. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".- Returns:
- builder
-
timeout
public ServiceTemplateArgs.Builder timeout(java.lang.String timeout)
- Parameters:
timeout
- Max allowed time for an instance to respond to a request. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".- Returns:
- builder
-
volumes
public ServiceTemplateArgs.Builder volumes(@Nullable com.pulumi.core.Output<java.util.List<ServiceTemplateVolumeArgs>> volumes)
- Parameters:
volumes
- A list of Volumes to make available to containers. Structure is documented below.- Returns:
- builder
-
volumes
public ServiceTemplateArgs.Builder volumes(java.util.List<ServiceTemplateVolumeArgs> volumes)
- Parameters:
volumes
- A list of Volumes to make available to containers. Structure is documented below.- Returns:
- builder
-
volumes
public ServiceTemplateArgs.Builder volumes(ServiceTemplateVolumeArgs... volumes)
- Parameters:
volumes
- A list of Volumes to make available to containers. Structure is documented below.- Returns:
- builder
-
vpcAccess
public ServiceTemplateArgs.Builder vpcAccess(@Nullable com.pulumi.core.Output<ServiceTemplateVpcAccessArgs> vpcAccess)
- Parameters:
vpcAccess
- VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc. Structure is documented below.- Returns:
- builder
-
vpcAccess
public ServiceTemplateArgs.Builder vpcAccess(ServiceTemplateVpcAccessArgs vpcAccess)
- Parameters:
vpcAccess
- VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc. Structure is documented below.- Returns:
- builder
-
build
public ServiceTemplateArgs build()
-
-