All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.cdklabs.cdkmonitoringconstructs.OpsItemAlarmActionStrategy Maven / Gradle / Ivy

There is a newer version: 9.1.0
Show newest version
package io.github.cdklabs.cdkmonitoringconstructs;

/**
 * (experimental) Alarm action strategy that creates an AWS OpsCenter OpsItem.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.93.0 (build 1706ca5)", date = "2024-01-08T00:34:46.763Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = io.github.cdklabs.cdkmonitoringconstructs.$Module.class, fqn = "cdk-monitoring-constructs.OpsItemAlarmActionStrategy")
public class OpsItemAlarmActionStrategy extends software.amazon.jsii.JsiiObject implements io.github.cdklabs.cdkmonitoringconstructs.IAlarmActionStrategy {

    protected OpsItemAlarmActionStrategy(final software.amazon.jsii.JsiiObjectRef objRef) {
        super(objRef);
    }

    protected OpsItemAlarmActionStrategy(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
        super(initializationMode);
    }

    /**
     * @param severity This parameter is required.
     * @param category
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    public OpsItemAlarmActionStrategy(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.cloudwatch.actions.OpsItemSeverity severity, final @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.cloudwatch.actions.OpsItemCategory category) {
        super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
        software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(severity, "severity is required"), category });
    }

    /**
     * @param severity This parameter is required.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    public OpsItemAlarmActionStrategy(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.cloudwatch.actions.OpsItemSeverity severity) {
        super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
        software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(severity, "severity is required") });
    }

    /**
     * @param props This parameter is required.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    @Override
    public void addAlarmActions(final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdkmonitoringconstructs.AlarmActionStrategyProps props) {
        software.amazon.jsii.Kernel.call(this, "addAlarmActions", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(props, "props is required") });
    }

    /**
     * (experimental) OPS Item Severity.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.cloudwatch.actions.OpsItemSeverity getSeverity() {
        return software.amazon.jsii.Kernel.get(this, "severity", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.cloudwatch.actions.OpsItemSeverity.class));
    }

    /**
     * (experimental) OPS Item Category.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    public @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.cloudwatch.actions.OpsItemCategory getCategory() {
        return software.amazon.jsii.Kernel.get(this, "category", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.cloudwatch.actions.OpsItemCategory.class));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy