Class MonitoringAlertPolicy

  • All Implemented Interfaces:
    com.hashicorp.cdktf.IInterpolatingParent, com.hashicorp.cdktf.ITerraformAddressable, com.hashicorp.cdktf.ITerraformDependable, com.hashicorp.cdktf.ITerraformResource, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

    @Generated(value="jsii-pacmak/1.102.0 (build e354887)",
               date="2024-08-31T03:59:21.910Z")
    @Stability(Stable)
    public class MonitoringAlertPolicy
    extends com.hashicorp.cdktf.TerraformResource
    Represents a {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy google_monitoring_alert_policy}.
    • Field Detail

      • TF_RESOURCE_TYPE

        @Stability(Stable)
        public static final String TF_RESOURCE_TYPE
    • Constructor Detail

      • MonitoringAlertPolicy

        protected MonitoringAlertPolicy​(software.amazon.jsii.JsiiObjectRef objRef)
      • MonitoringAlertPolicy

        protected MonitoringAlertPolicy​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
      • MonitoringAlertPolicy

        @Stability(Stable)
        public MonitoringAlertPolicy​(@NotNull
                                     software.constructs.Construct scope,
                                     @NotNull
                                     String id,
                                     @NotNull
                                     MonitoringAlertPolicyConfig config)
        Create a new {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_alert_policy google_monitoring_alert_policy} Resource.

        Parameters:
        scope - The scope in which to define this construct. This parameter is required.
        id - The scoped construct ID. This parameter is required.
        config - This parameter is required.
    • Method Detail

      • generateConfigForImport

        @Stability(Stable)
        @NotNull
        public static com.hashicorp.cdktf.ImportableResource generateConfigForImport​(@NotNull
                                                                                     software.constructs.Construct scope,
                                                                                     @NotNull
                                                                                     String importToId,
                                                                                     @NotNull
                                                                                     String importFromId,
                                                                                     @Nullable
                                                                                     com.hashicorp.cdktf.TerraformProvider provider)
        Generates CDKTF code for importing a MonitoringAlertPolicy resource upon running "cdktf plan ".

        Parameters:
        scope - The scope in which to define this construct. This parameter is required.
        importToId - The construct id used in the generated config for the MonitoringAlertPolicy to import. This parameter is required.
        importFromId - The id of the existing MonitoringAlertPolicy that should be imported. This parameter is required.
        provider - ? Optional instance of the provider where the MonitoringAlertPolicy to import is found.
      • generateConfigForImport

        @Stability(Stable)
        @NotNull
        public static com.hashicorp.cdktf.ImportableResource generateConfigForImport​(@NotNull
                                                                                     software.constructs.Construct scope,
                                                                                     @NotNull
                                                                                     String importToId,
                                                                                     @NotNull
                                                                                     String importFromId)
        Generates CDKTF code for importing a MonitoringAlertPolicy resource upon running "cdktf plan ".

        Parameters:
        scope - The scope in which to define this construct. This parameter is required.
        importToId - The construct id used in the generated config for the MonitoringAlertPolicy to import. This parameter is required.
        importFromId - The id of the existing MonitoringAlertPolicy that should be imported. This parameter is required.
      • putAlertStrategy

        @Stability(Stable)
        public void putAlertStrategy​(@NotNull
                                     MonitoringAlertPolicyAlertStrategy value)
        Parameters:
        value - This parameter is required.
      • putConditions

        @Stability(Stable)
        public void putConditions​(@NotNull
                                  Object value)
        Parameters:
        value - This parameter is required.
      • putDocumentation

        @Stability(Stable)
        public void putDocumentation​(@NotNull
                                     MonitoringAlertPolicyDocumentation value)
        Parameters:
        value - This parameter is required.
      • putTimeouts

        @Stability(Stable)
        public void putTimeouts​(@NotNull
                                MonitoringAlertPolicyTimeouts value)
        Parameters:
        value - This parameter is required.
      • resetAlertStrategy

        @Stability(Stable)
        public void resetAlertStrategy()
      • resetDocumentation

        @Stability(Stable)
        public void resetDocumentation()
      • resetEnabled

        @Stability(Stable)
        public void resetEnabled()
      • resetId

        @Stability(Stable)
        public void resetId()
      • resetNotificationChannels

        @Stability(Stable)
        public void resetNotificationChannels()
      • resetProject

        @Stability(Stable)
        public void resetProject()
      • resetSeverity

        @Stability(Stable)
        public void resetSeverity()
      • resetTimeouts

        @Stability(Stable)
        public void resetTimeouts()
      • resetUserLabels

        @Stability(Stable)
        public void resetUserLabels()
      • synthesizeAttributes

        @Stability(Stable)
        @NotNull
        protected Map<String,​Object> synthesizeAttributes()
        Overrides:
        synthesizeAttributes in class com.hashicorp.cdktf.TerraformResource
      • synthesizeHclAttributes

        @Stability(Stable)
        @NotNull
        protected Map<String,​Object> synthesizeHclAttributes()
        Overrides:
        synthesizeHclAttributes in class com.hashicorp.cdktf.TerraformResource
      • getName

        @Stability(Stable)
        @NotNull
        public String getName()
      • getCombinerInput

        @Stability(Stable)
        @Nullable
        public String getCombinerInput()
      • getConditionsInput

        @Stability(Stable)
        @Nullable
        public Object getConditionsInput()
      • getDisplayNameInput

        @Stability(Stable)
        @Nullable
        public String getDisplayNameInput()
      • getEnabledInput

        @Stability(Stable)
        @Nullable
        public Object getEnabledInput()
      • getIdInput

        @Stability(Stable)
        @Nullable
        public String getIdInput()
      • getNotificationChannelsInput

        @Stability(Stable)
        @Nullable
        public List<String> getNotificationChannelsInput()
      • getProjectInput

        @Stability(Stable)
        @Nullable
        public String getProjectInput()
      • getSeverityInput

        @Stability(Stable)
        @Nullable
        public String getSeverityInput()
      • getTimeoutsInput

        @Stability(Stable)
        @Nullable
        public Object getTimeoutsInput()
      • getUserLabelsInput

        @Stability(Stable)
        @Nullable
        public Map<String,​String> getUserLabelsInput()
      • getCombiner

        @Stability(Stable)
        @NotNull
        public String getCombiner()
      • setCombiner

        @Stability(Stable)
        public void setCombiner​(@NotNull
                                String value)
      • getDisplayName

        @Stability(Stable)
        @NotNull
        public String getDisplayName()
      • setDisplayName

        @Stability(Stable)
        public void setDisplayName​(@NotNull
                                   String value)
      • getEnabled

        @Stability(Stable)
        @NotNull
        public Object getEnabled()
      • setEnabled

        @Stability(Stable)
        public void setEnabled​(@NotNull
                               Boolean value)
      • setEnabled

        @Stability(Stable)
        public void setEnabled​(@NotNull
                               com.hashicorp.cdktf.IResolvable value)
      • getId

        @Stability(Stable)
        @NotNull
        public String getId()
      • setId

        @Stability(Stable)
        public void setId​(@NotNull
                          String value)
      • getNotificationChannels

        @Stability(Stable)
        @NotNull
        public List<String> getNotificationChannels()
      • setNotificationChannels

        @Stability(Stable)
        public void setNotificationChannels​(@NotNull
                                            List<String> value)
      • getProject

        @Stability(Stable)
        @NotNull
        public String getProject()
      • setProject

        @Stability(Stable)
        public void setProject​(@NotNull
                               String value)
      • getSeverity

        @Stability(Stable)
        @NotNull
        public String getSeverity()
      • setSeverity

        @Stability(Stable)
        public void setSeverity​(@NotNull
                                String value)
      • getUserLabels

        @Stability(Stable)
        @NotNull
        public Map<String,​String> getUserLabels()
      • setUserLabels

        @Stability(Stable)
        public void setUserLabels​(@NotNull
                                  Map<String,​String> value)