Class MonitoringSlo

  • 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.960Z")
    @Stability(Stable)
    public class MonitoringSlo
    extends com.hashicorp.cdktf.TerraformResource
    Represents a {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_slo google_monitoring_slo}.
    • Field Detail

      • TF_RESOURCE_TYPE

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

      • MonitoringSlo

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

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

        @Stability(Stable)
        public MonitoringSlo​(@NotNull
                             software.constructs.Construct scope,
                             @NotNull
                             String id,
                             @NotNull
                             MonitoringSloConfig config)
        Create a new {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/monitoring_slo google_monitoring_slo} 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 MonitoringSlo 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 MonitoringSlo to import. This parameter is required.
        importFromId - The id of the existing MonitoringSlo that should be imported. This parameter is required.
        provider - ? Optional instance of the provider where the MonitoringSlo 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 MonitoringSlo 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 MonitoringSlo to import. This parameter is required.
        importFromId - The id of the existing MonitoringSlo that should be imported. This parameter is required.
      • putBasicSli

        @Stability(Stable)
        public void putBasicSli​(@NotNull
                                MonitoringSloBasicSli value)
        Parameters:
        value - This parameter is required.
      • putRequestBasedSli

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

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

        @Stability(Stable)
        public void putWindowsBasedSli​(@NotNull
                                       MonitoringSloWindowsBasedSli value)
        Parameters:
        value - This parameter is required.
      • resetBasicSli

        @Stability(Stable)
        public void resetBasicSli()
      • resetCalendarPeriod

        @Stability(Stable)
        public void resetCalendarPeriod()
      • resetDisplayName

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

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

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

        @Stability(Stable)
        public void resetRequestBasedSli()
      • resetRollingPeriodDays

        @Stability(Stable)
        public void resetRollingPeriodDays()
      • resetSloId

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

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

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

        @Stability(Stable)
        public void resetWindowsBasedSli()
      • 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()
      • getCalendarPeriodInput

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

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

        @Stability(Stable)
        @Nullable
        public Number getGoalInput()
      • getIdInput

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

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

        @Stability(Stable)
        @Nullable
        public Number getRollingPeriodDaysInput()
      • getServiceInput

        @Stability(Stable)
        @Nullable
        public String getServiceInput()
      • getSloIdInput

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

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

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

        @Stability(Stable)
        @NotNull
        public String getCalendarPeriod()
      • setCalendarPeriod

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

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

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

        @Stability(Stable)
        @NotNull
        public Number getGoal()
      • setGoal

        @Stability(Stable)
        public void setGoal​(@NotNull
                            Number value)
      • getId

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

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

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

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

        @Stability(Stable)
        @NotNull
        public Number getRollingPeriodDays()
      • setRollingPeriodDays

        @Stability(Stable)
        public void setRollingPeriodDays​(@NotNull
                                         Number value)
      • getService

        @Stability(Stable)
        @NotNull
        public String getService()
      • setService

        @Stability(Stable)
        public void setService​(@NotNull
                               String value)
      • getSloId

        @Stability(Stable)
        @NotNull
        public String getSloId()
      • setSloId

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

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

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