asEc2ImageIdOrNull

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