AttachPoint

sealed class AttachPoint

Identifies an attach point to use with a Connection.

Inheritors

Types

Link copied to clipboard
data class Arn(val value: String) : AttachPoint

Identifies an attach point by full ARN.

Link copied to clipboard
data class DirectConnectGateway(val value: String) : AttachPoint

Identifies an DirectConnect Gateway attach point by DirectConnectGatewayID.

Link copied to clipboard

Functions

Link copied to clipboard
fun asArn(): String

Casts this AttachPoint as a Arn and retrieves its kotlin.String value. Throws an exception if the AttachPoint is not a Arn.

Link copied to clipboard

Casts this AttachPoint as a Arn and retrieves its kotlin.String value. Returns null if the AttachPoint is not a Arn.

Link copied to clipboard

Casts this AttachPoint as a DirectConnectGateway and retrieves its kotlin.String value. Throws an exception if the AttachPoint is not a DirectConnectGateway.

Link copied to clipboard

Casts this AttachPoint as a DirectConnectGateway and retrieves its kotlin.String value. Returns null if the AttachPoint is not a DirectConnectGateway.