Class MonitoringCustomService.Builder

    • Method Detail

      • create

        @Stability(Stable)
        public static MonitoringCustomService.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 MonitoringCustomService.Builder.
      • connection

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

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

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

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

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

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

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

        @Stability(Stable)
        public MonitoringCustomService.Builder displayName​(String displayName)
        Name used for UI elements listing this Service.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_custom_service#display_name MonitoringCustomService#display_name}

        Parameters:
        displayName - Name used for UI elements listing this Service. This parameter is required.
        Returns:
        this
      • id

        @Stability(Stable)
        public MonitoringCustomService.Builder id​(String id)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_custom_service#id MonitoringCustomService#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/monitoring_custom_service#id MonitoringCustomService#id}. This parameter is required.
        Returns:
        this
      • project

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

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

        @Stability(Stable)
        public MonitoringCustomService.Builder serviceId​(String serviceId)
        An optional service ID to use. If not given, the server will generate a service ID.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_custom_service#service_id MonitoringCustomService#service_id}

        Parameters:
        serviceId - An optional service ID to use. If not given, the server will generate a service ID. This parameter is required.
        Returns:
        this
      • telemetry

        @Stability(Stable)
        public MonitoringCustomService.Builder telemetry​(MonitoringCustomServiceTelemetry telemetry)
        telemetry block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_custom_service#telemetry MonitoringCustomService#telemetry}

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

        @Stability(Stable)
        public MonitoringCustomService.Builder timeouts​(MonitoringCustomServiceTimeouts timeouts)
        timeouts block.

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

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

        @Stability(Stable)
        public MonitoringCustomService.Builder userLabels​(Map<String,​String> userLabels)
        Labels which have been used to annotate the service.

        Label keys must start with a letter. Label keys and values may contain lowercase letters, numbers, underscores, and dashes. Label keys and values have a maximum length of 63 characters, and must be less than 128 bytes in size. Up to 64 label entries may be stored. For labels which do not have a semantic value, the empty string may be supplied for the label value. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_custom_service#user_labels MonitoringCustomService#user_labels}

        Parameters:
        userLabels - Labels which have been used to annotate the service. This parameter is required.
        Returns:
        this