asExternalId

Casts this AlternateIdentifier as a ExternalId and retrieves its aws.sdk.kotlin.services.identitystore.model.ExternalId value. Throws an exception if the AlternateIdentifier is not a ExternalId.