Class CloudRunV2Service.Builder

    • Method Detail

      • create

        @Stability(Stable)
        public static CloudRunV2Service.Builder create​(software.constructs.Construct scope,
                                                       String id)
        Parameters:
        scope - The scope in which to define this construct. This parameter is required.
        id - The scoped construct ID. This parameter is required.
        Returns:
        a new instance of CloudRunV2Service.Builder.
      • connection

        @Stability(Experimental)
        public CloudRunV2Service.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public CloudRunV2Service.Builder connection​(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • count

        @Stability(Experimental)
        public CloudRunV2Service.Builder count​(com.hashicorp.cdktf.TerraformCount count)
        Parameters:
        count - This parameter is required.
        Returns:
        this
      • dependsOn

        @Stability(Experimental)
        public CloudRunV2Service.Builder dependsOn​(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
        Parameters:
        dependsOn - This parameter is required.
        Returns:
        this
      • forEach

        @Stability(Experimental)
        public CloudRunV2Service.Builder forEach​(com.hashicorp.cdktf.ITerraformIterator forEach)
        Parameters:
        forEach - This parameter is required.
        Returns:
        this
      • lifecycle

        @Stability(Experimental)
        public CloudRunV2Service.Builder lifecycle​(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
        Parameters:
        lifecycle - This parameter is required.
        Returns:
        this
      • provider

        @Stability(Experimental)
        public CloudRunV2Service.Builder provider​(com.hashicorp.cdktf.TerraformProvider provider)
        Parameters:
        provider - This parameter is required.
        Returns:
        this
      • provisioners

        @Stability(Experimental)
        public CloudRunV2Service.Builder provisioners​(List<? extends Object> provisioners)
        Parameters:
        provisioners - This parameter is required.
        Returns:
        this
      • location

        @Stability(Stable)
        public CloudRunV2Service.Builder location​(String location)
        The location of the cloud run service.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#location CloudRunV2Service#location}

        Parameters:
        location - The location of the cloud run service. This parameter is required.
        Returns:
        this
      • name

        @Stability(Stable)
        public CloudRunV2Service.Builder name​(String name)
        Name of the Service.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#name CloudRunV2Service#name}

        Parameters:
        name - Name of the Service. This parameter is required.
        Returns:
        this
      • template

        @Stability(Stable)
        public CloudRunV2Service.Builder template​(CloudRunV2ServiceTemplate template)
        template block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#template CloudRunV2Service#template}

        Parameters:
        template - template block. This parameter is required.
        Returns:
        this
      • annotations

        @Stability(Stable)
        public CloudRunV2Service.Builder annotations​(Map<String,​String> 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 in new resources. All system annotations in v1 now have a corresponding field in v2 Service. This field follows Kubernetes annotations' namespacing, limits, and rules. **Note**: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field 'effective_annotations' for all of the annotations present on the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#annotations CloudRunV2Service#annotations}

        Parameters:
        annotations - Unstructured key value map that may be set by external tools to store and arbitrary metadata. This parameter is required.
        Returns:
        this
      • binaryAuthorization

        @Stability(Stable)
        public CloudRunV2Service.Builder binaryAuthorization​(CloudRunV2ServiceBinaryAuthorization binaryAuthorization)
        binary_authorization block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#binary_authorization CloudRunV2Service#binary_authorization}

        Parameters:
        binaryAuthorization - binary_authorization block. This parameter is required.
        Returns:
        this
      • client

        @Stability(Stable)
        public CloudRunV2Service.Builder client​(String client)
        Arbitrary identifier for the API client.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#client CloudRunV2Service#client}

        Parameters:
        client - Arbitrary identifier for the API client. This parameter is required.
        Returns:
        this
      • clientVersion

        @Stability(Stable)
        public CloudRunV2Service.Builder clientVersion​(String clientVersion)
        Arbitrary version identifier for the API client.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#client_version CloudRunV2Service#client_version}

        Parameters:
        clientVersion - Arbitrary version identifier for the API client. This parameter is required.
        Returns:
        this
      • customAudiences

        @Stability(Stable)
        public CloudRunV2Service.Builder customAudiences​(List<String> customAudiences)
        One or more custom audiences that you want this service to support.

        Specify each custom audience as the full URL in a string. The custom audiences are encoded in the token and used to authenticate requests. For more information, see https://cloud.google.com/run/docs/configuring/custom-audiences. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#custom_audiences CloudRunV2Service#custom_audiences}

        Parameters:
        customAudiences - One or more custom audiences that you want this service to support. This parameter is required.
        Returns:
        this
      • description

        @Stability(Stable)
        public CloudRunV2Service.Builder description​(String description)
        User-provided description of the Service. This field currently has a 512-character limit.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#description CloudRunV2Service#description}

        Parameters:
        description - User-provided description of the Service. This field currently has a 512-character limit. This parameter is required.
        Returns:
        this
      • id

        @Stability(Stable)
        public CloudRunV2Service.Builder id​(String id)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#id CloudRunV2Service#id}.

        Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.

        Parameters:
        id - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#id CloudRunV2Service#id}. This parameter is required.
        Returns:
        this
      • ingress

        @Stability(Stable)
        public CloudRunV2Service.Builder ingress​(String ingress)
        Provides the ingress settings for this Service.

        On output, returns the currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no revision is active. Possible values: ["INGRESS_TRAFFIC_ALL", "INGRESS_TRAFFIC_INTERNAL_ONLY", "INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#ingress CloudRunV2Service#ingress}

        Parameters:
        ingress - Provides the ingress settings for this Service. This parameter is required.
        Returns:
        this
      • labels

        @Stability(Stable)
        public CloudRunV2Service.Builder labels​(Map<String,​String> 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 Service. **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#labels CloudRunV2Service#labels}

        Parameters:
        labels - Unstructured key value map that can be used to organize and categorize objects. This parameter is required.
        Returns:
        this
      • launchStage

        @Stability(Stable)
        public CloudRunV2Service.Builder launchStage​(String launchStage)
        The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features.

        For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output. Possible values: ["UNIMPLEMENTED", "PRELAUNCH", "EARLY_ACCESS", "ALPHA", "BETA", "GA", "DEPRECATED"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#launch_stage CloudRunV2Service#launch_stage}

        Parameters:
        launchStage - The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features. This parameter is required.
        Returns:
        this
      • project

        @Stability(Stable)
        public CloudRunV2Service.Builder project​(String project)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#project CloudRunV2Service#project}.

        Parameters:
        project - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#project CloudRunV2Service#project}. This parameter is required.
        Returns:
        this
      • timeouts

        @Stability(Stable)
        public CloudRunV2Service.Builder timeouts​(CloudRunV2ServiceTimeouts timeouts)
        timeouts block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#timeouts CloudRunV2Service#timeouts}

        Parameters:
        timeouts - timeouts block. This parameter is required.
        Returns:
        this
      • traffic

        @Stability(Stable)
        public CloudRunV2Service.Builder traffic​(com.hashicorp.cdktf.IResolvable traffic)
        traffic block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#traffic CloudRunV2Service#traffic}

        Parameters:
        traffic - traffic block. This parameter is required.
        Returns:
        this
      • traffic

        @Stability(Stable)
        public CloudRunV2Service.Builder traffic​(List<? extends CloudRunV2ServiceTraffic> traffic)
        traffic block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#traffic CloudRunV2Service#traffic}

        Parameters:
        traffic - traffic block. This parameter is required.
        Returns:
        this