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

commonMain.aws.sdk.kotlin.services.ssmincidents.model.Action.kt Maven / Gradle / Ivy

There is a newer version: 1.3.79
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.ssmincidents.model



/**
 * The action that starts at the beginning of an incident. The response plan defines the action.
 */
public sealed class Action {
    /**
     * The Systems Manager automation document to start as the runbook at the beginning of the incident.
     */
    public data class SsmAutomation(val value: aws.sdk.kotlin.services.ssmincidents.model.SsmAutomation) : aws.sdk.kotlin.services.ssmincidents.model.Action() {
    }

    public object SdkUnknown : aws.sdk.kotlin.services.ssmincidents.model.Action() {
    }

    /**
     * Casts this [Action] as a [SsmAutomation] and retrieves its [aws.sdk.kotlin.services.ssmincidents.model.SsmAutomation] value. Throws an exception if the [Action] is not a
     * [SsmAutomation].
     */
    public fun asSsmAutomation(): aws.sdk.kotlin.services.ssmincidents.model.SsmAutomation = (this as Action.SsmAutomation).value

    /**
     * Casts this [Action] as a [SsmAutomation] and retrieves its [aws.sdk.kotlin.services.ssmincidents.model.SsmAutomation] value. Returns null if the [Action] is not a [SsmAutomation].
     */
    public fun asSsmAutomationOrNull(): aws.sdk.kotlin.services.ssmincidents.model.SsmAutomation? = (this as? Action.SsmAutomation)?.value
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy