Class CloudRunServiceTraffic.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • percent

        @Stability(Stable)
        public CloudRunServiceTraffic.Builder percent​(Number percent)
        Parameters:
        percent - Percent specifies percent of the traffic to this Revision or Configuration. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_service#percent CloudRunService#percent}
        Returns:
        this
      • latestRevision

        @Stability(Stable)
        public CloudRunServiceTraffic.Builder latestRevision​(Boolean latestRevision)
        Parameters:
        latestRevision - LatestRevision may be optionally provided to indicate that the latest ready Revision of the Configuration should be used for this traffic target. When provided LatestRevision must be true if RevisionName is empty; it must be false when RevisionName is non-empty. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_service#latest_revision CloudRunService#latest_revision}
        Returns:
        this
      • latestRevision

        @Stability(Stable)
        public CloudRunServiceTraffic.Builder latestRevision​(com.hashicorp.cdktf.IResolvable latestRevision)
        Parameters:
        latestRevision - LatestRevision may be optionally provided to indicate that the latest ready Revision of the Configuration should be used for this traffic target. When provided LatestRevision must be true if RevisionName is empty; it must be false when RevisionName is non-empty. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_service#latest_revision CloudRunService#latest_revision}
        Returns:
        this
      • revisionName

        @Stability(Stable)
        public CloudRunServiceTraffic.Builder revisionName​(String revisionName)
        Parameters:
        revisionName - RevisionName of a specific revision to which to send this portion of traffic. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_service#revision_name CloudRunService#revision_name}
        Returns:
        this
      • tag

        @Stability(Stable)
        public CloudRunServiceTraffic.Builder tag​(String tag)
        Parameters:
        tag - Tag is optionally used to expose a dedicated url for referencing this target exclusively. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_service#tag CloudRunService#tag}
        Returns:
        this