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

commonMain.aws.sdk.kotlin.services.ssmincidents.model.AutomationExecution.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 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
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy