commonMain.aws.sdk.kotlin.services.ssmincidents.model.AutomationExecution.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 Systems Manager automation document process to start as the runbook at the beginning of the incident.
*/
public sealed class AutomationExecution {
/**
* The Amazon Resource Name (ARN) of the automation process.
*/
public data class SsmExecutionArn(val value: kotlin.String) : aws.sdk.kotlin.services.ssmincidents.model.AutomationExecution() {
}
public object SdkUnknown : aws.sdk.kotlin.services.ssmincidents.model.AutomationExecution() {
}
/**
* Casts this [AutomationExecution] as a [SsmExecutionArn] and retrieves its [kotlin.String] value. Throws an exception if the [AutomationExecution] is not a
* [SsmExecutionArn].
*/
public fun asSsmExecutionArn(): kotlin.String = (this as AutomationExecution.SsmExecutionArn).value
/**
* Casts this [AutomationExecution] as a [SsmExecutionArn] and retrieves its [kotlin.String] value. Returns null if the [AutomationExecution] is not a [SsmExecutionArn].
*/
public fun asSsmExecutionArnOrNull(): kotlin.String? = (this as? AutomationExecution.SsmExecutionArn)?.value
}