commonMain.aws.sdk.kotlin.services.ssmincidents.model.Action.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ssmincidents-jvm Show documentation
Show all versions of ssmincidents-jvm Show documentation
The AWS SDK for Kotlin client for SSM Incidents
// 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
}